On Oct 31, 2005, at 8:28 PM, Norman Palardy wrote:
On Oct 31, 2005, at 5:51 PM, Keith DeLong wrote:
How do I clear the checkmark on a menu in a bevelbutton?
When I first select a BevelButton menu, .MenuValue = 0 and yet no
checkmark
is displayed in the menu for item 0.
Subsequent selections of the menu always put a checkmark next to the
last
selected menuitem which appears to be .MenuValue
However, though I can change the selection by changing .MenuValue, I
cannot
seem to get a menu without any checkmark at all.
Shouldn't -1 be the opening .MenuValue with no selection and -1
return it to
no selection?
Thanks for any assistance you can offer,
Keith DeLong
Weird but using Francois suggestion and setting menuvalue to -1 seems
to do it if you put that in the mousedown
Try this in a pushbutton's mousedown
me.deleteAllRows
me.MenuValue = -1
me.AddRow "1"
me.AddRow "2"
me.AddRow "3"
me.AddRow "4"
me.AddRow "5"
and this in it's action
me.caption = me.list(me.menuvalue)
A few extra things I've noted already
Code like
me.deleteAllRows
me.AddRow "1"
me.AddRow "2"
me.AddRow "3"
me.AddRow "4"
me.AddRow "5"
me.MenuValue = -1
will NOT have this effect.
This "disabling the check mark" is sensitive to the order of the code
which smells like a bug to me
ONLY
deleteAllrows
MenuValue = -1
seems to do it
Bug reported as
http://realsoftware.com/feedback/viewreport.php?reportid=ykbskqjf
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|