Changing Color of Get with When clause

Post Reply
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Changing Color of Get with When clause

Post by Jack »

Hi,
I use the WHEN clause with GET in other to desable the GET .
How is it possible to change the fore of background color when the WHEN retun .F.
I'd like that the bakgroud is Yellow .

REDEFINE GET oG1 var wtotal picture "999"
REDEFINE GET oG2 var wxx WHEN wtotal > 10


Thanks for your help .
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Changing Color of Get with When clause

Post by nageswaragunupudi »

First globally set
TGet():lDisColors := .F. // Disables default disabled colors

Then
oGet:nClrTextDis := <nTextColorWhenDisabled>
oGet:nClrPaneDis := <nBackColorWhenDisabled>
Regards

G. N. Rao.
Hyderabad, India
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: Changing Color of Get with When clause

Post by Jack »

Hi,

TGet():lDisColors := .F. works nice but oG2:nClrTextDis := RGB( 255, 199, 206 ) dont work .

Error description: Error BASE/1005 No exported variable: NCLRTEXTDIS

Thanks
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Changing Color of Get with When clause

Post by nageswaragunupudi »

These are the DATAs in TGet program

DATA nClrTextDis, nClrPaneDis

Please ensure oG2 is already defined as GET

May I know your FWH version?
Regards

G. N. Rao.
Hyderabad, India
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: Changing Color of Get with When clause

Post by Jack »

Fivewin 2014 or 2016

Thanks for your help .
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Changing Color of Get with When clause

Post by nageswaragunupudi »

I am not sure about 2014, but it should work with any versions from 2015 onwards. Please use your 2016 version.
Regards

G. N. Rao.
Hyderabad, India
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: Changing Color of Get with When clause

Post by Jack »

Same with FWH16 ??
What is the first argument ?


Thanks .
Application
===========
Path and name: G:\Apps\BioBanque\bhul.exe (32 bits)
Size: 3,948,544 bytes
Compiler version: Harbour 3.2.0dev (r1601050904)
FiveWin Version: FWH 16.10
Windows version: 6.2, Build 9200

Time from start: 0 hours 0 mins 5 secs
Error occurred at: 06/03/2017, 18:22:01
Error description: Error BASE/1005 No exported variable: NCLRTEXTDIS
Args:
[ 1] = U
[ 2] = N 13551615

Stack Calls
===========
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Changing Color of Get with When clause

Post by nageswaragunupudi »

Can you please reproduce your program?
Regards

G. N. Rao.
Hyderabad, India
Post Reply