tcgoh Active Member Licensed User Longtime User Jul 21, 2012 #1 Hi, I have a SQL table presented on a ScrollView with the Front size declare as float. How do I change the textsize in the scrollview in the designer scripts to carter for different screen sizes? Thanks
Hi, I have a SQL table presented on a ScrollView with the Front size declare as float. How do I change the textsize in the scrollview in the designer scripts to carter for different screen sizes? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 21, 2012 #2 ScrollView doesn't have a text size property. ScrollView only holds other views. Upvote 0
tcgoh Active Member Licensed User Longtime User Jul 21, 2012 #3 Erel said: ScrollView doesn't have a text size property. ScrollView only holds other views. Click to expand... Alright thanks. That means the textsize could not be varied with screen size. Upvote 0
Erel said: ScrollView doesn't have a text size property. ScrollView only holds other views. Click to expand... Alright thanks. That means the textsize could not be varied with screen size.
klaus Expert Licensed User Longtime User Jul 21, 2012 #4 You must change the text size of the views when you add them to the ScrollView.Panel. Best regards. Upvote 0
tcgoh Active Member Licensed User Longtime User Jul 21, 2012 #5 klaus said: You must change the text size of the views when you add them to the ScrollView.Panel. Best regards. Click to expand... Hi Klaus, Thanks for the reply. I'm using one of your scrollview SQL example and I'm unable to get "scrollview.panel.textsize" or a "scrollview.panel" in the designer scripts. Sorry I'm lost. Could you show me some code or example. Thanks for your help. Regards. Upvote 0
klaus said: You must change the text size of the views when you add them to the ScrollView.Panel. Best regards. Click to expand... Hi Klaus, Thanks for the reply. I'm using one of your scrollview SQL example and I'm unable to get "scrollview.panel.textsize" or a "scrollview.panel" in the designer scripts. Sorry I'm lost. Could you show me some code or example. Thanks for your help. Regards.
klaus Expert Licensed User Longtime User Jul 21, 2012 #6 You can't change the font size in the Designer script because all the views in the scrollview are added in the code in the SetHeader and AddRow routines. You have the FontSize variable defining the text size. So you could check the screen size and change the value of FontSize according to the screen size. Best regards. Upvote 0
You can't change the font size in the Designer script because all the views in the scrollview are added in the code in the SetHeader and AddRow routines. You have the FontSize variable defining the text size. So you could check the screen size and change the value of FontSize according to the screen size. Best regards.