Toolbar styles

Started by Petrus Vorster, September 19, 2013, 02:53:16 AM

Previous topic - Next topic

Petrus Vorster

With everyone moving to Office2013 with its flat, mono type sleek look, I thought of somewhat adapting my work as well to a similar feel.(i kind of like this minimalist approach)
The icons are easy, but the toolbar I still try to match the background of the form to create an "invisible" toolbar with only the floating buttons.
There is many more questions, but let me fix this issue first.
-Regards
Peter

Elias Montoya


I didnt understand. What's the question?
Win7, iMac x64 Retina display 5K, i7-5820K 4.4 ghz, 32GB RAM, All updates applied. - Firefly 3.70.

Petrus Vorster

Toolbar. How do I get it transparent?
-Regards
Peter

Paul Squires

Checking the TBSTYLE_FLAT property for the ToolBar should do it (if you are not using a Rebar control to house the ToolBar).
Paul Squires
PlanetSquires Software

Petrus Vorster

Cool, thanks Paul.

Now step 2.
To get the toolbar NOT right on top but a little down.
The plan is to emulate the look of office where the form background is also the color of the header.
-Regards
Peter

Paul Squires

What version of Office are you referring to so that I can take a look to see the effect that you are trying to emulate.
Paul Squires
PlanetSquires Software

Petrus Vorster

-Regards
Peter

Paul Squires

Looks like it is the Ribbon control you need. I don't know if we (PB users) have used it yet. I will check Jose's site later to see if an example exists that interfaces to it.
[
Paul Squires
PlanetSquires Software

José Roca

Don't check in my site. Here is a link to the only existing example about using the Ribbon control with PB:
http://www.powerbasic.com/support/pbforums/showthread.php?t=52558

Petrus Vorster

Thanks gentlemen!!
You two are always at the forefront of things!!!
I will definitely give it a go!!!
-Regards
Peter

Paul Squires

Hi Jose - thanks for the Ribbon code. It was pretty simple to take your code and get it into a FireFly application (see attachment).

Thanks!
Paul Squires
PlanetSquires Software

Robert Eaton

That looks really nice.
Maybe it should be bumped over to the code examples!

David Warner

With a note saying it needs Win7 etc. and that it won't work on WinXP SP3.

Petrus Vorster

Paul, how hard will it be for you to add this as a optional toolbar in the firefly menu?
The one can choose Ordinary Toolbar or Ribbon.
Will be great if it can be done.
-Regards
Peter