Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Added Checkbox ReadOnly In Browse Window
Message
De
03/02/2005 11:28:27
 
 
À
03/02/2005 11:26:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
00983492
Message ID:
00983512
Vues:
13
It's one of those errors you do only once! :-)

>Tore,
>
>That was it!! I never thought about visible because I could see the checkbox and it's value in the browse window.
>
>Thanks,
>
>Gary.
>
>>All object which are added programmatically, are not visible by default.
>>
>>>Hello Everyone,
>>>
>>>I am trying to expand my knowledge of using custom browse windows and can't figure out why when I replace a column with a checkbox, the checkbox changes to readonly when the browse window gets focus. When I left the RemoveObject out it didn't change the behavior either. The browse is against a table (record optimistic).
>>>
>>>Can anyone tell me whats going on and how to get the checkbox to remain updatable (readonly = .f.) Here is the code snipit I am testing with:
>>>
>>>Thanks,
>>>Gary Pike.
>>>
>>>
>>>CLEAR
>>>SET STEP ON
>>>BROWSE FIELDS  cBatch_no, lseparate_check NAME CustomBrowse NOWAIT TITLE 'Selection'
>>>CustomBrowse.ReadOnly = .f.
>>>CustomBrowse.column2.header1.Caption="Include"
>>>CustomBrowse.column2.ReadOnly = .F.
>>>CustomBrowse.column2.Sparse = .f.
>>>CustomBrowse.column2.RemoveObject('text1')
>>>CustomBrowse.column2.AddObject('CHKBOX','CHECKBOX')
>>>CustomBrowse.column2.CurrentControl='CHKBOX'
>>>CustomBrowse.column2.cHKBOX.Caption=""
>>>CustomBrowse.column2.cHKBOX.readonly = .f.
>>>CustomBrowse.column2.Width = 50
>>>CustomBrowse.column2.Enabled = .T.
>>>CustomBrowse.Width = 161
>>>CustomBrowse.Height = 300
>>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform