Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Touchscreen
Message
De
22/01/2014 04:50:26
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/01/2014 18:25:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01592151
Message ID:
01592283
Vues:
93
>>>No, these controls depend our other internal libraries. but you're a good developer. Really easy things...
>>>Create a container for on screen keyboard, do not put buttons, just put key pictures and catch click event so your textbox controls don't loose their focus...
>>>Others so easy too...
>>
>>The same trick can be done with regular buttons if you put your action code not in .click() but in .when(). Your code does what it needs to do, then returns .f. and your buttons never get focus.
>
>But why should it not get focus?? Suppose I use command buttons and do a getfocus to a hidden and readonly text field in its click()?!

There are such scenarios. For instance, I have an editbox with several buttons that do things to its .value, and I don't want the code to move my insertion point. I want it to behave like the usual formatting buttons in text processing (even though they don't do the same thing at all).

The technique with the invisible textbox is an old one, saw it first in an VFE 5, IIRC, but it's possible that it was there since some of earlier versions of Codebook. And even that doesn't require the commandbutton to gain focus - actually if it was on a toolbar it never would - and the current control losing focus was required for proper save, otherwise its .value wouldn't get copied into its .controlsource, so the focus had to be shifted.

IOW, even though I don't like my code to depend on scenarios, they do exist and dictate the behavior.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform