PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Petrus Vorster on September 19, 2013, 02:53:16 AM

Title: Toolbar styles
Post by: Petrus Vorster on September 19, 2013, 02:53:16 AM
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.
Title: Re: Toolbar styles
Post by: Elias Montoya on September 19, 2013, 03:34:26 AM

I didnt understand. What's the question?
Title: Re: Toolbar styles
Post by: Petrus Vorster on September 19, 2013, 12:57:12 PM
Toolbar. How do I get it transparent?
Title: Re: Toolbar styles
Post by: Paul Squires on September 19, 2013, 01:16:34 PM
Checking the TBSTYLE_FLAT property for the ToolBar should do it (if you are not using a Rebar control to house the ToolBar).
Title: Re: Toolbar styles
Post by: Petrus Vorster on September 19, 2013, 02:08:58 PM
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.
Title: Re: Toolbar styles
Post by: Paul Squires on September 19, 2013, 03:22:37 PM
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.
Title: Re: Toolbar styles
Post by: Petrus Vorster on September 19, 2013, 03:29:24 PM
2013 pro plus
Title: Re: Toolbar styles
Post by: Paul Squires on September 19, 2013, 03:50:39 PM
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.
[
Title: Re: Toolbar styles
Post by: José Roca on September 19, 2013, 03:52:48 PM
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
Title: Re: Toolbar styles
Post by: Petrus Vorster on September 19, 2013, 03:58:09 PM
Thanks gentlemen!!
You two are always at the forefront of things!!!
I will definitely give it a go!!!
Title: Re: Toolbar styles
Post by: Paul Squires on September 19, 2013, 06:49:01 PM
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!
Title: Re: Toolbar styles
Post by: Robert Eaton on September 20, 2013, 03:07:20 PM
That looks really nice.
Maybe it should be bumped over to the code examples!
Title: Re: Toolbar styles
Post by: David Warner on September 20, 2013, 03:15:46 PM
With a note saying it needs Win7 etc. and that it won't work on WinXP SP3.
Title: Re: Toolbar styles
Post by: Petrus Vorster on September 30, 2013, 02:04:29 PM
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.