Re: Switching Forms 6.0 text item background colors

From: Mike Dwyer <dwyermj_at_co,larimer.co.us>
Date: 2000/05/08
Message-ID: <o3AR4.21$F01.34379_at_wdc-read-01.qwest.net>#1/1


Forms 5.0 does not include an item property BACKGROUND_COLOR. Is that new to v. 6? You may need to use a named Visual Attribute instead.

<kkarns8565_at_my-deja.com> wrote in message news:8et1ab$5n6$1_at_nnrp1.deja.com...
> 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 Mon May 08 2000 - 00:00:00 CEST

Original text of this message