On Mon, Dec 12, 2011 at 10:46 AM, Mark Miesfeld <miesf...@gmail.com> wrote:
> On Mon, Dec 12, 2011 at 8:14 AM, Oliver Sims <
> oliver.s...@simsassociates.co.uk> wrote:
>
>> **
>> Many thanks, Mark. This would do fine - but having run the program, it
>> occured to me that I'd also need an event when the mouse leaves my dialog.
>> So I looked up MSDN and tried adding the following to appropriate places in
>> your program:
>>
>>
>> ::constant WM_MOUSELEAVE 0x02A3 -- from MSDN
>>
>> ...
>>
>> Any thoughts?
>>
>>
>
> Yeah, my thoughts are that it won't work. I already tested it. <grin>
>
> By default, the mouse leave event is not generated in Windows. It has to
> be specially requested. There is no support in ooDialog to request it.
> What really needs to be done, is to add a Mouse class in ooDialog and then
> implement the needed functionality in that class.
>
>
Hi Oliver,
I've haven't seen any more on this for a while, I wonder if you gave up?
In the mean time, I couldn't leave it alone. <grin> I've intended for a
long time to implement a Mouse class and put all mouse and cursor methods
in that class. So I got that started. It's pretty cool.
I built a switchOODialog and put it on SourceForge so you can try it:
switch_ooDialog420_410-4.2.0.7401-x86_32.exe
there's a 64-bit version also of course.
It's not documented yet, but I'll send you a test program I was using which
should be enough to get you started, if you ask a few questions. Here is
the class definition:
::class 'Mouse' public
::method new class
::method init
::method getDoubleClickTime class
::method loadCursor class
::method loadCursorFromFile class
::method setDoubleClickTime class
::method swapButton class
::method appStarting
::method arrow external
::method capture external
::method clipCursor
::method connectEvent
::method cross
::method dragDetect
::method getCapture
::method getClipCursor
::method getCursorPos
::method isButtonDown
::method no
::method releaseCapture
::method restoreCursor
::method setCursor
::method setCursorPos
::method showCursor
::method trackEvent
::method wait
The loadCursorFromFile() method allows you to create a custom cursor. The
loadCursor() method allows you to access any of the predefined system
cursors. The setCursor() allows you to set the cursor to a cursor you have
loaded.
The trackEvent() method allows you request mouse leave events be generated
and the connectEvent() method allows you to connect mouse events to your
Rexx dialog.
The old mouse and cursor methods that were methods of a dialog are now all
deprecated. I'm not sure if you noticed much about the deprecated methods,
because they are no longer documented in the main part of the reference.
The deprecated methods all still work, at this time, but they simply
forward to their replacements. Or something similar. Except for a very
few that were simply broken.
Anyhow, it would be good for you to play with the Mouse class a little bit
to get any bugs out, or to suggest improvements.
--
Mark Miesfeld
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users