OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Chuck on December 11, 2007, 04:14:56 PM

Title: Automatically select next TextBox?
Post by: Chuck on December 11, 2007, 04:14:56 PM
Hi all,

I'm starting to use OpenDCL for the first time and I need help. I've created a dockable form with some TextBoxes. I want the cursor to move to the next TextBox once Return has been pressed. I have already added the ReturnPressed event but I don't know how to give focus to my next TextBox.

Thank you. :-\
Title: Re: Automatically select next TextBox?
Post by: BazzaCAD on December 11, 2007, 04:21:20 PM
Right-click on a control & select "Intelligent help" to see all the functions for that control.

You can use something like this to move from TextBox1 to TextBox2:
(defun c:Project1_Form1_TextBox1_OnReturnPressed ( /)
    (dcl_Control_SetFocus Project1_Form1_TextBox2)
)

Title: Re: Automatically select next TextBox?
Post by: BazzaCAD on December 11, 2007, 04:22:07 PM
Oh ya, & welcome to the team. :)
Title: Re: Automatically select next TextBox?
Post by: Chuck on December 11, 2007, 04:38:58 PM
Thanks for the info, and thank you again for the welcome. I can't wait till I know more about OpenDCL. It's an exciting project and tool. :)
Title: Re: Automatically select next TextBox?
Post by: Chuck on December 12, 2007, 06:59:16 AM
I need a little more help on this one. Once I press enter My TabControl page goes blank. After switching to a diffent tab and then back again I notice everything is fine and my cursor is indeed in the next TextBox, but how can I do away with the vanishing tab contents?

Thank you.
Title: Re: Automatically select next TextBox?
Post by: owenwengerd on December 12, 2007, 10:00:59 AM
Quote from: Chuck on December 12, 2007, 06:59:16 AM
...how can I do away with the vanishing tab contents?

This was one of the bugs that was fixed in SP1.
Title: Re: Automatically select next TextBox?
Post by: Chuck on December 12, 2007, 10:36:36 AM
Thank you. I just installed the update. ;D