How to code a dock-like app with no title bar?


#1

Just a quick question. What would be the best way to create a window like a dock, with no title bar or system controls (e.g. minimise, maximise etc)? Would it be a window with specific type flags, or use some other type of component?

Thanks


#2

Just take any ordinary component, and call addToDesktop on it.


#3

Hmm, tried that but it doesn’t display anything.

I created a new button (e.g.) in the initialisation code for the example project:

TextButton* button = new TextButton(“text”);
button->addToDesktop(0);

I also tried setting its size and position but nothing appeared.

This is on Win32.

Thanks


#4

Forgot to do setVisible(). Oops! :oops:


#5