Search found 465 matches

by Zax
Thu May 09, 2024 4:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 36
Views: 1159

Re: OpenCard to control?

Once again, I cannot judge the validity of the diagram but I think that it is useless to add the notions of "before" and "after" which are very particular and which would harm the understanding of the general message path. For me, this diagram should strike a good balance between accuracy and clarit...
by Zax
Wed May 08, 2024 10:40 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 36
Views: 1159

Re: OpenCard to control?

Great job Stam!
I propose a small graphic correction, for greater readability:
c.jpg
by Zax
Tue May 07, 2024 11:55 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 36
Views: 1159

Re: OpenCard to control?

I do not have sufficient knowledge to correct the validity of the information in this diagram but if it is correct, I suggest using the color code from the previous diagrams (notably yellow for optional elements). And if it is correct, this diagram should appear on the official LC help, replacing th...
by Zax
Tue May 07, 2024 9:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 36
Views: 1159

Re: OpenCard to control?

I found a more accurate diagram (but I don't know if the earth and the sky are rightly placed ;) )

Image
by Zax
Mon May 06, 2024 6:59 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 36
Views: 1159

Re: OpenCard to control?

dunbarx wrote:
Sun May 05, 2024 11:18 pm
Zax. You should inform Jacque that the "direction" of that diagram is upside down. She will appreciate the news.
Is she a Diana Ross fan? :wink:
by Zax
Sat May 04, 2024 12:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 36
Views: 1159

Re: OpenCard to control?

However we have a "opencontrol" message, but that is only sent to GROUPS. But maybe you can use this somehow by just grouping one or more of your controls. :) Great! Thanks a lot Klaus, it's just perfect :D This picture, found at https://lessons.livecode.com/m/4603/l/565724-the-livecode-message-pat...
by Zax
Sat May 04, 2024 11:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 36
Views: 1159

OpenCard to control?

Hello, When a card is opened, it receives the "openCard" message. Is it possible that different controls of this card also automatically receive the "openCard" message when opening this card? Of course, I could send "openCard" to the desired controls by "send" or "dispatch" but I don't know which co...
by Zax
Fri May 03, 2024 9:02 am
Forum: Games
Topic: Beleaguered Castle, solitaire card game
Replies: 1
Views: 186551

Re: Beleaguered Castle, solitaire card game

For those who like a challenge, here is one of my most difficult games. I won it in 213 moves, but it's probably possible to do better - you just have to find the right path.

To load this game, launch the application and use the File -> Load menu.

BCastle_Savegame_213.ixp.zip
(882 Bytes) Downloaded 4 times
by Zax
Sun Apr 28, 2024 8:47 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 1388

Re: Force the script editor to update?

Thank you Jacqueline for these explanations. Is there a reason you need it? I suppose not. Normally, the cantDelete of my stacks is false but when a stack has a variable number of cards and the user can easily delete cards, I feared that the user would delete all the cards and therefore delete the s...
by Zax
Sat Apr 27, 2024 11:22 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 1388

Re: Force the script editor to update?

richmond62 wrote:
Sat Apr 27, 2024 9:10 am
Maybe you could make a stack that loads with LC as a palette that has a scrolling list of all open stacks and a button to delete a selected stack.
Yes, I have that. It is precisely for my development palette that I needed this kind of script.

pal.jpg
pal.jpg (25.11 KiB) Viewed 261 times
by Zax
Sat Apr 27, 2024 8:11 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 1388

Re: Force the script editor to update?

After several tests, the following script to close and remove a target stack from memory seems to work. It has to be called from another stack (otherwise, use the File menu article Close and Remove from Memory ). The delete stack command works very cleanly: the main stack and its substacks are close...
by Zax
Fri Apr 26, 2024 6:37 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 1388

Re: Force the script editor to update?

I think I found a clue: if the main stack to be closed has its cantDelete property set to true, the delete stack command gets stuck.
Is this a bug due to the double meaning of delete stack?
by Zax
Fri Apr 26, 2024 6:28 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 1388

Re: Force the script editor to update?

jacque wrote:
Fri Apr 26, 2024 6:05 pm
Where is the handler that deletes the stack?
In another stack (a real other main stack).
by Zax
Fri Apr 26, 2024 1:06 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 1388

Re: Force the script editor to update?

I wrote a new script based on delete stack . The "delete stack" command works very cleanly: the main stack and its substacks are closed, the script editor is updated but, in some cases, I get the following error: execution error at line n/a (Object: stack locked, or object's script is executing) nea...
by Zax
Wed Apr 24, 2024 2:48 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Force the script editor to update?
Replies: 35
Views: 1388

Re: Force the script editor to update?

Thank you for all your answers :) It's unfortunate that MC chose such a confusing term for removing a stack from memory. Right. I guess it cames from "delete variable" that remove a variable from memory. Anyhow, thanks, I didn't know this use of the "delete" command. @ Bernd : awesome script! Though...

Go to advanced search