Page 1 of 1

It will be a visual Navigator to select fast a card??

Posted: Fri Oct 26, 2007 4:48 pm
by LESTROSO
Hy to everybody....


My problem is simple.....i need a visual Navigator to select fast a card like in

hypercard, i know you may say to me...use the application browser , but it's

a little too uncomfortable.....

it would be easy like a navigator palette.......

I thank you so much...

Lestroso :?

www.fasasoftware.com

Posted: Sat Oct 27, 2007 10:16 am
by Mark
Hi Letroso,

You could make a stack with a hidden button. The button should contain a front script. The front script should send a message to the stack, each time the preOpenStack message is detected. For example:

Code: Select all

on preOpenStack
  send "updateCards" to stack "Navigator"
end preOpenStack
The updateCards handler of your stack should automatically create buttons. To determine how many buttons and where the buttons should bring the user, use the recentCards function.

You can import a snapshot of each card when it opens, adjust the dimensions of the resulting image and set the icon of the respective button to the id of that image.

Of course, the buttons need scripts to show a particular card.

This should be sufficient to make a HyperCard-like recents interface.

Best,

Mark

Posted: Mon Oct 29, 2007 11:19 am
by LESTROSO
Many thanks Mark!


You always help me with complete information...

Now i'll try your code and i'll see.......

Bye,

Lestroso

Posted: Mon Oct 29, 2007 11:28 am
by Mark
Hi Lesotro,

I hope you understood me well. You need to write the updateCards handler yourself (therefore "should").

Good luck.

Mark

Posted: Mon Oct 29, 2007 1:37 pm
by LESTROSO
Yes Mark.....I have understood.....ok i have to write to myself the code in the

card as you say to me before.....


Thanks again, i hope to make that right....


Bye,

Lestroso :)


www.fasasoftware.com