Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Customer Keyboard Problems
Message
De
03/08/2017 10:32:38
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
 
À
01/08/2017 02:49:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
SAMBA Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01652603
Message ID:
01653055
Vues:
69
I never use valid method with VFP. Also all of my controls are text. Because it doesn't work good with date and numeric controls like you said.

After input I convert values. This's best approach I found. I know a bit trouble, extra code but works good.


>Hi Metin,
>
>I tried your suggestion using the Image control.
>
>It is similar in behavior to using the Container and Label controls in that although it does not fire the LostFocus() event, it fires the Valid() event. This works for textboxes controls with Character values; one merely does a 'KEYBOARD (value)' in the Click event.
>
>For textbox controls with Numeric or Date values though, it does not work because of the Valid event being fired for each Click you do. To explain further, when user say clicks on label '1', then clicks '2', the value in the textbox becomes '2' instead of the intended '12', because after the '1' was clicked, the Valid event fired.
>
>
>
>
>>>Hi Thomas / Denis,
>>>
>>>After my googling, I found out the following basic steps in creating a virtual keyboard class:
>>>
>>>1 - make a "key" based on the commandbutton, which basically calls KEYBOARD of its Caption
>>>2 - create a container to "house" all these keys
>>>3 - put this container inside a toolbar
>>>
>>>Already did 1 and 2. But when I started creating the toolbar class, the Height and Width seems to be read-only. So I proceeded to programatically add (using .AddObject) in the toolbars Init method. No success so far.
>>>
>>>Any ideas?
>>
>>Hi Dennis,
>>
>>In first I used a toolbar container for my POS application because of not run focus feature of toolbar buttons. But this container was seem inharmonious at POS screen like OSK.EXE of Windows. So than I decided to use picture control's click methods for buttons. Now my virtual keyboard seem excellent and integrated with my POS application. I created a container control and put all keys with these picture controls to in. I add that container to all my POS keyboard using screens.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform