Answered by:
Disable Button TAB

Question
-
Hi to everyone, I apologize for my English, I'm using google translator.
I wanted to know if there is a way to disable the TAB button, in fact I would not like that clicking on the cursor does not move between the Textbox
thanks for letting me knowFriday, April 28, 2017 1:50 PM
Answers
-
Using LitDev extension LDControls.TextBoxTab
tb1 = Controls.AddTextBox(10,10) LDControls.TextBoxTab(tb1, "True") ' "True" for TAB inside the TB tb2 = Controls.AddTextBox(10,50) 'LDControls.TextBoxTab(tb2, "False") ' "False" to jump to next TB / Control (Default behaviour)
- Edited by Pappa LapubEditor Friday, April 28, 2017 3:14 PM
- Proposed as answer by Nonki Takahashi Sunday, April 30, 2017 11:19 PM
- Marked as answer by Carmenello Tuesday, May 2, 2017 7:11 AM
Friday, April 28, 2017 3:03 PMAnswerer
All replies
-
Hello,
I am not sure if I understand you correctly. but you have an option for "TAB STOP" on the properties, you can change it to false.
Friday, April 28, 2017 2:21 PM -
I don't know if the solution of Alex_Os works for Small Basic, I have never seen the possibility to change options.
Carmanello, I also don't know exactly what you want to do, but the next little program can read which keys you press and exclude the Tab key. Perhaps you need something like this.
pos=60 GraphicsWindow.Show() GraphicsWindow.DrawText(10,10,"TEXT: ") GraphicsWindow.TextInput=TI Sub TI key=GraphicsWindow.LastKey If key<>"Tab" then GraphicsWindow.DrawText(pos,10,key) pos=pos+10 endif EndSub
Jan [ WhTurner ] The Netherlands
Friday, April 28, 2017 2:46 PMAnswerer -
Using LitDev extension LDControls.TextBoxTab
tb1 = Controls.AddTextBox(10,10) LDControls.TextBoxTab(tb1, "True") ' "True" for TAB inside the TB tb2 = Controls.AddTextBox(10,50) 'LDControls.TextBoxTab(tb2, "False") ' "False" to jump to next TB / Control (Default behaviour)
- Edited by Pappa LapubEditor Friday, April 28, 2017 3:14 PM
- Proposed as answer by Nonki Takahashi Sunday, April 30, 2017 11:19 PM
- Marked as answer by Carmenello Tuesday, May 2, 2017 7:11 AM
Friday, April 28, 2017 3:03 PMAnswerer -
Thank you very much for help, you have been very helpfulTuesday, May 2, 2017 7:11 AM