Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange memo editing behaviour
Message
 
À
17/08/1998 18:44:51
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00125100
Message ID:
00127588
Vues:
49
>>As for your foreign character form, the problem you ave to overcome is that when your foriegn character fomr gets focus the editbox loses focus. Then when you return to the editbox the selstart is reset. You have to design a method of saving the selstart in the editbox before the other form is open so that you can restore it whne the editbox regains focus. How you choose to do this is dependent on how everything else works in your application.
>>
>>You can create an editbox class for this purpose where you have a custom property for saving the selstart from the lostfocus event and restoring it in the gotfocus event.
>
>Here I go again with 'other way round' suggestion. The textbox/editbox should pass itself as a parameter, and the job of saving/restoring the .selstart could be done in the foreign character form itself. This way we may make it general enough and not have to add the feature to all the textbox/editbbox classes where we may want to use it. See the other thread (copy & paste programmatically), I've had some idea there of how to do it.

Dragan,

The problem with that approach is that wehn teh other forms gets focus the editbox textbox has already reset its selstart property. The saving has to occur before the control loses focus.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform