MouseEntered - MouseMovedOff events

Started by jb · 2008-04-16 16:12 UTC · 10 replies · SMF topic #293

The picturebox control has several additional mouse events the two I'm interested in are 'entered and 'movedOff.  I know Owen is busy with 09, but I was wondering how hard it would be to add these events to a modeless form?  It would be slick to roll a form up and down by just hovering the mouse over it.

Rolled Up Form:


MouseEntered


MouseMovedOff:



Watta ya think??
Ok, started playing around with this.  I put a Picture Control at the top, sides and bottom of a form.  The top picture box controls rolling the form down - the other roll the form up.  It works pretty well as long as the cursor doesn't SPEED off the form - then the event doesn't get fired.

Would still be a nice feature to include in a forms events . . .  8)

Load the jb012-odcl.lsp file into AutoCAD and enter "test" at the command line.

jb
Attachments
Add that as a feature request. The code for detecting the mouse entering and leaving is already there, so I don't think it would be too difficult to add the events.
shweet!

;)
When running the Jame's code in 5.0.0.12 I get a runtime error for the function dcl_control_setVisible, I tought it was a problem with my code so I didn't do a deep research but obviously it is not, can anyone tell what is the problem??

Saludos
Marco Jacinto
Marco,

I'm using 4.1.2.1 - I think that was one of the properties that went from T / NIL to 0 / 1?
author=Marco Jacinto link=topic=293.msg1308#msg1308 date=1208448530 wrote:
When running the Jame's code in 5.0.0.12 I get a runtime error for the function dcl_control_setVisible...


What is the error message?
The error says the dcl_Control_SetVisible function doesn't accept a Nil value, I'm using the Spanish version, don't know if that helps.
Marco, the error comes from the 'jb012_00_Tray' symbol in the list of controls to show in the jb:012-RollUp function. Just remove that one from the list, as it does not exist.
OK, thanks Owen
oops.