Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange memo editing behaviour
Message
De
19/08/1998 10:00:34
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:
00128109
Vues:
55
>>
>>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.

First I said "oh sh*" (not loudly) and then... then I thought the saving may be done while the other form still didn't pop up - i.e. in its init. Would need some fiddling, but generally I think the editbox shouldn't have lost focus before the object it creates instantiates; when it gets back it restores focus to the calling box, restores the .selstart, inserts the text into the .seltext... I've written this down to try these days. Could work.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform