Visual designer

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
MarcVanCauwenberghe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 142
Joined: Thu Feb 21, 2013 8:47 am

Visual designer

Post by MarcVanCauwenberghe » Sun Sep 29, 2013 4:55 pm

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

MarcVanCauwenberghe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 142
Joined: Thu Feb 21, 2013 8:47 am

Re: Visual designer

Post by MarcVanCauwenberghe » Tue Oct 01, 2013 7:43 pm

Hi,

Nobody has any hints, tips, links, snippets, one-liners? :(

Marc

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Visual designer

Post by jacque » Tue Oct 01, 2013 9:41 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

MarcVanCauwenberghe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 142
Joined: Thu Feb 21, 2013 8:47 am

Re: Visual designer

Post by MarcVanCauwenberghe » Wed Oct 02, 2013 11:46 am

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Visual designer

Post by FourthWorld » Wed Oct 02, 2013 2:13 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply