Color BUTTON KEY With DIALOG

Color BUTTON KEY With DIALOG

Postby HATHAL » Fri Mar 18, 2016 4: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
User avatar
HATHAL
 
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh

Re: Color BUTTON KEY With DIALOG

Postby Antonio Linares » Fri Mar 18, 2016 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42074
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Color BUTTON KEY With DIALOG

Postby HATHAL » Fri Mar 18, 2016 9:20 pm

Antonio.
I want with standard button.
User avatar
HATHAL
 
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh

Re: Color BUTTON KEY With DIALOG

Postby RAMESHBABU » 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: Select all  Expand view

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
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: Color BUTTON KEY With DIALOG

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42074
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests