Page 1 of 1

Finding hidden buttons

Posted: Wed Jun 06, 2007 12:27 pm
by Stewart Law
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.

Re: Finding hidden buttons

Posted: Wed Jun 06, 2007 1:58 pm
by Lynn P.
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.

Posted: Wed Jun 06, 2007 2:14 pm
by xApple
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.