Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Hilmar,
>>
>>In order to have Visible = .T. and in spite of that have the object to be "invisible" I just set Width and Height equal 0. It works!
>
>I would have considered putting it "off-limits", something like: TextBox.Left = 1000, but making it too small to see is also an interesting option.
The idea is to have a "normally" placed and sized object in the design stage and to make it to disappear at runtime. So it was tempting to try to set Width and Height equal 0. I was really surprised, that is works. That means, that an object has an optical presentation, which is what you or the user sees, and a logical presention, which is what the runtime handles without taking note of the optical presentation.
I have not yet thought about other situations, where this could be useful.
Greetings
Hans
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement