realbasic-nug
[Top] [All Lists]

Re: Read Only

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Read Only
From: Trisha Duke <csduke@blueyonder.co.uk>
Date: Sat, 31 Jan 2009 08:18:25 +0000
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <DFF42BA3-3E0E-4842-A5CB-F1842E546F44@great-white-software.com>
References: <497DF6AE.3060703@blueyonder.co.uk> <DFF42BA3-3E0E-4842-A5CB-F1842E546F44@great-white-software.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
Norman Palardy wrote:

On 26-Jan-09, at 10:45 AM, Trisha Duke wrote:

Hi everyone,

i have a need to make a form read only so user can't change the data. I try enabled=false but on the pc, it look blurred and can't be read easily.

I know on the editfield, you can set readonly=false, but what about all the other controls eg checkbox, combobox

Make your own custom subclass and add a property to your subclass like "readOnly" or "viewOnly"
Then check the value o that property and refuse to change if it's set

Or add a property to your window and have each control check that and refuse to change value if the property is set

i did what you say... it work on the mac... wonderfully...BUT on the pc, the readonly for combobox doesn't work. it still allow to be dropdown and selected. what can do to stop that??


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>