wimpie3 Well-Known Member Licensed User Longtime User Dec 26, 2024 #1 When using a second page (for instance with a selection list): - is there a way to remove the separator (PropertySeperator=false only works on the main screen)? - is there a way to change the font of the list items? - is there a way to change the icon of the close button? Ah, and now that I'm here ;-) Is there a possibility to change the font indicated with the red arrow? Perhaps I'm overlooking something. I thought this would be possible with CustomDrawProperty.PropertySettingViews.ActionValueLabel.Font= MYFONT, but it's not... Thanks!
When using a second page (for instance with a selection list): - is there a way to remove the separator (PropertySeperator=false only works on the main screen)? - is there a way to change the font of the list items? - is there a way to change the icon of the close button? Ah, and now that I'm here ;-) Is there a possibility to change the font indicated with the red arrow? Perhaps I'm overlooking something. I thought this would be possible with CustomDrawProperty.PropertySettingViews.ActionValueLabel.Font= MYFONT, but it's not... Thanks!
Alexander Stolte Expert Licensed User Longtime User Dec 26, 2024 #2 wimpie3 said: - is there a way to remove the separator (PropertySeperator=false only works on the main screen)? Click to expand... B4X: Copy AS_Settings1.SelectionListItemProperties.SeperatorsVisible = False wimpie3 said: - is there a way to change the font of the list items? Click to expand... B4X: Copy AS_Settings1.SelectionListItemProperties.xFont = xui.CreateDefaultBoldFont(20) wimpie3 said: - is there a way to change the icon of the close button? Click to expand... B4X: Copy SettingPage2.ExitIconImageView.SetBitmap(AS_Settings1.FontToBitmap(Chr(0xE5CD),True,45,xui.Color_White)) wimpie3 said: Ah, and now that I'm here ;-) Is there a possibility to change the font indicated with the red arrow? Perhaps I'm overlooking something. I thought this would be possible with CustomDrawProperty.PropertySettingViews.ActionValueLabel.Font= MYFONT, but it's not... Click to expand... B4X: Copy Private Sub AS_Settings1_CustomDrawActionProperty(ActionProperty As AS_Settings_CustomDrawActionProperty) ActionProperty.ActionValueLabel.Font = xui.CreateDefaultBoldFont(20) End Sub Attachments AS_Settings.b4xlib AS_Settings.b4xlib 26.2 KB · Views: 320 Upvote 0
wimpie3 said: - is there a way to remove the separator (PropertySeperator=false only works on the main screen)? Click to expand... B4X: Copy AS_Settings1.SelectionListItemProperties.SeperatorsVisible = False wimpie3 said: - is there a way to change the font of the list items? Click to expand... B4X: Copy AS_Settings1.SelectionListItemProperties.xFont = xui.CreateDefaultBoldFont(20) wimpie3 said: - is there a way to change the icon of the close button? Click to expand... B4X: Copy SettingPage2.ExitIconImageView.SetBitmap(AS_Settings1.FontToBitmap(Chr(0xE5CD),True,45,xui.Color_White)) wimpie3 said: Ah, and now that I'm here ;-) Is there a possibility to change the font indicated with the red arrow? Perhaps I'm overlooking something. I thought this would be possible with CustomDrawProperty.PropertySettingViews.ActionValueLabel.Font= MYFONT, but it's not... Click to expand... B4X: Copy Private Sub AS_Settings1_CustomDrawActionProperty(ActionProperty As AS_Settings_CustomDrawActionProperty) ActionProperty.ActionValueLabel.Font = xui.CreateDefaultBoldFont(20) End Sub
wimpie3 Well-Known Member Licensed User Longtime User Dec 26, 2024 #4 Two more things... 1. would it be possible to add a parameter with a padding value for the second page (red arrows, like it already exists for the main settings screen with the PADDING parameter)? In that way the look and feel of the main page can be identical to the one of the second page. 2. is there a way to change the background color (blue arrow) on the second page? can't seem to find that... there's SelectionItemSelectionColor and SelectionListItemProperties but not SelectionBackgroundColor or something similar... perhaps I'm overlooking? Upvote 0
Two more things... 1. would it be possible to add a parameter with a padding value for the second page (red arrows, like it already exists for the main settings screen with the PADDING parameter)? In that way the look and feel of the main page can be identical to the one of the second page. 2. is there a way to change the background color (blue arrow) on the second page? can't seem to find that... there's SelectionItemSelectionColor and SelectionListItemProperties but not SelectionBackgroundColor or something similar... perhaps I'm overlooking?
Alexander Stolte Expert Licensed User Longtime User Dec 26, 2024 #5 wimpie3 said: would it be possible to add a parameter with a padding value for the second page (red arrows, like it already exists for the main settings screen with the PADDING parameter)? In that way the look and feel of the main page can be identical to the one of the second page. Click to expand... Now uses the padding property like all others. For whatever reason I had hardcoded it to 5dip. wimpie3 said: 2. is there a way to change the background color (blue arrow) on the second page? can't seem to find that... there's SelectionItemSelectionColor and SelectionListItemProperties but not SelectionBackgroundColor or something similar... perhaps I'm overlooking? Click to expand... It use the same AS_Settings1.PropertyProperties.BackgroundColor like all other properties too. Generally the MainPage and the other pages are the same, they all use the same class and therefore all the same properties. The only difference is the display method. The MainPage is displayed as a whole page and the other pages are displayed in a BottomSheet. So if something looks different, it is due to the property type. Attachments AS_Settings.b4xlib AS_Settings.b4xlib 26.2 KB · Views: 347 Upvote 0
wimpie3 said: would it be possible to add a parameter with a padding value for the second page (red arrows, like it already exists for the main settings screen with the PADDING parameter)? In that way the look and feel of the main page can be identical to the one of the second page. Click to expand... Now uses the padding property like all others. For whatever reason I had hardcoded it to 5dip. wimpie3 said: 2. is there a way to change the background color (blue arrow) on the second page? can't seem to find that... there's SelectionItemSelectionColor and SelectionListItemProperties but not SelectionBackgroundColor or something similar... perhaps I'm overlooking? Click to expand... It use the same AS_Settings1.PropertyProperties.BackgroundColor like all other properties too. Generally the MainPage and the other pages are the same, they all use the same class and therefore all the same properties. The only difference is the display method. The MainPage is displayed as a whole page and the other pages are displayed in a BottomSheet. So if something looks different, it is due to the property type.
wimpie3 Well-Known Member Licensed User Longtime User Dec 27, 2024 #6 Thanks! I'd love it though if the padding property would be a separated setting from the main page - it looks cool if the popup that appears is a bit smaller (like a window). But I know I've been asking so much already ;-) Last edited: Dec 27, 2024 Upvote 0
Thanks! I'd love it though if the padding property would be a separated setting from the main page - it looks cool if the popup that appears is a bit smaller (like a window). But I know I've been asking so much already ;-)