OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Fred Tomke on March 18, 2010, 05:15:16 PM

Title: read-only textbox
Post by: Fred Tomke on March 18, 2010, 05:15:16 PM
Hello,

in my remembering the background color of a textbox was automatically grayed by windows if read-only was set to True.
Am I wrong here?
If I set an OpenDCL textbox to read-only, it remains white in the background. I only want to know what is consistent to Windows before changing my code.

Fred
Title: Re: read-only textbox
Post by: owenwengerd on March 18, 2010, 05:32:56 PM
I'd say it should turn gray and ignore the background color. If not, I'd call it a bug.
Title: Re: read-only textbox
Post by: Fred Tomke on March 18, 2010, 05:52:16 PM
Thanks, I added a report.
Fred
Title: Re: read-only textbox
Post by: honkinberry on February 17, 2017, 12:15:05 PM
I am feeling this is incorrect.
With the current behavior, there is no difference between Read-Only and Enabled.
Disabling a control sets the background to the noticeable grey.
But Read-Only should allow a white background if the users wishes (IMO).  Even if requires a separate call to set background color.  This would also be consistent with other platforms (http://stackoverflow.com/questions/18039901/setting-a-read-only-textbox-default-backcolor).

--J