X + Y Coordinates ??
kyle.rodrigues
Posts: 12
Ok so i have manged to find commands how to set x and y coordinates for Pop up Show effect and Pop up Hide Effect, but is there a way to actually move a button or pop up from code directly ? ... also can i reference the last "Cursor" Value pushed on the panel to store it in a variable, so i can know exactly where a user last pushed location wise on the panel?...
Thanks Guys.
Thanks Guys.
0
Comments
The right and bottom kind of threw me off at first, but keep in mind that right = left + width of button, and bottom = top + height of button, you'll be good to go. I'm starting to use this now instead of making several popups display custom navigation of each room.
AWSOME.. thanks man, you wouldn't happen to know if there is a way to store cursor value of a finger press???
This will return the press coordinates and the release via the string event for your TP, but no real-time dragging updates.
WICKED ! LOL.. you are making my day great .. I cant get the BMF command to work though, does the address portion of that command reference an address code or channel code of a button? or can you only reference a pop-up address?
Yep cant seem to get that command to work with a pop-up... but for some reason i cant even get it to move a button, does this actually move a button? or does this command only move absolute text in a button ?
Can you write me an example. of you you write it. cause im doing this.
"'^BMF-200,0,%R20,28,43,23'"
and its a no go for me.. 200 would be my address and 0 my state.
send_command dv_tp[i_panel],"'^BMF-1012,0,%R13,109,119,157'";
Button 1 (top image): 121 pix from left, 109 pix from top, 121 + 106 = 227, 109 + 48 = 157
Button 2 (bottom image): 13 pix from left, 109 pix from top, 13 + 106 = 119, 109 + 48 = 157
So . . . in ^BMF-1011,0,%Ra,b,c,d
a = left
b = top
c = a + width
d = b + height
And yes, the command definitely works for buttons. Can't comment on pop-ups.
Thank you soooo much man !! appreciate it.
This is the kind of stuff AMX needs to teach in classes: The power of using the built-in functions as opposed to Visual Architect and pushing AMXhome. The two greatest tools in any AMX project is TPD4 and NetLinx Studio. Custom will ALWAYS be better than the canned crap.