OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: khann on May 29, 2009, 07:50:09 PM

Title: BlockList's OnKeyDown event bug
Post by: khann on May 29, 2009, 07:50:09 PM
Hi.
I've tested the BlockList OnKeyDown event.
After pressing the left, right, up, down arrow key,
the "dcl_blocklist_getcursel" returns the previous selitem value.
Mmm.
Title: Re: BlockList's OnKeyDown event bug
Post by: owenwengerd on May 29, 2009, 10:01:02 PM
I'm not sure I understand the problem. If you press left/right/up/down, the current selection should end up where it started.
Title: Re: BlockList's OnKeyDown event bug
Post by: Fred Tomke on May 29, 2009, 11:56:01 PM
Hm,

QuoteIf you press left/right/up/down, the current selection should end up where it started.

What will be given back by dcl_blocklist_getcursel within OnKeyUp?

Fred
Title: Re: BlockList's OnKeyDown event bug
Post by: owenwengerd on May 30, 2009, 12:38:22 PM
Ah, I understand now. The problem is that the current selection does not change until *after* the OnKeyDown event. It seems strange that there is no OnSelectionChanged event for the block list; it should be added as a feature request.