March 28, 2024, 09:33:02 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


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