Finding hidden buttons

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Stewart Law
Posts: 1
Joined: Tue Jun 05, 2007 10:39 am

Finding hidden buttons

Post by Stewart Law » Wed Jun 06, 2007 12:27 pm

I have recently purchased Revolution Studio and converted my HyperCard files.
I have several thousand cards of text with hidden buttons behind key words so that I may move through the cards following given subjects.
Because the layout of the text is slightly different the buttons do not line up with the words. I have to run the curser all over the text hoping for an arrow to appear thus indicating I have found a button.
Is there some way I can show all the buttons on the card? I have tried clicking on the "show invisible objects" but it makes no difference.
StewL

Lynn P.
Posts: 79
Joined: Sun Apr 09, 2006 1:09 pm

Re: Finding hidden buttons

Post by Lynn P. » Wed Jun 06, 2007 1:58 pm

Hi StewL ~

It may be that the button style of your text buttons was, or now is after translating from Hypercard, "transparent". You could change the style of all the buttons in a repeat loop to "standard" which would make them all show up.

Code: Select all

repeat with i =  1 to the number of btns of this stack -- or card
   set the style of btn i to standard
end repeat
Lynn P.

xApple
Posts: 113
Joined: Wed Nov 29, 2006 10:21 pm

Post by xApple » Wed Jun 06, 2007 2:14 pm

Everytime I need to grab hold of an invisible object, I just open the "Application Browser" window and go to the card in question.

But I have some other advice: your idea of placing buttons behind text seams clumsy and has obvious drawbacks as you have noticed. You might be interested in using the "set linkText" command in conjunction with a "on linkClicked theURL" handler... you will see, it's must more user-friendly.

Also, one never needs to have over a 1000 cards. Depending on what your project is, it's almost always easier to make a single card, and have the text in the field change according to user actions. The different texts to display can be stored in custom propreties, files or even a database.

Post Reply