New topic in General: 

Enabling certain Properties of EDITFIELDS does not work?

IMIXMMM - Sat Mar 29, 2008 12:07 am

<http://forums.realsoftware.com/viewtopic.php?t=21504>
                                                                                
                                                                                
Hi ,

I am having trouble setting certain properties of some edit fields. ( i am 
using RB2007-R2 on a mac 10.4.1)

The following editfields belong to a groupbox of which I set the ENABLED 
property to true or false as needed.
When an editfield ( or any object ) is set to disabled, it becomes greyed out. 
This is fine for some things  ( like buttons etc) but I want it to work 
differently. ( as follows) 
-----------------------------
I have a listbox ( within a tabpanel ) which the user can scroll through and 
when a record is highlighted in the listbox the editfields displayed below the 
listbox will have the data displayed in them fro each record. If I use enable = 
false ( for the editfields) the contents are greyed out ( including a picture 
object i have as well)

I want the contents to appear normal, that is, not greyed out, BUT ALSO - NOT 
EDITABLE ( i.e read only)  until the user clicks on an edit button to allow 
modification to the editfields. This will also show the border for the 
editfields which allow data entry.

What I have discovered is the following kinds of properties DO NOT CHANGE the 
appearance of the editfields.
Setting any of these properties to true or false MAKES NO DIFFERENCE!
I have also tried setting the properties in the properties pane to both true 
and false and it does not work.

Is this a bug?

Thanks 

Dave M

Code:
GroupBox_Items.Enabled=true
EditField_ItemCode.ReadOnly=false
EditField_ItemCode.Border=true
EditField_ItemCode.UseFocusRing=true

                                        
                                                                                
                                                                                
                                                                                
                                                                                
                                        




-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to