Home   Help Search Login Register  

Author Topic: moving ctrls ?  (Read 1252 times)

0 Members and 1 Guest are viewing this topic.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
moving ctrls ?
« on: 03 Oct 2007, 20:46:14 »
is dere ny way 2 set dialogs so da player can move da controls around (i wanna have da player moving da dialog 2 order...)?

i tried movingenable... but it doesnt seem 2 work....

ny ideas ?

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: moving ctrls ?
« Reply #1 on: 03 Oct 2007, 20:58:39 »
movingEnabled doesn't seem to have anything to do with dragging the dialogs or controls. Either it has no effect or it has something to do with allowing the player to move.

To enable dragging:
- [Automatic] Make a 3d object, onto which you can paste the 2d dialog components (like the notepad in the map screen). This doesn't seem to work in description.ext dialogs (I've tried it), so, assuming that it isn't just a BIS-only capability, you'd need to put it in an addon.
- [Manual] Capture onMouseButtonDown onMouseButtonUp and onMouseMoving events and move each of the controls yourself.

[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: moving ctrls ?
« Reply #2 on: 03 Oct 2007, 21:26:10 »
Quote
- [Manual] Capture onMouseButtonDown onMouseButtonUp and onMouseMoving events and move each of the controls yourself.

thing i tried 2 do but... it seems dat my rscPicture (parent class BIS use) doesnt rect 2 these events.... is there nything i missed w/ dis eventhandlers ? (dey did work w/ edit fields and stuff like dat)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: moving ctrls ?
« Reply #3 on: 03 Oct 2007, 23:08:35 »
It might be that the picture needs to have the focus to receive events; I know that other controls, such as the map need focus for that. Alternatively, you could ensure that there is a transparent control in front of the picture that can capture events, then move both the transparent and picture control during dragging events.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: moving ctrls ?
« Reply #4 on: 03 Oct 2007, 23:23:38 »
thx will try n report back ;) :D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta