OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: jb on April 16, 2008, 09:12:41 AM

Title: MouseEntered - MouseMovedOff events
Post by: jb on April 16, 2008, 09:12:41 AM
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:
(http://i283.photobucket.com/albums/kk302/bothetraveler/RolledUp.jpg?t=1208199789)

MouseEntered
(http://i283.photobucket.com/albums/kk302/bothetraveler/RolledDown.jpg?t=1208199341)

MouseMovedOff:
(http://i283.photobucket.com/albums/kk302/bothetraveler/RolledUp.jpg?t=1208199789)


Watta ya think??
Title: Re: MouseEntered - MouseMovedOff events
Post by: jb on April 16, 2008, 11:20:06 AM
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
Title: Re: MouseEntered - MouseMovedOff events
Post by: owenwengerd on April 16, 2008, 03:41:07 PM
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.
Title: Re: MouseEntered - MouseMovedOff events
Post by: jb on April 16, 2008, 04:24:51 PM
shweet!

;)
Title: Re: MouseEntered - MouseMovedOff events
Post by: Marco Jacinto on April 17, 2008, 09:08:50 AM
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
Title: Re: MouseEntered - MouseMovedOff events
Post by: jb on April 17, 2008, 10:17:16 AM
Marco,

I'm using 4.1.2.1 - I think that was one of the properties that went from T / NIL to 0 / 1?
Title: Re: MouseEntered - MouseMovedOff events
Post by: owenwengerd on April 17, 2008, 10:56:29 AM
Quote from: Marco Jacinto on April 17, 2008, 09:08:50 AM
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?
Title: Re: MouseEntered - MouseMovedOff events
Post by: Marco Jacinto on April 21, 2008, 11:16:54 AM
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.
Title: Re: MouseEntered - MouseMovedOff events
Post by: owenwengerd on April 21, 2008, 08:05:34 PM
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.
Title: Re: MouseEntered - MouseMovedOff events
Post by: Marco Jacinto on April 22, 2008, 07:58:42 AM
OK, thanks Owen
Title: Re: MouseEntered - MouseMovedOff events
Post by: jb on April 22, 2008, 08:38:21 AM
oops.