changing first to open, card....SOLVED
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
changing first to open, card....SOLVED
Hi warriors !
Added an extra new card to stack ...now looking for how to make it as the opening card when stack is loaded :
could not find where does one change the setting for that ?
any clue...
Tks
Added an extra new card to stack ...now looking for how to make it as the opening card when stack is loaded :
could not find where does one change the setting for that ?
any clue...
Tks
Last edited by liveme on Fri Apr 09, 2021 10:34 am, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 9678
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: changing first to open, card....
Hi.
Easy. Just set the number of your card of interest to "1".
Craig
Easy. Just set the number of your card of interest to "1".
Craig
Re: changing first to open, card....
Hi, I can see an Id 6 digit number but can't reach it, could you show here how you edit that number ?
Re: changing first to open, card....
Code: Select all
set the number of card to number
A better way might be to name all your cards, and then in the openStack handler “go to card “openingCard”. Then the order of the cards will never matter or get messed up.
Kelly
Re: changing first to open, card....
Keep in mind as far as card ordering goes, you can also just drag the desired card to the order you want it in the project browser.
The above shows cards that were made in order, then dragged to re-order them. This also works for controls on a card, etc.
The above shows cards that were made in order, then dragged to re-order them. This also works for controls on a card, etc.
Re: changing first to open, card....SOLVED
Thanks people; worked out fine !
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: changing first to open, card....SOLVED
Hi,
I never needed to change id but i know it can be useful.
Best regards
Jean-Marc
Best regards
Jean-Marc
Yes, we can change the id of a control but it is recommanded to read informations about it in LC dictionary.I can see an Id 6 digit number but can't reach it, could you show here how you edit that number ?
I never needed to change id but i know it can be useful.
Best regards
Jean-Marc
Best regards
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 9678
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: changing first to open, card....SOLVED
When I said set the number of your card, I really meant the number, not the ID.
You have a card ID of six digits??? Never seen anything but four.
What are they?
Craig
You have a card ID of six digits??? Never seen anything but four.
What are they?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: changing first to open, card....SOLVED
Hi Craig,
I guess that is a control id
Jean-Marc
I guess that is a control id
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 9678
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: changing first to open, card....SOLVED
Jean-Marc.
Not that any of this matters, but control ID's are also four digits, unless you include the string "ID" itself.
No?
Craig
Not that any of this matters, but control ID's are also four digits, unless you include the string "ID" itself.
No?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: changing first to open, card....SOLVED
Craig,
No. I'am able to get an id with 5 digits I guess depends the num of control of the stack
Jean-Marc
No. I'am able to get an id with 5 digits I guess depends the num of control of the stack
Jean-Marc
https://alternatic.ch
Re: changing first to open, card....SOLVED
create a button then set the id of that button to 10000 from aui onwards all the objects you create will have an id greater than 10000.
Code: Select all
create button "Test1"
set the id of button "Test1" to 10000
-
- VIP Livecode Opensource Backer
- Posts: 9678
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: changing first to open, card....SOLVED
Aha.
Certainly true that you can set an ID, and then LC will increment from there. I wonder if the OP actually did that, though, since he was only interested in moving a card in his stack to the front.
Anyway, as I said, it hardly matters.
Craig
Certainly true that you can set an ID, and then LC will increment from there. I wonder if the OP actually did that, though, since he was only interested in moving a card in his stack to the front.
Anyway, as I said, it hardly matters.
Craig
Re: changing first to open, card....SOLVED
correct :
- stack has 6 digit ID
- cards have 5 digits ID
- I dont mess with IDs so have no idea if they should be 1 or a zillion digit long...
BTW, I still dont know where is that "famous card number" (window setting) one can change....noone explained this so far !
I just moved the card UP, and that's it.
tks
- stack has 6 digit ID
- cards have 5 digits ID
- I dont mess with IDs so have no idea if they should be 1 or a zillion digit long...
BTW, I still dont know where is that "famous card number" (window setting) one can change....noone explained this so far !
I just moved the card UP, and that's it.
tks
-
- VIP Livecode Opensource Backer
- Posts: 9678
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: changing first to open, card....SOLVED
Hi.
All controls have a number property, which is why we should never set the name of a control to a number. "F3" or "3F" are OK. though.
Cards also have the number property. Same caveat, but you just:
How did you do it without this? You can cut and paste cards cleverly, but that is not the best way at all.
Craig
All controls have a number property, which is why we should never set the name of a control to a number. "F3" or "3F" are OK. though.
Cards also have the number property. Same caveat, but you just:
Code: Select all
set the number of card 'yourCardHere" to '1"
Craig