toolbar class as Menu 2015

toolbar class as Menu 2015

Postby Silvio.Falconi » Wed Jan 20, 2016 9:16 am

Ho w Ican modify the color of the toolbar as colors of menu2015 ?

the menu 2015

Image


I try to insert the menu on the toolbar and I change the background of the button but I cannot modify the color od the rebar

Image

oImageList:AddMasked( TBitmap():Define( "TOOLBAR_ESERCIZI",, ::oWndMain ), RGB( 244, 245, 245 ) )

any solution ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6786
Joined: Thu Oct 18, 2012 7:17 pm

Re: toolbar class as Menu 2015

Postby cnavarro » Wed Jan 20, 2016 9:41 am

Silvio.Falconi wrote:Ho w Ican modify the color of the toolbar as colors of menu2015 ?

the menu 2015

Image


I try to insert the menu on the toolbar and I change the background of the button but I cannot modify the color od the rebar

Image

oImageList:AddMasked( TBitmap():Define( "TOOLBAR_ESERCIZI",, ::oWndMain ), RGB( 244, 245, 245 ) )

any solution ?


Silvio, style 2015 in oBar is implemented in next build
We're doing tests
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: toolbar class as Menu 2015

Postby Silvio.Falconi » Wed Jan 20, 2016 9:51 am

I not mean buttonbar but on toolbar (REbar class)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6786
Joined: Thu Oct 18, 2012 7:17 pm

Re: toolbar class as Menu 2015

Postby cnavarro » Wed Jan 20, 2016 9:53 am

Silvio.Falconi wrote:I not mean buttonbar but on toolbar (REbar class)


Ok, Any small example?
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: toolbar class as Menu 2015

Postby Silvio.Falconi » Wed Jan 20, 2016 11:20 am

Local oImageList, oReBar,oHand
Local nColore_ToolBar:= RGB( 244, 245, 245 ) //2015...

DEFINE CURSOR oHand HAND

DEFINE IMAGELIST oImageList SIZE 32,30

oImageList:AddMasked( TBitmap():Define( "TOOLBAR_ESERCIZI",, ::oWndMain ), nColore_ToolBar )
oImageList:AddMasked( TBitmap():Define( "TOOLBAR_ATTIVITA",, ::oWndMain ), nColore_ToolBar )
oImageList:AddMasked( TBitmap():Define( "TOOLBAR_APUNTES",, ::oWndMain ), nColore_ToolBar )

oReBar = TReBar():New( ::oWndMain )

DEFINE TOOLBAR ::oBar OF oReBar SIZE 36,36 IMAGELIST oImageList

::oBar:lTTBalloon:=.t.
::oBar:oCursor:= oHand

oReBar:InsertBand( ::oBar )

::oBar:nHeight -= 2


DEFINE TBBUTTON OF ::oBar ;
ACTION NIL ;
TOOLTIP i18n( "Gestione Esercizi" ) ;
MESSAGE i18n( "Gestione Esercizi." )

DEFINE TBBUTTON OF ::oBar ;
ACTION NIL ;
TOOLTIP i18n( "Gestione Attività" ) ;
MESSAGE i18n( "Gestione Attività." )

DEFINE TBSEPARATOR OF ::oBar


DEFINE TBBUTTON OF ::oBar ;
ACTION NIL ;
TOOLTIP i18n( "Gestione Movimenti" ) ;
MESSAGE i18n( "Gestione Movimenti." )
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6786
Joined: Thu Oct 18, 2012 7:17 pm

Re: toolbar class as Menu 2015

Postby cnavarro » Wed Jan 20, 2016 11:30 am

Sorry
I wanted to say if you can attach a picture

Thanks
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: toolbar class as Menu 2015

Postby cnavarro » Wed Jan 20, 2016 12:03 pm

Silvio

First implementation

Image
Last edited by cnavarro on Thu Jan 21, 2016 12:08 pm, edited 1 time in total.
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: toolbar class as Menu 2015

Postby Silvio.Falconi » Thu Jan 21, 2016 8:09 am

not depend from my bitmaps I use for create the button of toolbar
I have c5bar and it run ok only I wish use toolbar fwh class
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6786
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 17 guests