Trbgroup caption color ( to Daniel and Antonio)

Trbgroup caption color ( to Daniel and Antonio)

Postby Silvio » 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
Image
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby Daniel Garcia-Gil » Fri Jan 29, 2010 1:13 am

Hello silvio

the TRRGROUP CLASS have 2 datas to control caption color feature

aGradCaption to Enable status
aGradDisable to Disable status
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby Silvio » 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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby Daniel Garcia-Gil » Fri Jan 29, 2010 11:08 am

Silvio...

from ribbonn.prg test

add this line

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


Image
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby Silvio » Fri Jan 29, 2010 6:05 pm

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

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby Silvio » Sun Jan 31, 2010 3: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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby James Bott » Mon Feb 01, 2010 5: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby Silvio » Mon Feb 01, 2010 5: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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby James Bott » Mon Feb 01, 2010 5: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby Silvio » Mon Feb 01, 2010 6:03 pm

jaaaaaaaaa ok !!!!
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby James Bott » Mon Feb 01, 2010 6: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Trbgroup caption color ( to Daniel and Antonio)

Postby Silvio » Tue Feb 02, 2010 9: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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 91 guests