would be great if navigation bars sent MouseUp messages

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
Fun days
Posts: 6
Joined: Sat Jul 11, 2020 11:15 pm

would be great if navigation bars sent MouseUp messages

Post by Fun days » Sun Jul 12, 2020 11:16 pm

I realize I can use "HiliteChanged" to monitor nav bar clciks/changes, but I have a case where I wish to use similar but not identical nav bars on different cards and so do not wish to set the property of the bars acting like a background. So when I return to other cards, the hilitedItem of that nav menu is not right (it is the last clicked icon from the menu before leaving the card rather than the icon for the card I now returned to). I cannot change the hiliteditem without sending a "hiliteChanged" message which then complicates the navBar hiliteChanged handler code. If the bar generated a mouseUp message, the problem would be solved, and it seems to me like a simple enough addition.

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: would be great if navigation bars sent MouseUp messages

Post by Klaus » Sun Jul 12, 2020 11:40 pm

Hi Fun days,

you can prevent this unwanted behavior by:

Code: Select all

...
lock messages
set the hiliteditem of widget "your navbar here..." to "I'm a lumberjack..."
unlock messages
...
Et voila! :D


Best

Klaus

Post Reply