Page 1 of 1

Color BUTTON KEY With DIALOG

Posted: Fri Mar 18, 2016 4:35 pm
by HATHAL
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

Re: Color BUTTON KEY With DIALOG

Posted: Fri Mar 18, 2016 8:41 pm
by Antonio Linares
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

Re: Color BUTTON KEY With DIALOG

Posted: Fri Mar 18, 2016 9:20 pm
by HATHAL
Antonio.
I want with standard button.

Re: Color BUTTON KEY With DIALOG

Posted: Sat Mar 19, 2016 12:41 am
by RAMESHBABU
Mr.Hathal,

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

Code: Select all

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

Re: Color BUTTON KEY With DIALOG

Posted: Sun Mar 20, 2016 10:28 am
by Antonio Linares
Hathal,

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

Please review FWH\samples\testfold.prg