Page 1 of 1
Button in/on Rectangle.
Posted: Thu Apr 26, 2012 6:50 pm
by kenift
I've started with LiveCode a couple of times and get stuck trying to do the simplest things.
I'm a long-term Delphi/VB/Pascal/Gambas (plus various robot and motion control and embedded) developer and can normally get new languages working out of the box. Please help me to get something functioning so I can justify buying the IDE.
1) My target platform is iPad, so I created a 1024 x 748 rectangle to define the window size, but cannot put a button in it.
Where am I going wrong?
2) When I put a rectangle over a rectangle, it will not fill with color.
(It does not help that the two columns between Fill and Clear are unlabeled and Psychic Hotline are busy.)
Thanks.
Re: Button in/on Rectangle.
Posted: Thu Apr 26, 2012 7:00 pm
by Klaus
HI kenift,
I highly recommend to check these stacks:
http://www.runrev.com/developers/lesson ... nferences/
To be honest, I have not the slightest idea what your problem is!?
Button into "rectangle"? Rectangle over rectangle?
Sorry, no capisce...
Best
Klaus
Re: Button in/on Rectangle.
Posted: Thu Apr 26, 2012 7:01 pm
by kenift
I draw a rectangle, and then expect to be able to draw a button on top of the rectangle, but it will not allow.
Re: Button in/on Rectangle.
Posted: Thu Apr 26, 2012 7:03 pm
by kenift
I can draw a button on a blank window (stack?) but then do not know how to define size of window.
Re: Button in/on Rectangle.
Posted: Thu Apr 26, 2012 7:18 pm
by kenift
OK, it's nothing to do with my background rectangle, it will not draw a button on a new blank stack.
Re: Button in/on Rectangle.
Posted: Thu Apr 26, 2012 7:28 pm
by jacque
Welcome. The size of the stack determines the card size. You won't need a rectangle object at all. If the stack size isn't correct when run on a mobile device, it will be resized to fit automatically. The advantage of setting the stack size during development is that you can see how the placement of your controls will look.
Except for the graphic object tools, you don't drag out object rectangles. You simply drag (or double-click) the object in the tool palette. Dragging a control to the card will place it wherever you let go. Double-clicking a control in the tool palette will place it in the center of the card, and you can move it from there. Once placed, any object can be resized by dragging the selection handles while in edit mode.
Edited to add:
The color column on the left is for patterns. The column on the right is for colors. Click on either and it will become obvious; the color square opens the color picker, the pattern square opens the pattern picker.
Most of all this is in the user guide, which I think would help get you up to speed pretty quickly. You can open the user guide from the Help menu.
Re: Button in/on Rectangle.
Posted: Thu Apr 26, 2012 7:35 pm
by mwieder
Also (and welcome)...
(It does not help that the two columns between Fill and Clear are unlabeled and Psychic Hotline are busy.)
if you hover the cursor over the blank columns on the property editor you'll see the tooltip explaining them.
When I put a rectangle over a rectangle, it will not fill with color.
Sounds like the "opaque" checkbox on the rectangle's property editor isn't checked.
Re: Button in/on Rectangle.
Posted: Thu Apr 26, 2012 8:23 pm
by kenift
Thanks for your help.
Now I understand the blank stack size in inspector things should be easier.
Simple when you know how

Rebooted and now creating buttons OK.