The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
How to do these things in SDL?
A.J.Moorse


Joined: 17 May 2013
Posts: 1
1.How to remove (hide)the caption bar?

2. How to make your SDL window appear over other windows while other windows are activated?

2.Normally if you want to move a window, you drag the caption bar.
What if I want to move it by dragging the "Client Area"? any neat way?


thank you all,

Alex
How to do these things in SDL?
Sik


Joined: 26 Nov 2011
Posts: 905
2013/5/17, A.J.Moorse:
Quote:
1.How to remove (hide)the caption bar?

Pass SDL_WINDOW_BORDERLESS as one of the flags to SDL_CreateWindow, if
I recall correctly.

Quote:
2. How to make your SDL window appear over other windows while other windows
are activated?

That'd imply making the window topmost, but I don't think SDL lets you
do this as-is. Somebody correct me if I'm wrong.

Quote:
2.Normally if you want to move a window, you drag the caption bar.
What if I want to move it by dragging the "Client Area"? any neat way?

This works by catching the mouse dragging events and then moving the
window accordingly. The former is just a matter of handling mouse
events and keeping track of them, for the latter you can use
SDL_SetWindowPosition.
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org