Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TextBox vs. Editbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00085581
Message ID:
00087566
Vues:
53
>> FYI, Turns out, certain properties are scoped to the current data session. When I close tables and set the DE, then OpenTables, I loose these properties for the textbox where I want a date:
>>
>>.txtbox.Format - Must be set to D in form Designer
>>.txtbox.ReadOnly - Must be set at runtime after new datasession is started
>>.txtbox.Enabled - Same
>>
>>SET MARK TO / - These set somewhere in form Init
>>SET DATE TO BRITISH
>>
>>Incidentally, ReadOnly is also set .T. with the editboxes but I don't need a special format with those so that was the only property that I needed set after new DE.
>>
>>Eric K.
>Eric,
>
>Well actually your are both right and wrong here. The textbox is disabled becuase when it was created its controlsource did not exist so eithr the textbox was disabled or it was unbound from the controlsource. The Form's Init runs after the textbox has been created.
>
>As for the SETs yes there are a bunch of them that are scoped to the data session adn have to be set for every private data session. The two you mention are two of the ones that need to be set, there are a bunch of other as well.

Jim,

Yes, this is a problem if I set a data session with a form based on a .vcx class. I have to launch the form with the control's controlsource set to none.
Actually, I was not aware of the form init coming after the control is created.
Knowing this, it makes more sence.

Eric K.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform