September 26, 2022, 07:47:08 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Windowless Menu Bar

Started by sapero, September 24, 2008, 05:25:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sapero

This is a custom menu bar, something like you see on this page under IonicWind logo - Home, Help, Search ...
It is black, has black buttons and basic visual styles. A button can be flat (by default), pushed or hottracked. All here is custom drawn, the background and buttons is just a stretched copy of few bitmap pixels.

The first bitmap column represents menu bar background.
Next three columns - left side of pushed button.
Next one - pushed button background.
Next three - right pushed button side.
Next 4, 1, 4 pixels - next button, hottracked.
All the button offsets are predefined and selected inside CMenuBar::DrawButton, depending on current button state.

Compile as Windows EXE.

Haim

Nice one!
Thanks for sharing, Sapero

Haim