Page 1 of 1
Visual designer
Posted: Sun Sep 29, 2013 4:55 pm
by MarcVanCauwenberghe
Hi,
I am looking for a few small examples on how to build a visual designer. Drag and dropping objects on a canvas, moving them and resising them with grippers or handels or whatever they are called. I know the IDE is build in livecode so it is probably in there somewhere but if someone could point me to a few smaller examples I would be very greatful.
Have a nice sunday,
Warm regards,
Marc
Re: Visual designer
Posted: Tue Oct 01, 2013 7:43 pm
by MarcVanCauwenberghe
Hi,
Nobody has any hints, tips, links, snippets, one-liners?
Marc
Re: Visual designer
Posted: Tue Oct 01, 2013 9:41 pm
by jacque
I think your request is too broad, at least, that's why I didn't answer before. It's kind of like asking "how do I build a car?" What part of a car, and how far have you got on it, and what part don't you have working yet?
The IDE itself is basically what you're asking for. It's scripts are all open, so you could take a look. Or better, start trying things and ask more specific questions here, and I think you'll have better luck.
Re: Visual designer
Posted: Wed Oct 02, 2013 11:46 am
by MarcVanCauwenberghe
OK Jacque, I will try again and examin the IDE scripts. Thanks.
I set the visibility of the UI elements so I can look at the scripts. But, if I set a breakpoint somewhere livecode does not stop. Should it?
For example, I set a breakpoint in 'On mouseEnter' in the group "colors" of the card "Brushes Card" in revTools. If I click on a color in the tools
dialog, the marquee gets set (which is part of the 'On mouseEnter' handler) but LC did not stop.
I want to be able to understand the code by putting breakpoints.
Best regards,
Marc
Re: Visual designer
Posted: Wed Oct 02, 2013 2:13 pm
by FourthWorld
Some aspects of working with IDE scripts are governed by a global variable, gRevDevelop, which is "false" by default. Setting that to true should enable breakpoints for IDE scripts, as well as enable the "Lookup Definition" item in the script editor's context menu and other features useful for working in the IDE stacks.