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

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

  
Forum List • Thread List • 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 • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2021-12-8  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0