Emulate VB6 IDE Multiline Text? |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
Posted: 01 April 2007 at 9:17pm |
Is there anyway to emulate the functionality of a multi-line property the way that the VB6 IDE handles it?
i.e. The item shows only a single line with a value of "(Text)" and an edit ("...") button. When the "..." button is clicked, a multi-line drop-down edit Window appears to allow editing. Since I haven't been able to get that behaviour, I have tried setting the ReadOnly property for the item to TRUE, and then using the DblClick event to display my own multi-line editor (this would be a decent second option for me). Unfortunately, the DblClick event only seems to fire when the Caption of the property is clicked. Is there any way to know if the user has double-clicked the value area of a property? I prefer this to using the RequestEdit event because it fires after one click, and a user might have just accidentally clicked an item (and if I am going to be showing a form, I would only like to show it after a definitive double-click). |
|
Zach
Groupie Joined: 19 July 2006 Status: Offline Points: 62 |
Post Options
Thanks(0)
|
Look up "AddInplaceButton"
That will allow you to do anything customizations like that. What you specifically ask for is pretty easy to do rough... and really not that hard to do nice and clean (borderless... resizeable textbox..etc)
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |