FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Color BUTTON KEY With DIALOG
Posts: 80
Joined: Tue Nov 15, 2005 03:38 PM
Color BUTTON KEY With DIALOG
Posted: Fri Mar 18, 2016 04:35 PM

Hello everybody.
How To change Color BUTTON Key With DIALOG From RESOURCE


Like --->
DEFINE DIALOG Dlg RESOURCE "test"
REDEFINE BUTTON ID 2 OF RE_Dlg COLOR (RGB(255,255,255)),(RGB(190,197,248)) ACTION msginf("test color BUTTON Key ")
ACTIVATE DIALOG Dlg CENTERED


Thanks to all

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Color BUTTON KEY With DIALOG
Posted: Fri Mar 18, 2016 08:41 PM

Hathal,

Have you considered to use a TBtnBmp control instead of a standard button ?

REDEFINE BTNBMP ID 2 OF RE_Dlg COLOR ...

Also please change it in your resource

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 80
Joined: Tue Nov 15, 2005 03:38 PM
Re: Color BUTTON KEY With DIALOG
Posted: Fri Mar 18, 2016 09:20 PM

Antonio.
I want with standard button.

Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: Color BUTTON KEY With DIALOG
Posted: Sat Mar 19, 2016 12:41 AM
Mr.Hathal,

You can't use COLOR parameter with standard button.
Instead you can either BTNBMP or FLATBTN like this:

Code (fw): Select all Collapse
REDEFINE FLATBTN ID 2 OF RE_Dlg COLOR (RGB(255,255,255)),(RGB(190,197,248)) ACTION msginf("test color BUTTON Key ")

or

REDEFINE BTNBMP ID 2 OF RE_Dlg CENTER  COLOR (RGB(255,255,255)),(RGB(190,197,248)) ACTION msginf("test color BUTTON Key ")


-Ramesh Babu
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Color BUTTON KEY With DIALOG
Posted: Sun Mar 20, 2016 10:28 AM

Hathal,

If you use FWH function SkinButtons() then you could change the colors of the standard buttons.

Please review FWH\samples\testfold.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion