Change Background Color of Tabview

Started by Petrus Vorster, May 01, 2016, 03:57:21 PM

Previous topic - Next topic

Petrus Vorster

Is there a way that one can modify the background color of the Tabview in Firefly?
I would like it to fit in with the rest of my project, but the gray background kind of spoils the entire thing.

Would appreciate it if someone can share some ideas on this please.
-Regards
Peter

David Kenny


José Roca

In FireFly or not Firefly, the way to alter the appearance of a control is to make it ownerdraw and draw it by yourself. IMO too much work, specially if you want it themed and DPI aware.

Petrus Vorster

Thanks David. Still months of work ahead.

So I am stuck with the Tabview as is...  :(
Darn...!!!

Thanks for responding anyway guys.
Much appreciated as always.
-Regards
Peter

Nathan Durland

I remember once thinking that one work-around may be to pro grammatically set the width of the tabs so that they basically take up all of the empty space above the main tab area.  I never tried it, though.

Eros Olmi

Petrus,

really good looking application.

If I can ask, what windows styles do you apply to the main window to be so similar to W10 windows?

Thanks a lot
Eros


José Roca

> If I can ask, what windows styles do you apply to the main window to be so similar to W10 windows?

Guess that it is being run in Windows 10 and that look will be the one provided by the operating system.

First everything was flat (DOS), then everything was 3D, now everything flat again...

Petrus Vorster

I do run on Win 10, but the buttons that resembles windows10 was quite a challenge.
(But then the solution was so simple i nearly kicked myself.)

I modified the .INC file of the RR Button not to draw the surrounding button lines.
Then i went to:
http://www.flaticon.com/ and found the flat icons i were looking for.
I downloaded them in whatever six or seven colours i decided on and then mod them with Axialis Icon workshop 6 to be 32 or 64 pixels to what i need.
(I found the resizing of my icons on the RR buttons is weird unless I load an icon with the right size)

After that i had 2 chilforms on the main form to use as "toolbars" and the RR_button then does the rest. The mouse move-over then looks pretty cool as just the icon lights up, very much like the win10 toolbars.

I added 2 screenclips here to show how the highlighted button looks.
-Regards
Peter

Eros Olmi

Thanks a lot for explanation: result is superb.

José Roca

It is a matter of taste. I personally don't like flat icons.

Petrus Vorster

Strangely, neither did I, but somewhere it started to grow on me....
But what the heck, the very next time Microsoft releases another Windows everyone will follow suite to whatever look they will come up with....

-Regards
Peter