Switching Forms 6.0 text item background colors
Date: 2000/05/04
Message-ID: <8et1ab$5n6$1_at_nnrp1.deja.com>#1/1
[Quoted] Dear Forms experts...
I have a control data block called DB_CONTROL with a radio group and a pair of text items and push buttons.
(*) DEF: [___________] {btn}
( ) OFF: [___________] {btn}
I'm using come code to switch the enabled propery and the background colors of one of the two pairs of text items and puch buttons a text box in a WHEN-RADIO-CHANGED procedure.
The ENABLED property switch works fine, but I can't seem to change
the background color from white to grey or vice versa. The background
color
remains stuck at the original color.
here's a fragment of the W-R-C code. Any ideas on what I'm missing?
.
.
ELSIF :DB_CONTROL.RGB_CRITERIA = 'DEF' THEN
--TURN ON THE FOLLOWING
Set_Item_Property('DB_CONTROL.TI_DEFENDANT',ENABLED,PROPERTY_TRUE);
Set_Item_Property
('DB_CONTROL.TI_DEFENDANT',BACKGROUND_COLOR,'white');
Set_Item_Property
('DB_CONTROL.BTN_DEFENDANT_LOV',ENABLED,PROPERTY_TRUE);
--TURN OFF THE FOLLOWING
Set_Item_Property
('DB_CONTROL.TI_OFFICER',BACKGROUND_COLOR,'gray20');
Set_Item_Property('DB_CONTROL.TI_OFFICER',ENABLED,PROPERTY_FALSE); :DB_CONTROL.TI_OFFICER := NULL; Set_Item_Property
('DB_CONTROL.BTN_OFFICER_LOV',ENABLED,PROPERTY_FALSE);
.
.
.
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu May 04 2000 - 00:00:00 CEST