I'm using the B4XColorTemplate, and I need it bigger!
It's by default showing at around 50%x and 25%y (roughly), and I need it to be 85%y and 90%x
I've tried:
B4X:
Dim s As B4XColorTemplate
s.Initialize
s.mBase.Height = 85%y
s.mBase.Width = 90%x
Dim hsvcol As ARGBColor
hsvcol.Initialize
Dim inten As Float
tempbc.Initialize(0,0)
dialog.Title = "Choose colour"
dialog.Initialize(Activity)
wait for (dialog.ShowTemplate(s, "Ok", "", "Cancel")) complete (r As Int)
.....etc etc
And whilst the dialog itself shows the correct size, the colour 'image' inside that you chose the colour from is still normal/default size.
How can I resize that to match the dialog window!
This template isn't resizable, however you can unzip XUI Views.b4xlib, extract B4XColorTemplate.bas, rename it and add it to your project. This will allow you to modify its source code.
This template isn't resizable, however you can unzip XUI Views.b4xlib, extract B4XColorTemplate.bas, rename it and add it to your project. This will allow you to modify its source code.
I've tried this, but its conflicting with the XUIViews library when I import ATB4XColorTemplate.bas as a module.
I'm using XUIViews in other areas also, and obviously B4XColorTemplate relies on other parts of XUIViews.