On Wed, Oct 10, 2012 at 2:17 PM, Staffan Tylen <staffan.ty...@gmail.com> wrote:
>
>> I've opened 2 RFEs to add support for info tips.  In the RFEs I've
>> added snapshots of what the info tips look like.  Could you take a
>> quick look and see if that suites your purpose?
>>
>> List-view:   https://sourceforge.net/p/oorexx/feature-requests/490/
>>
>> Tree-view:   https://sourceforge.net/p/oorexx/feature-requests/489/
>>
>

> Yes, this is probably what I'm looking for. My immediate question is how a
> message is triggered. For example, in a listview will it allow different
> messages to pop up depending on the column in a report view, or for a
> treeview, will it allow different messages to appear for the item, the
> expand/collapse box, connecting lines, etc.? Regardless, this sounds
> interesting.

The list-view and tree-view controls both send an event notification
requesting the text for the info tip when the mouse hovers over an
item.  So, in your Rexx program you just connect this event in the
same way you connect other events.  In your event handler you pass
back the text you want to display.  Or pass back the empty string and
no tip is displayed.  (With a few caveats.)

The event handler receives arguments that allow you to determine what
item is being hovered over. For a list-view the notification is only
sent when the mouse is hovering over the item, not the sub items.
(Which people tend to call the columns, although that is technically
not accurate.)  You don't get notifications for other areas of the
controls.

The only way to get this type of message when you click on something
would be to tie it into the WinHelp API.  (And even then I'm not 100%
sure, since I've never done it.  In many cases, you can not actually
tell what will happen with a Windows API from reading alone.  You have
to actually code something and see what happens.)

This thing about info tips, is that they are relatively easy to add to
ooDialog, while to provide access to the WinHelp API is likely to be
difficult.

--
Mark Miesfeld

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to