1.How to remove (hide)the caption bar?
- 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
2013/5/17, A.J.Moorse :
1.How to remove (hide)the caption bar?
Pass SDL_WINDOW_BORDERLESS as one of the flags to SDL_CreateWindow, if
I recall correctly.
- 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.
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.