Chuck
2007-12-12 00:14 UTC
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
2007-12-12 00:21 UTC
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)
)
bazzacad
2007-12-12 00:22 UTC
Oh ya, & welcome to the team. :)
Chuck
2007-12-12 00:38 UTC
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
2007-12-12 14:59 UTC
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
2007-12-12 18:00 UTC
author=Chuck link=topic=110.msg455#msg455 date=1197471556 wrote:
...how can I do away with the vanishing tab contents?
This was one of the bugs that was fixed in SP1.
Chuck
2007-12-12 18:36 UTC
Thank you. I just installed the update. ;D