Search found 468 matches

by Zax
Sun May 12, 2024 9:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Color Scripts
Replies: 4
Views: 152

Re: Color Scripts

The version in my initial post contained a bug, so I just edited it to put a new version.
by Zax
Sat May 11, 2024 12:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Color Scripts
Replies: 4
Views: 152

Re: Color Scripts

https://github.com/Ferruslogic/TinyColor Thank you for the link,I didn't know about this library, it seems very complete. Maybe too much for my needs. Afterwards, it's a habit that I have: I prefer to create my own simple libraries whenever possible. They are thus easier to manage and do not depend...
by Zax
Sat May 11, 2024 10:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Color Scripts
Replies: 4
Views: 152

Color Scripts

Hello, As I often use colors in different formats, and each time I get confused with the conversions, I created a stack which serves as a library *. Perhaps this library will be useful to others. * It is not a library in the "LiveCode" sense of the term, but all the functions are grouped in the stac...
by Zax
Thu May 09, 2024 4:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 37
Views: 1354

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: 37
Views: 1354

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: 37
Views: 1354

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: 37
Views: 1354

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: 37
Views: 1354

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: 37
Views: 1354

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: 37
Views: 1354

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: 187342

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 5 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: 1433

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: 1433

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 286 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: 1433

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: 1433

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?

Go to advanced search