Attempt to create custom drag&drop

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
vinny_the_true
Just popping in
Just popping in
Posts: 7
Joined: Wed Aug 10, 2005 10:11

Attempt to create custom drag&drop

Postby vinny_the_true » Wed May 03, 2006 08:55

Hi there,

The drag&drop functionality available in CEGUI through CEGUI::DragContainer doesn't fit my requirements, so I added drag&drop functionnality to one of my own widget type.

I made it to avoid any functional change during the drag, no change in windows hierarchy or anything like that (I discovered by doing this that there is childing update when setting always on top...).

So far so good except that I can't get my widget over already "always on topped" other widgets (especially those placed higher in the hierarchy), like ScrollablePane Scrollbars. This remains my last problem, in other cases, it seems the behavior is right.


Here is what I set on the widget when "being dragged" state changes :

Code: Select all

   void setDragging( bool bState )
   {
      getParent()->setMutedState( bState );
      setClippedByParent( !bState );
      setModalState( bState );

      //setAlwaysOnTop( bState );
      //setEnabled( !bState );
   }


A also noticed that even if I set the "alwaysOnTop" flag, my problem with Scrollbars remains unchanged.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Wed May 03, 2006 17:31

alwaysOnTop is only relative to siblings.

User avatar
vinny_the_true
Just popping in
Just popping in
Posts: 7
Joined: Wed Aug 10, 2005 10:11

Postby vinny_the_true » Thu May 04, 2006 13:36

ok, should be cool to add this comment to the setAlwaysOnTop documentation.

If I understand you well, there is nothing in CEGUI that can do a true alwaysOnTop feature, then ? Can you see another way to do something like that ?

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Sun May 28, 2006 16:48

you can disable zorderchange. if you do this while the window is truely on top it will stay there


Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests