Drago Bratko Active Member Licensed User Longtime User Apr 13, 2019 #1 How can one make font size bigger or smaller in "Dialog.ShowTemplate(SearchTemplate ..." ? I'm using SearchTemplate where item names are quite long, so I would need to make font in suggestion list smaller so all fit's to screen. Last edited: Apr 13, 2019
How can one make font size bigger or smaller in "Dialog.ShowTemplate(SearchTemplate ..." ? I'm using SearchTemplate where item names are quite long, so I would need to make font in suggestion list smaller so all fit's to screen.
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2019 #2 It will be easier with the next update of xCustomListView. Currently the relevant label is private so we need to use JavaObject to modify it: Code: Copy Dim TextSize As Float = 25 'FLOAT Dim jo As JavaObject = SearchTemplate.CustomListView1 jo.GetFieldJO("_designerlabel").RunMethod("setTextSize", Array(TextSize)) Upvote 0
It will be easier with the next update of xCustomListView. Currently the relevant label is private so we need to use JavaObject to modify it: Code: Copy Dim TextSize As Float = 25 'FLOAT Dim jo As JavaObject = SearchTemplate.CustomListView1 jo.GetFieldJO("_designerlabel").RunMethod("setTextSize", Array(TextSize))
Drago Bratko Active Member Licensed User Longtime User Apr 14, 2019 #3 Great, thank you ... that's good news. Do you have time-frame for next release ? As I will not have to finish app in next 1-2 weeks, I could plan to include next version in final version ... Upvote 0
Great, thank you ... that's good news. Do you have time-frame for next release ? As I will not have to finish app in next 1-2 weeks, I could plan to include next version in final version ...
Peter Simpson Expert Licensed User Longtime User Apr 14, 2019 #4 Drago Bratko said: Do you have time-frame for next release ? Click to expand... Really, Erel is a busy family man and has already given you a fully working solution. Probably no time frame, just use the JavaObject to finish your app, as theres no difference in the end results. Upvote 0
Drago Bratko said: Do you have time-frame for next release ? Click to expand... Really, Erel is a busy family man and has already given you a fully working solution. Probably no time frame, just use the JavaObject to finish your app, as theres no difference in the end results.
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2019 #5 As Peter wrote, the JavaObject solution is completely fine. Don't wait for the next release. I've already changed it in the source code. This a minor change with a simple workaround so it doesn't justify a "full release". Upvote 0
As Peter wrote, the JavaObject solution is completely fine. Don't wait for the next release. I've already changed it in the source code. This a minor change with a simple workaround so it doesn't justify a "full release".
Drago Bratko Active Member Licensed User Longtime User Apr 14, 2019 #6 Yes, of course. This is what I will do. Thank you both for taking your time for answering. Upvote 0