Home Tour! Products Download Purchase Support Company Contacts  

Question

I found that the method "Odcl_ListView_SetCurSel" could not highlight the item I wanted to select in my ListView control in a Modeless dialog box.

Answer

"Odcl_ListView_SetCurSel" won't keep the new selected item as selected with focus because your dialog box is a modeless dialog box. AutoCAD takes focus back right away after the defun event has been called. This is standard behaivor for a modeless dialog box. This way if the user makes a change in the dialog box they still can continue to type away and expect the command line to have the focus. If the users had to select the AutoCAD screen or command line after making a change in the Modeless dialog box they would find this cumbersome and an obstickle in using the Modeless dialog box.

Home Products Download Purchase Support Company Contacts