Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove highlight in textbox

Status
Not open for further replies.

hing43170

IS-IT--Management
Jun 17, 2001
2
TW
Hi! Please help me on below case :
Whenever we press key TAB on keyboard to navigate to another item (example :text item). If the text item contain value, the value will be highlighted!
Could somebody please tell me how to remove the highlight on the text item ?

Thanks in advance!
 
1) you must create a when-new-item-istance and insert this string

if :global.var_item <> :system.cursor_item then
if :global.var_item <> '-' then
SET_ITEM_PROPERTY:)global.var_item, VISUAL_ATTRIBUTE, 'VISUAL_ITEM_NORMAL');
end if;

:global.var_item :=:system.cursor_item;
SET_ITEM_PROPERTY:)global.var_item, VISUAL_ATTRIBUTE, 'VISUAL_ITEM_CURSOR');

END IF;

2)

create two visual attributes VISUAL_ITEM_NORMAL whith background of the same color of the text field that you are using and the create a visual attributes VISUAL_ITEM_CURSOR with background color egual to your preferred highlight color..


bye from &quot;ilvampiro&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top