-
I made a listbox that has characters and other stuff. When
you double click a character, for example, A, then A would be added to a textbox. The problem that I can't figure out is how to add the character where the The Blinking "|" is. Please help me! Thanks in advance..
-Matt
-
the textbox should have a selstart property
-
insertion
I don't know if thats what the function I need for what I'm
doing. Heres a little diagram of what I'm doing:
| = Blinking Insertion Line
___________________
|A...B...C...D...E...F...[G]<-|-----Listbox("G" is Highlighted)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
________________
|AA|AA.....................<-|
|________________|\
________________...\
|AAG|AA...............<-|---textbox
|.................................|
|______________|
(Don't mind the periods)
When the G is doubleclicked, it goes where the blinking insertion point is. Thats what I want done, I can't figure out how its done, or what is needed to do it.
[Edited by Matthew Howle on 04-30-2000 at 05:39 PM]
-
selstart returns the position of the cursor. For the insertion you need to use left(txtbox,txtbox.selstart) & yourtext & mid(txtbox,txtbox.selstart+1)