Sign in to follow this  
Followers 0
Kip

the same coordinates, but they wont be placed there.

6 posts in this topic

#1 ·  Posted (edited)

hi,

This is a piece of the script from vai, but there is a problem:

the button ($Button_Pos[uBound($Button_Pos)-1]) has the same coordinates as the picture ($ObjectLayerGIF[uBound($ObjectLayerGIF)-1]),

but the pic is always created at the right top corner, also when the button is placed somewhere else.

$Width and $Height stay the same but $X and $Y not

is this a bug, or... ?

thnx, Kip :)

-Problem Solved- :P

Edited by kip

Share this post


Link to post
Share on other sites



someone, please? :)

Post a 'reproducer' -- a short script that only reproduces the symptoms. The code you posted is incomplete and cannot be executed as is. Don't post a long script without stripping out irrelevant parts that have nothing to do with the part you are interested in for this topic.

:P


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

ok, unzip it > run Vai > File > New Project > Script + Form > Objects + > Button > draw a button somewhere.

-Source Removed-

Edited by kip

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I did a test:

MsgBox(0,"dd",$X&","&$Y&","&$Width&","&$Height)
                
ReDim $Button_ID[UBound($Button_ID)+1]
$Button_ID[UBound($Button_ID)-1] = GUICtrlCreateButton("Button"&UBound($Button_ID)-1,$X,$Y,$Width,$Height)

MsgBox(0,"dd",$X&","&$Y&","&$Width&","&$Height)

I created a button, and the first messagebox said: 16,16,134,21

the second messagebox said: 306,0,134,21 :):P:)

Edited by kip

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0