Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Window move virtual function
Window move virtual function [message #28456] Thu, 02 September 2010 14:11 Go to previous message
koldo is currently offline  koldo
Messages: 3358
Registered: August 2008
Senior Veteran
Hello all

Working to get the MediaPlayer, I am trying to prepare a SDLCtrl control.

Unfortunately that is not easy: as SDL creates its own window. It is not possible to set SDL to an existing U++ window.

Because of it a SDLCtrl (a Ctrl with SDL inside) would have to move and resize its SDL window, and has to put it over it or has to be transparent to let SDL window to be visible. If not the SDLCtrl would hide its SDL window.

In summary, I have two questions:

- Is there a virtual function that is called if a Ctrl is moved?.
Now it exists Layout() that is run if Ctrl is resized.

- Is there a way to force a window always to be over a U++ window. When I try it U++ window always finally sets on top.

or

- Is there a way to set transparent both an U++ Ctrl and the parent window rect under it.

You can see these problems in the picture. Size is right but SDLCtrl and window is over SDL, and SDL does not move with SDLCtrl because it does not know when it is moved.

index.php?t=getfile&id=2779&private=0

Thank you very much!
  • Attachment: dib.PNG
    (Size: 43.52KB, Downloaded 695 times)


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GLCtrl questions
Next Topic: ColumnList - Set(Value key, Value val) - Working right?
Goto Forum:
  


Current Time: Sat May 04 02:06:58 CEST 2024

Total time taken to generate the page: 0.02813 seconds