Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / unchangeable QEdit

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. unchangeable QEdit
#882
Posted by: 2003-05-04 19:30:54
Is there a way to prevent the user changing the contents of a QEdit ?

I have a program that displays data in a form, simply using QEdits and labels. I have colored the not-to-be-changed QEdits dark grey and made their TAB order messy. The to-be-changed ones are green with a specific TAB order. I am also using SetFocus so that the user is diverted away from the not-to-be-changed QEdits. But what I really want is to write-protect those QEdits !


I set it up this way because - depending on certain conditions - I am changing the background color of QEdits to indicate off-spec values (red background), derived values (yellow) and in-spec values (green). Using a QEdit looks neater than using labels with a background color change, as labels do not have an edge the way QEdits do.

Message2. ReadOnly works?
#883
Posted by: guidance 2003-05-04 20:15:13
Or Enabled?
http://g.yi.org/_scripts/file.php?f=2437&r=2330
Message3. Re: ReadOnly works?
#884
Posted by: 2003-05-04 20:21:33
Ah yes  :)  Qedit.ReadOnly = 1 does the trick

thanks Guidance
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥860.00 ·
 
 
¥410.00 ·
 
 
¥288.00 ·
 
 
¥918.00 ·
 
 
¥288.00 ·
 
 
¥264.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0