Automatically select next TextBox?

Started by Chuck, December 11, 2007, 04:14:56 PM

Previous topic - Next topic

Chuck

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. :-\

BazzaCAD

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)
)

a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

BazzaCAD

a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

Chuck

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. :)

Chuck

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.

owenwengerd

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.

Chuck

Thank you. I just installed the update. ;D