General information
Category:
Forms & Form designer
>> 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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only