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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A good way to keep Combo & Edit boxes readable

Status
Not open for further replies.

Scott24x7

Programmer
Jul 12, 2001
2,828
JP
In keeping with my last tip, about how to overide the "Select Field on Entry", I have another helpful tip for use with edit regions, and combo boxes. I find it often hard to read Drop Downs, and Edit regions when you show a field as "DISABLE". They grey text in the white boxes is not easy to read, and color selection for disabled pairs on these items is difficult to control. What I do instead, is in my SHOW GETS routine, I always show these fields ENABLE, and place the following little bit of code in the WHEN clause:

=NOEDI()

This calls the code below, which I put in the procedure file set with the SET PROCEDURE TO command elsewhere in my application. Note that the item in the OBJNUM() clause is just a common set of control buttons that I point the output to any time you try to enter one of those fields. The great thing is that on EDIT regions, the scorll bar is not considered part of the field itself, and so they remain enabled, and the text is allowed to scoll without any adverse effects.

PROCEDURE NOEDIT

IF NOT M.EDITING AND NOT M.ADDING
_CUROBJ = OBJNUM(M.QUITSCREEN)
ENDIF
*
RETURN


Hope you find this useful. If you do, please cast a vote for it!
Thanks,
-Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top