Page 1 of 1

color in Windows and Dialogs

Posted: Mon Mar 30, 2009 2:00 pm
by istkharsma
Hi Dear,

Currently I m using resource wokshop to design my dialog forms and also using MDI Window, but now I want to change my main MDI window including menu and toolbar and currently I am using command as follows:

DEFINE WINDOW oMainWnd ;
TITLE M_Name ;
MDI ;
COLOR RGB(224,224,128),RGB(64,32,0) ;
MENU BuildMenu() ;
ICON oIco

but using this command, I am able the change the background color of MDi Window, So, can anyone guide me that how can I do it.

Best Regards,
SMA

Re: color in Windows and Dialogs

Posted: Mon Mar 30, 2009 3:01 pm
by Antonio Linares
Sma,

There is no way to change the menu color yet.

How are you building the tooldbar ? Please post the PRG code, thanks

Re: color in Windows and Dialogs

Posted: Mon Mar 30, 2009 4:03 pm
by istkharsma
Hello Dear,

Please find PRF code for toolbar section

DEFINE BUTTONBAR oBar 3D SIZE 40,40 OF oMainWnd

DEFINE BUTTON RESNAME "T_EXIT" OF oBar NOBORDER ;
TOOLTIP "Exit" ACTION (iRtrn:=Exit(.T.))
DEFINE BUTTON aBRts_Obj[++n] RESNAME "T_CHART" OF oBar GROUP NOBORDER ;
TOOLTIP "Chart Of Accounts..." ACTION (WP6_11(C_Name1,FromDate))
DEFINE BUTTON aBRts_Obj[++n] RESNAME "T_TRAN" OF oBar NOBORDER ;
TOOLTIP "Voucher Transaction..." ACTION WP6_21

Best Regards,
SMA

Re: color in Windows and Dialogs

Posted: Tue Mar 31, 2009 8:43 am
by Antonio Linares