On Sun, Jan 27, 2013 at 6:48 AM, Staffan Tylen <staffan.tylen@...:
> Looking at this a little closer, I think it will probably be hard,
>> depending on what you really want to do. I think it is doable, but not
> I've now looked into this a bit more in detail and I don't think it is
> possible to implement anything in this particular case. The combobox is a
> list box and my idea was to display a tooltip when the user moves the
> cursor over the dropped-down items that gives a description of the item as
> a help before selecting an item.
Okay, that's what I thought you might want. I think that is doable.
Look at: samples\ooDialog\controls\ToolTip\manageControlTool.rex
The initial comments in the file are quite lengthy describing what and why
is being done.
It is tricky, or hard, to get it to work, but not impossible. I was going
to code up an example program for you, but I'd started something else and I
would like to finish it up before I look at the combo box thing. I'll code
an example in a week or two, unless you get it working sooner.
But I realise that there are no events available to catch the user's cursor
But, there are, the mouse move events.
> But I guess after selecting an item a tooltip could be displayed as an
> alternative. My question is, does Windows generate any events for the
> cursor movements that could be added to ooDialog?
Support for mouse events is already in ooDialog, including mouse move
events. The support for mouse move events that tool tips need is already
included in the ToolTip class.
Take a long look a the manageControlTool.rex example. It does exactly what
you want, but with tree-view items. You will need to study the code to
realize it is *not* using the tree-view's built in tool tip support. The
tool tip is created and managed completely by the Rexx code. You just need
to apply the technique in the example to the list box of the combo box.
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> Oorexx-users mailing list