Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date fields - why do we see lookup button?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual ProMatrix
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01419429
Message ID:
01419610
Vues:
34
>>Hi everybody,
>>
>>I have a complex form with a pageframe with 3 pages. On each of these pages there are several date textboxes which are readonly. For some unknown reason I see a lookup button for two textboxes (one of them is not even visible).
>>
>>Where do these buttons come from and how can I not show them?
>>
>>Thanks in advance.
>
>I found the answer in the Init of the textbox control.
>
>The property I need to set is lAddLookupCommandButton
>
>Still it's weird that toggling visibility of the textbox or ReadOnly status doesn't automatically hide this button - IMHO, it should - why would we want to see a button for invisible textbox or for ReadOnly textbox?

The problem is - there is no such property in the textbox. Is it a protected property? How can I set this then?

UPDATE. Found the reason - some textboxes were using textbox_output class (lighter version of textbox_) and some were using textbox_

I'm not 100% sure what the BR for this form are - I believe in all cases the dates are not editable, but I guess I would go with the property instead of the class switch to be safe.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform