Hi,
I am looking for a reference to guide me in using text in cascade buttons.
I am trying to put dates into a cascade button and learned that the '/' causes the text to behavior differently.
I see a reference to adding check marks to the items in the cascade button using '!c"/
Is there anyway to display "2/14/2017"?
Are there other 'characters' like "!c" to that changes the format of your menu item?
Thank you for your patients for this 'begginer' question.
JB
Cascade button - items with 'text' formatting
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Cascade button - items with 'text' formatting
There are two possible ways out of this:
1- Someone will know how to circumvent the tag structure of hierarchal menu buttons.
2- You can get a kluge from an old-timer, who likes kluges. Make a pulldown menu button named "p4". Make an ordinary button. In the script of the ordinary button:
The use of a "slash-like" character bypasses the tag constraints. So May 12, 2017 renders "correctly". You must then replace ersatzSlash with numToChar(47) when you extract and process that date doppleganger.
Craig Newman
1- Someone will know how to circumvent the tag structure of hierarchal menu buttons.
2- You can get a kluge from an old-timer, who likes kluges. Make a pulldown menu button named "p4". Make an ordinary button. In the script of the ordinary button:
Code: Select all
on mouseUp
put space & numToChar(218) & space into ersatzSlash
put "AA" & return & tab & "5" & ersatzSlash & "12" & ersatzSlash & 17 & return & "BB" & return & "CC" into btn "p4"
end mouseUp
Craig Newman
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Cascade button - items with 'text' formatting
IIRC you can use "//" to render as "/" in a menu.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Cascade button - items with 'text' formatting
Awesome, Thanks!!
JB
JB