Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting into an existing memo field
Message
De
12/10/2001 11:29:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/10/2001 11:15:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00567640
Message ID:
00567655
Vues:
12
I think properties .SelStart and .SelLength (for the EditBox) can help you to find out where the cursor was.

Hilmar.

>Hi Folks -
>I have an interesting one:
>We would like to take a memo, display it in an edit box. Now when the user types into the edit box, give them the ability to activate what we call a picklist, right mouse click activates a list from which the user can select from. Once the user selects from the picklist, the value needs to be inserted into the memo field, exactly where the cursor was prior to activating the picklist.
>
>The activation of the picklist no-problem, getting the selected value from the picklist no problem, the problem is placing the picklist value in the memo field exactly where the user activated the picklist. The only idea I can come up with is to insert a hidden character just befor activating the list, then parsing the memo field replacing the hidden character the picklist value. The main issue is if the insert is in the middle of a sentence and not at the end.
>
>Has anyone have any other ideas ?
>
>Thanks,
>
>Larry
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform