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

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
LESTROSO
Posts: 85
Joined: Wed Apr 04, 2007 6:14 pm
Contact:

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

Post 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
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post 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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
LESTROSO
Posts: 85
Joined: Wed Apr 04, 2007 6:14 pm
Contact:

Post by LESTROSO »

Many thanks Mark!


You always help me with complete information...

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

Bye,

Lestroso
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark »

Hi Lesotro,

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

Good luck.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
LESTROSO
Posts: 85
Joined: Wed Apr 04, 2007 6:14 pm
Contact:

Post 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
Post Reply