B basil99 Active Member Licensed User Longtime User Mar 7, 2013 #1 Hi! Played a lot with great InputDialog library, but feel a bit unsatisfied. I have labels/buttons and when user clicks I need to get numerical input. With InputDialog lib i got great popup first, then if i click the input field, i'm redirected to system numerical dialog. Is it possible to invoke system numerical keyboard in Sub _Click and how to handle events and return value ? Thank you
Hi! Played a lot with great InputDialog library, but feel a bit unsatisfied. I have labels/buttons and when user clicks I need to get numerical input. With InputDialog lib i got great popup first, then if i click the input field, i'm redirected to system numerical dialog. Is it possible to invoke system numerical keyboard in Sub _Click and how to handle events and return value ? Thank you
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2013 #2 Is the problem that the keyboard doesn't appear automatically? If I remember correctly there was no way to automatically show the keyboard in the case of modal dialogs. Upvote 0
Is the problem that the keyboard doesn't appear automatically? If I remember correctly there was no way to automatically show the keyboard in the case of modal dialogs.
B basil99 Active Member Licensed User Longtime User Mar 7, 2013 #3 Erel said: Is the problem that the keyboard doesn't appear automatically? If I remember correctly there was no way to automatically show the keyboard in the case of modal dialogs. Click to expand... No, all well with InputDialog lib, my question: is it possible to code like that: Code: Copy Sub Button_Click Dim code as int code = CallSystemNumericalInput( text ) if code = Ok newtext = CallSystemNumericalInput.text end if End sub Upvote 0
Erel said: Is the problem that the keyboard doesn't appear automatically? If I remember correctly there was no way to automatically show the keyboard in the case of modal dialogs. Click to expand... No, all well with InputDialog lib, my question: is it possible to code like that: Code: Copy Sub Button_Click Dim code as int code = CallSystemNumericalInput( text ) if code = Ok newtext = CallSystemNumericalInput.text end if End sub
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2013 #4 Yes. Code: Copy If Code = DialogResponse.POSITIVE ... Upvote 0
B basil99 Active Member Licensed User Longtime User Mar 7, 2013 #5 Erel said: Yes. Code: Copy If Code = DialogResponse.POSITIVE ... Click to expand... Thanks, Erel, but how to call SystemInput dialog with Numerical keyboard ? ) What is correct syntax/sample for it ? Thanks Upvote 0
Erel said: Yes. Code: Copy If Code = DialogResponse.POSITIVE ... Click to expand... Thanks, Erel, but how to call SystemInput dialog with Numerical keyboard ? ) What is correct syntax/sample for it ? Thanks
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2013 #6 Code: Copy Dim d As InputDialog d.InputType = d.INPUT_TYPE_NUMBERS d.Show("aaa", "Ddd", "yes", "", "", Null) Upvote 0
Code: Copy Dim d As InputDialog d.InputType = d.INPUT_TYPE_NUMBERS d.Show("aaa", "Ddd", "yes", "", "", Null)
B basil99 Active Member Licensed User Longtime User Mar 7, 2013 #7 Erel said: Code: Copy Dim d As InputDialog d.InputType = d.INPUT_TYPE_NUMBERS d.Show("aaa", "Ddd", "yes", "", "", Null) Click to expand... Well, Erel, I know how to use InputDialog lib ) I mean SYSTEM dialog with numeric keyboard setted Upvote 0
Erel said: Code: Copy Dim d As InputDialog d.InputType = d.INPUT_TYPE_NUMBERS d.Show("aaa", "Ddd", "yes", "", "", Null) Click to expand... Well, Erel, I know how to use InputDialog lib ) I mean SYSTEM dialog with numeric keyboard setted
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2013 #8 What is system dialog? Upvote 0
B basil99 Active Member Licensed User Longtime User Mar 7, 2013 #9 Erel said: What is system dialog? Click to expand... May be I name it wrong. I mean a standart Android dialog with input field, keyboard etc. You got it when you click InputDialog input area. Another example - if you declare EditText view, clicking on it, invokes input dialog Last edited: Mar 8, 2013 Upvote 0
Erel said: What is system dialog? Click to expand... May be I name it wrong. I mean a standart Android dialog with input field, keyboard etc. You got it when you click InputDialog input area. Another example - if you declare EditText view, clicking on it, invokes input dialog
Erel B4X founder Staff member Licensed User Longtime User Mar 8, 2013 #10 I see. You are referring to the soft keyboard, right? Code: Copy EditText1.InputType = EditText1.INPUT_TYPE_NUMBERS Upvote 0
I see. You are referring to the soft keyboard, right? Code: Copy EditText1.InputType = EditText1.INPUT_TYPE_NUMBERS
B basil99 Active Member Licensed User Longtime User Mar 8, 2013 #11 Erel said: I see. You are referring to the soft keyboard, right? Code: Copy EditText1.InputType = EditText1.INPUT_TYPE_NUMBERS Click to expand... Correct. Can I do the same with other views like labels and buttons ? Like that Code: Copy SomeView.Text = SomeView.INPUT_TYPE_NUMBERS Upvote 0
Erel said: I see. You are referring to the soft keyboard, right? Code: Copy EditText1.InputType = EditText1.INPUT_TYPE_NUMBERS Click to expand... Correct. Can I do the same with other views like labels and buttons ? Like that Code: Copy SomeView.Text = SomeView.INPUT_TYPE_NUMBERS
agraham Expert Licensed User Longtime User Mar 8, 2013 #12 I think you need to rephrase the question as it is not very meaningful at the moment. the INPUT_TYPE constants are for deciding what type of user input is accepted and Buttons and Labels don't accept input. Upvote 0
I think you need to rephrase the question as it is not very meaningful at the moment. the INPUT_TYPE constants are for deciding what type of user input is accepted and Buttons and Labels don't accept input.
B basil99 Active Member Licensed User Longtime User Mar 8, 2013 #13 agraham said: I think you need to rephrase the question as it is not very meaningful at the moment. the INPUT_TYPE constants are for deciding what type of user input is accepted and Buttons and Labels don't accept input. Click to expand... Okay, lets try again. How to invoke software numerical input of Label_Click or Button_Click ? Upvote 0
agraham said: I think you need to rephrase the question as it is not very meaningful at the moment. the INPUT_TYPE constants are for deciding what type of user input is accepted and Buttons and Labels don't accept input. Click to expand... Okay, lets try again. How to invoke software numerical input of Label_Click or Button_Click ?
agraham Expert Licensed User Longtime User Mar 8, 2013 #14 Sorry, but I still don't understand. Buttons and Labels don't accept input - unless I'm missing something obvious! Upvote 0
Sorry, but I still don't understand. Buttons and Labels don't accept input - unless I'm missing something obvious!
B basil99 Active Member Licensed User Longtime User Mar 8, 2013 #15 agraham said: Sorry, but I still don't understand. Buttons and Labels don't accept input - unless I'm missing something obvious! Click to expand... Well, let me try to explain it another way Assume, i'm a user. I click button or label and get the software keyboard dialog. So, my question - is this possible to code ? If yes, how ? Upvote 0
agraham said: Sorry, but I still don't understand. Buttons and Labels don't accept input - unless I'm missing something obvious! Click to expand... Well, let me try to explain it another way Assume, i'm a user. I click button or label and get the software keyboard dialog. So, my question - is this possible to code ? If yes, how ?
thedesolatesoul Expert Licensed User Longtime User Mar 8, 2013 #16 basil99 said: Well, let me try to explain it another way Assume, i'm a user. I click button or label and get the software keyboard dialog. So, my question - is this possible to code ? If yes, how ? Click to expand... If you click on a button, you will not get a software keyboard! If your button opens an InputDialog, then the keyboard will open. A keyboard only opens in an EditText that is enabled. Upvote 0
basil99 said: Well, let me try to explain it another way Assume, i'm a user. I click button or label and get the software keyboard dialog. So, my question - is this possible to code ? If yes, how ? Click to expand... If you click on a button, you will not get a software keyboard! If your button opens an InputDialog, then the keyboard will open. A keyboard only opens in an EditText that is enabled.
B basil99 Active Member Licensed User Longtime User Mar 8, 2013 #17 thedesolatesoul said: If you click on a button, you will not get a software keyboard! If your button opens an InputDialog, then the keyboard will open. A keyboard only opens in an EditText that is enabled. Click to expand... Okay, seems i got it. If you want to assign any input to label/button click event, you need to have some edittest as "middleman" Upvote 0
thedesolatesoul said: If you click on a button, you will not get a software keyboard! If your button opens an InputDialog, then the keyboard will open. A keyboard only opens in an EditText that is enabled. Click to expand... Okay, seems i got it. If you want to assign any input to label/button click event, you need to have some edittest as "middleman"