Sage SalesLogix
  • Contact Us
  • Sage North America
800-643-6400
Welcome Twitter Facebook LinkedIn
Community Home Blogs Share Ideas Search Request Access Resources
Reply
Bronze Elite Contributor
RJSamp
Posts: 482
Registered: 03-24-2009

7.X LAN: Forms Placement, Key Preview

Any way to set the Where a form will popup? MainView object (with a window style of 2 (on top of SLX) ) ?

 

Have a form.Set Key Previewt property to true. Added three events keymouse down, up, Onpress. Added a message box to each. So far so good.

click into an edit box, type something, msgbox tells me what key was pressed, YEA.

 

Is there any way to capture Alt-F4? Esc? Enter? Arrow keys, etc.?

RJ Samp
Please use plain text.
Employee
dmitry
Posts: 8
Registered: 08-02-2009

Re: 7.X LAN: Forms Placement, Key Preview

Sure, set the Left/Top/Width/Height properties of the MainView object.

I don't think you can capture Alt+F4, but the OnmCloseQuery event shodl fire.

Esc/Enter/Arrow keys should also work. besids KeyPress event, have you tried KeyUp/KeyDown?

Please use plain text.