Thread Tools Display Modes
04/04/14, 01:04 PM   #1
skyraker
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 154
XML movable controls

I have my top level control (and just in case I set my my label control to movable) in my xml file. Yet I cannot get them to move. When I defined the label control inside my lua file it worked fine, but I had to move it back outside for scoping reasons.

Code:
<TopLevelControl name="MyStatusWindow" movable="true">
     <Controls>
          <Label name="toolText" font="MyStatWinFont3" color="FFFFFF" movable="true">
               <AnchorFill />
          </Label>
     </Controls>
  Reply With Quote
04/04/14, 03:05 PM   #2
Halja
 
Halja's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 111
Originally Posted by skyraker View Post
I have my top level control (and just in case I set my my label control to movable) in my xml file. Yet I cannot get them to move. When I defined the label control inside my lua file it worked fine, but I had to move it back outside for scoping reasons.

Code:
<TopLevelControl name="MyStatusWindow" movable="true">
     <Controls>
          <Label name="toolText" font="MyStatWinFont3" color="FFFFFF" movable="true">
               <AnchorFill />
          </Label>
</Controls>
Tell it you want use the mouse to move them. The attribute is mouseEnabled="true"
  Reply With Quote
04/04/14, 03:16 PM   #3
skyraker
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 154
That's not working for me.
  Reply With Quote
04/04/14, 05:43 PM   #4
Cr4x
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 11
I tested some things and here are my results:
  • you need an anchor for your control to work correclty.
  • your control need dimensions, otherwise you try to drag 0*0 pixel
  • i guess movable is not working for labels, never heard about it so far

Cheers
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » XML movable controls


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off