Lori Scott Member Licensed User Jan 31, 2019 #1 Lori Scott said: I am using B4XFloatTextField so that I can use the Accept feature to get the iPhone number keypad to close. For this view, I selected the option for centered text but the text is still left-justified. A bug? or am I doing something wrong? Click to expand... Jorge M A said: you can try with: Code: B4XFloatTextField1.TextField.SetTextAlignment("CENTER","CENTER") Or any combination you need. Click to expand... This centers the main text but not the hint text. Is there an option like .setHintAlignment? Font size of hint does not match font size of main text either. Can I influence position and font size of the hint in a B4XFloatTExtField?
Lori Scott said: I am using B4XFloatTextField so that I can use the Accept feature to get the iPhone number keypad to close. For this view, I selected the option for centered text but the text is still left-justified. A bug? or am I doing something wrong? Click to expand... Jorge M A said: you can try with: Code: B4XFloatTextField1.TextField.SetTextAlignment("CENTER","CENTER") Or any combination you need. Click to expand... This centers the main text but not the hint text. Is there an option like .setHintAlignment? Font size of hint does not match font size of main text either. Can I influence position and font size of the hint in a B4XFloatTExtField?
Erel B4X founder Staff member Licensed User Longtime User Jan 31, 2019 #2 Changing the hint alignment is currently not supported. Lori Scott said: Can I influence position and font size of the hint in a B4XFloatTExtField? Click to expand... Yes. Change B4XTextField.HintFont and then call B4XTextField.Update Upvote 0
Changing the hint alignment is currently not supported. Lori Scott said: Can I influence position and font size of the hint in a B4XFloatTExtField? Click to expand... Yes. Change B4XTextField.HintFont and then call B4XTextField.Update
Lori Scott Member Licensed User Jan 31, 2019 #3 I tried like this Code: B4XFloatTextField1.HintFont(B4XFloatTextField1.Update) getting an error message: Array expected Upvote 0
I tried like this Code: B4XFloatTextField1.HintFont(B4XFloatTextField1.Update) getting an error message: Array expected
Lori Scott Member Licensed User Jan 31, 2019 #4 Also tried: Code: B4XFloatTextField1.HintFont.Size(B4XFloatTextField1.TextField.Font.Size) B4XFloatTextField1.Update Same error. Upvote 0
Also tried: Code: B4XFloatTextField1.HintFont.Size(B4XFloatTextField1.TextField.Font.Size) B4XFloatTextField1.Update Same error.
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2019 #5 It is a field: Code: B4XFloatTextField1.HintFont = xui.CreateDefaultBoldFont(20) Upvote 0
Lori Scott Member Licensed User Feb 1, 2019 #6 Erel said: B4XFloatTextField1.HintFont = xui.CreateDefaultBoldFont(20) Click to expand... In the attached project, I entered it this way. I'm not getting an error message any more . But it doesn't seem to have any affect on the font size of the hint . Attachments hintFont.zip hintFont.zip 926 bytes · Views: 446 Upvote 0
Erel said: B4XFloatTextField1.HintFont = xui.CreateDefaultBoldFont(20) Click to expand... In the attached project, I entered it this way. I'm not getting an error message any more . But it doesn't seem to have any affect on the font size of the hint .
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2019 #7 Please use File - Export as zip to create the zip. The layout file is missing. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2019 #8 You can change the hint sizes with: Code: SearchField.LargeLabelTextSize = 14 SearchField.SmallLabelTextSize = 10 SearchField.Update Upvote 0
You can change the hint sizes with: Code: SearchField.LargeLabelTextSize = 14 SearchField.SmallLabelTextSize = 10 SearchField.Update
Lori Scott Member Licensed User Feb 4, 2019 #9 Erel said: Please use File - Export as zip to create the zip. The layout file is missing. Click to expand... Attached. Attachments hintFont.zip hintFont.zip 61 KB · Views: 436 Upvote 0
Erel said: Please use File - Export as zip to create the zip. The layout file is missing. Click to expand... Attached.
Lori Scott Member Licensed User Feb 4, 2019 #11 Erel said: You can change the hint sizes with: Code: SearchField.LargeLabelTextSize = 14 SearchField.SmallLabelTextSize = 10 SearchField.Update Click to expand... SearchField is new to me. Please point me to the SearchField documentation or tutorial so I can study the basics of how to use it. What Library do I need? Looking in the forum gives me some idea but not the basics how to use it. Upvote 0
Erel said: You can change the hint sizes with: Code: SearchField.LargeLabelTextSize = 14 SearchField.SmallLabelTextSize = 10 SearchField.Update Click to expand... SearchField is new to me. Please point me to the SearchField documentation or tutorial so I can study the basics of how to use it. What Library do I need? Looking in the forum gives me some idea but not the basics how to use it.
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2019 #12 Sorry. It was taken from some code I worked on. SearchField is the name of a B4XFloatTextField. Code: B4XFloatTextField1.LargeLabelTextSize = 14 B4XFloatTextField1.SmallLabelTextSize = 10 B4XFloatTextField1.Update Upvote 0
Sorry. It was taken from some code I worked on. SearchField is the name of a B4XFloatTextField. Code: B4XFloatTextField1.LargeLabelTextSize = 14 B4XFloatTextField1.SmallLabelTextSize = 10 B4XFloatTextField1.Update
Lori Scott Member Licensed User Feb 4, 2019 #13 Oh, thank you for clarifying. I am working at the steep end of the learning curve. I don't always interpret things the 'obvious' way. Yes, that works. Upvote 0
Oh, thank you for clarifying. I am working at the steep end of the learning curve. I don't always interpret things the 'obvious' way. Yes, that works.
M Mark Stuart Well-Known Member Licensed User Longtime User Jun 9, 2023 #14 Erel said: Changing the hint alignment is currently not supported. Yes. Change B4XTextField.HintFont and then call B4XTextField.Update Click to expand... When will this be supported? Upvote 0
Erel said: Changing the hint alignment is currently not supported. Yes. Change B4XTextField.HintFont and then call B4XTextField.Update Click to expand... When will this be supported?
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2023 #15 You should never post in old threads. Upvote 0