PDA

View Full Version : How to Part II



andreseloy
03-30-05, 04:45 AM
1.-I want to put the Play button aligned, but when i have three o more they become down.
2.-The PenMove have values -10,-30 or 90 etc, what are the parameter to choose that values.
3.Where i can see that numbers?
Thanks in advance
Andreseloy

Digits
03-30-05, 07:22 AM
Here is the definition of the PenMove command

[PenMove,Horizontal Offset,Vertical Offset]
Moves the pen a relative distance

think of the pen as resting where it last was moved to. This command will move it in the X and Y directions according to your input.

Positive Horizontal - Moves pen to right
Negative Horizontal - Moves pen to Left
Postive Vertical - Moves Pen Down
Negative Vertical - Moves Pen Up

Example:
If you put a button down at coordinates of 0,0 and the button is 32 pixols wide and 16 pixols in height the pen will be resting at X = 32, Y=0
To place a second button directly below that one you would create a Penmove
[PenMove,-32,16]

This brings the Pen to X=0 Y=16
This is where your next button or graphic will be placed.

Hope this helps

andreseloy
03-30-05, 09:18 AM
I wll try and post what i want and what i get¡
Very kind from you as always
Andreseloy

TVeyes
03-31-05, 04:37 AM
Hi Mario,

The [PenMove,...] command has no effect on buttons/sliders/switches of Zplugins. It only works with buttons/sliders/switches of regular Zscripts that are displayed in the Zscript Window.

andreseloy
03-31-05, 08:39 AM
Thanks Mark
Andreseloy