Page 1 of 1
Checkmark on menu items???
Posted: Thu Jun 07, 2007 11:13 pm
by Garrett
Brain Fart!!! I could swear that you could set check marks on menu items in Rev, but for the life of me, I can't remember. Docs came up with nothing that I could find

Can anyone please point me in the right direction?
Thanks in advance,
-Garrett
Posted: Fri Jun 08, 2007 11:46 am
by Janschenkel
Hi Garrett,
You can set the 'hilite' property of the menuitem:
Code: Select all
set the hilite of menuItem 3 of button "Foobar" to true
You can only refer to menitems by number, not by name or label.
Alternately, you can modify the 'text' property of the menu button:
Code: Select all
put "!c" before line 3 of button "foobar"
put "!r" before line 5 of button "foobar"
The "!c" puts a checkmark before the menuitem, whereas the "!r" puts a radiobutton/diamond before the menuitem.
Hope this helped,
Jan Schenkel.
Posted: Sat Jun 09, 2007 12:13 am
by Garrett
Re: Checkmark on menu items???
Posted: Mon Dec 21, 2009 3:34 am
by edljr
Hi,
I see I am 2 years late to this discussion, but have a related issue.
Is there a way to change the foregroundColor of a specific word of a specific line in a pop-up menu?
For example, if btn "instructionsMenu" is a pop-up with these choices:
What is this?
Why do this?
How do I do this?
Is there a way where I can make the "What" red, the "Why" blue, and the "How" yellow with all other text remaining black?
I know I can do this with a field:
Code: Select all
set the foregroundColor of word 1 of line 1 of fld "test" to red
I am able to reference words that are part of a menu choice:
Code: Select all
put word 1 of menuitem 1 of btn "pop1"
...but when I try to set the foregroudColor or textColor, I am greeted with the following error:
Message execution error:
Error description: Object: value is not a boolean (true or false)
Does anyone know the secret here?
Thanks,
Ed
Re: Checkmark on menu items???
Posted: Mon Dec 21, 2009 12:37 pm
by bn
edljr wrote:Is there a way to change the foregroundColor of a specific word of a specific line in a pop-up menu?
For example, if btn "instructionsMenu" is a pop-up with these choices:
What is this?
Why do this?
How do I do this?
Is there a way where I can make the "What" red, the "Why" blue, and the "How" yellow with all other text remaining black?
Hi Ed,
I am afraid you can not change the text color of the standard pop-up buttons.
Look at an example by Oliver Kenyon in the new RevOnline (=>version 3.5) called Menu. Search for Menu and look for Oliver's stack. He shows how to 'fake' a menu that gives you more control over the appearance of the menu items.
regards
Bernd
Re: Checkmark on menu items???
Posted: Tue Dec 22, 2009 12:08 am
by edljr
Hi Bernd,
Thanks for the note. I was afraid I would have to fake it. I will look at Oliver's stack to see how he did it.
Best,
Ed