Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox Entry
Message
De
12/11/2008 19:26:13
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
12/11/2008 19:01:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01361431
Message ID:
01361539
Vues:
24
>>>>>>>Do you use inputmask, e.g. "99:99" and format "R"?
>>>>>>
>>>>>>We have InputMask as below and no Format.
>>>>>>
>>>>>>!!:!! !!
>>>>>>
>>>>>
>>>>>First of all, use "R" format. It will improve this thing, i.e. you will not get :: anymore. You could also make further improvements, e.g. by moving AM/PM part to separate box, or by resetting it in InteractiveChange event.
>>>>
>>>>What is your thought about using the InteractiveChange event to handle the AM/PM?
>>>
>>>You know, after thinking a bit, I would not even use InteractiveChange. You could instead use KeyPress event, something like this:
>>>
>>>LPARAMETERS nKeyCode, nShiftAltCtrl
>>>IF this.SelStart=6
>>>	IF INLIST(nKeyCode,65,80)
>>>		RETURN
>>>	endif
>>>	nodefault
>>>endif
>>>
>>>Also, use Inputmask '99:99 !M'.
>>
>>Ok, got that working, but still having trouble on entry of the time value. If we type "1:" it just doesn't take the ":" because the InputMask is numeric 9. I would like the cursor to jump to the character after the ":" in the entry. Any ideas?
>
>I see Tore gave you right idea.
>Frankly, if I could make this class, then I would use 2 spinners plus AM/PM combo.

Me too, but we have a lot (a lot) of users who want it to be text entry. And they pay our bills.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform