View previous topic :: View next topic |
Author |
Message |
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Thu Dec 06, 2012 2:39 pm Post subject: Being able to drag form? |
|
|
Hey,
How can i drag form from the background like.. i did BorderStyle to bsNone, and i want to drag it by pressing and holding the background.. how can i do it?
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Thu Dec 06, 2012 2:52 pm Post subject: |
|
|
add a mousedown event to the background object (picture, or form background itself. Can be multiple)
and then add in the code form_dragNow(formname)
now when you hold the mouse down the form will drag
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Thu Dec 06, 2012 2:55 pm Post subject: |
|
|
thank you!
_________________
|
|
Back to top |
|
|
Onim Newbie cheater Reputation: 0
Joined: 02 Feb 2014 Posts: 18 Location: Malaysia
|
Posted: Tue Feb 04, 2014 4:48 am Post subject: |
|
|
Help. the code you give is not working. It's show Error: invalid class object.
_________________
From that day forth... my arm changed... and a voice echoed "Power! Give me more power!" and if I become a demon, so be it... I'll endure the exile... anything... to protect her! |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Tue Feb 04, 2014 4:54 am Post subject: |
|
|
you must give it the form, not a string
e.g form_dragNow(UDF1)
alternatively, UDF1.dragNow()
Description: |
|
Download |
Filename: |
example.ct |
Filesize: |
439 Bytes |
Downloaded: |
1008 Time(s) |
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Onim Newbie cheater Reputation: 0
Joined: 02 Feb 2014 Posts: 18 Location: Malaysia
|
Posted: Tue Feb 04, 2014 5:15 am Post subject: |
|
|
the code is:
Code: |
function IMAGEMouseDown(sender, button, x, y)
IMAGE.dragNow()
end
|
where am i wrong?
_________________
From that day forth... my arm changed... and a voice echoed "Power! Give me more power!" and if I become a demon, so be it... I'll endure the exile... anything... to protect her! |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Tue Feb 04, 2014 5:29 am Post subject: |
|
|
it must be the formname
Not the object that you're dragging
Description: |
|
Download |
Filename: |
example.ct |
Filesize: |
22.77 KB |
Downloaded: |
902 Time(s) |
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Onim Newbie cheater Reputation: 0
Joined: 02 Feb 2014 Posts: 18 Location: Malaysia
|
|
Back to top |
|
|
|