FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Trbgroup caption color ( to Daniel and Antonio)
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Trbgroup caption color ( to Daniel and Antonio)

Posted: Thu Jan 28, 2010 11:08 PM
Dear friends,
I need to understand wich is the part on the source of trbgroup used to show the back color where the trbgroup class write the caption , because I create a set Skin RibbonBar and I want change the back color
Best Regards, Saludos



Falconi Silvio
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Fri Jan 29, 2010 01:13 AM

Hello silvio

the TRRGROUP CLASS have 2 datas to control caption color feature

aGradCaption to Enable status
aGradDisable to Disable status

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Fri Jan 29, 2010 10:49 AM

Sorry Daniel but I changed this value but the caption back is not changed when I refresh the group
Can I send you the method I made ?

Best Regards, Saludos



Falconi Silvio
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Fri Jan 29, 2010 11:08 AM
Silvio...

from ribbonn.prg test

add this line

Code (fw): Select all Collapse
   oGr:aGradCaption = { { 0.3, nRGB( 254, 234, 115 ), nRGB( 254, 234, 115 ) }, ;
                         { 0.7, nRGB( 255, 194, 40 ), nRGB( 255, 194, 40) } }


Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Fri Jan 29, 2010 06:05 PM

thanks I found the error Now run ok also the SkinRibbon methods ( Blue, Silver, Black,Windows Seven)

Best Regards, Saludos



Falconi Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Sun Jan 31, 2010 03:46 PM

Daniel I want insert a command on file ch but it not run ok

#xcommand SET RIBBONBAR STYLE [ <oRBar> ] ;
[ <to: TO OPTION> <nOption> ];
=>;
[ <oRBar> := ] <oRBar>:Setstyle( <nOption>)

and the command on test could be

SET RIBBONBAR STYLE  oRBar  TO OPTION 4

instead of

oRBar:RibbonStyle:=4

why not run ok ?

Best Regards, Saludos



Falconi Silvio
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Mon Feb 01, 2010 05:33 PM

I don't know if this will work but try:

<oRBar>:Setstyle:= <nOption>

But really shouldn't this be part of a DEFINE RIBBONBAR...STYLE...

And instead of numeric options I would use word descriptions.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Mon Feb 01, 2010 05:35 PM

james I resolved it
there are on this forum scripts and methods to change color on the ribbonbar class created by me

Best Regards, Saludos



Falconi Silvio
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Mon Feb 01, 2010 05:48 PM

Falconi,

IF your changes were made to the FW source, then I still think it would be better to add the STYLE to the DEFINE command, something like this:

DEFINE RIBBONBAR oRBar WINDOW oWnd;
PROMPT "Configuración", "Ficheros", "Informes", "Ayudas";
HEIGHT 133 TOPMARGIN 25;
STYLE BLUE

Even better would be to use something like COLORTHEME instead of STYLE. STYLE refers to design rather than color.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Mon Feb 01, 2010 06:03 PM

jaaaaaaaaa ok !!!!

Best Regards, Saludos



Falconi Silvio
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Mon Feb 01, 2010 06:15 PM

Falconi,

I hope you didn't take my suggestions as a criticism. You have made a very nice contribution to the ribbonbar. My suggestions were only made as a way to make the syntax more compatible with the existing syntax of FW.

Keep up the good work, Falconi.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: Trbgroup caption color ( to Daniel and Antonio)

Posted: Tue Feb 02, 2010 09:27 AM

James,

I think we must use a class native fwh and all features done by fivetech, but sometimes we have to make features on classes to make programs more appetizing by our customers.

The Ribbonbar Skin is one of mine features for Ribbonbar.

From a week I must resolve a problem to show the Application Button and QuickAccesstoolbar : it run ok but I need to show bmps array as TTabs class bmps and I have some problems : I made another class TQAPanel to create the top bar .

Best Regards, Saludos



Falconi Silvio

Continue the discussion