Edit the text of a MenuItem at run-time

  • Thread starter Thread starter illegal.prime
  • Start date Start date
I

illegal.prime

Hey all, I would like to allow users to edit the text in a MenuItem
simply by clicking on it. I.E. if they click on the item, the text
gets a cursor that they can now type in new text for that MenuItem.

I don't think this is possible with a usual MenuItem object. So is
there some other MenuItem type of class out there that will allow that?

Thanks,
Novice
 
The thing comes in my mind to easily do this is to open text dialog on click
og the menu item and enter the new name there ;).

But if you really need exactly below functionality then you have to use
owner draw for that

- Angelina
 
Yeah, I just wanted to avoid having to open a new dialog window -
because it is just changing a single number.

So if I used owner draw for that, would I actually have to draw a
blinking cursor, handle all keyboard input or is there something upon
which I can build?

Thanks,
Novice
 
I think you can directly add a textbox control to the menu item. You need to
do some RnD for this as I don't now exactly how a add a textbox into a menu.

- Angelina
 
Back
Top