B4A Library Dialogs2 library - an update to the original Dialogs library

pliroforikos

Active Member
Licensed User
Good day to all
I wonder if there is a simple way to change basic colors of Date Dialog from this green to any other color.
Thank you
 

mmanso

Active Member
Licensed User
Longtime User
Hi there,

It's possible to create new input types for this library? These are the available ones:



I would like to create something like:

INPUT_TYPE_IPADDRESS

Thanks.
 

mmanso

Active Member
Licensed User
Longtime User
Ok, another doubt:

When you define a default value for the dialog with:

B4X:
Id.Input = defaultValue

the dialog opens and the default value is there (which is great). The problem is that the cursor is positioned on the begining of the field which means that if the user wants to change it he needs to do an extra touch on the screen to position on the end of the field and then delete the value...

Is this behaviour "workable"? Can I make the cursor go to the end of the field?

Ideally, when the default value is used, the cursor should be in the end and the default value should be "selected" so if the user don't want it, he should only start typing something and that would override the default value without any extra "touch" on the screen...

Thanks in advance.
 
D

Deleted member 103

Guest
The best thing is if you create your own dialogue.
Simply with a panel, 2 buttons and the text field you need.
 

valerioup

Member
Licensed User
Longtime User
in the libraries panel it tells me that there should be version 1.1 online but I only find 1.0
Is it an update issue or is the library elsewhere up to date?
 

Cyan

Member
Licensed User
Longtime User
Thank you for this library, very useful indeed.

One question that is non-obvious to me: is it possible to resize the CustomLayoutDialog after loading a layout?

I know in the instructions it mentions to use SetSize before loading a layout, I was just wondering if it's possible to resize it after? Reason for this is that I have a variable-length label in my layout and I wanted to be able to resize the dialog after (using the results of MeasureMultilineTextHeight).
 

agraham

Expert
Licensed User
Longtime User
I was just wondering if it's possible to resize it after?
I don't know what the effect of this would be - try it. If it doesn't do what you want can you have a hidden Label control and and call MeasureMultilineTextHeight on it before loading the dialog layout?
 

Cyan

Member
Licensed User
Longtime User
I don't know what the effect of this would be - try it. If it doesn't do what you want can you have a hidden Label control and and call MeasureMultilineTextHeight on it before loading the dialog layout?
Thank you for taking the time to reply.

For reference, calling SetSize after Dialog_Ready doesn't do anything except shrink the height of it so that the dialog title barely shows, so unfortunately it didn't work.
However, your other suggestion for using MeasureMultilineTextHeight on a label control dynamically created worked a treat - thank you!!
 

endbyte

Member
I can't change the filedialog text size, it uses a disproportionate size and many long names of files or folders look bad, the library is excellent hopefully in the future in a new version the filedialog text size can be modified, excellent library I use it a lot .
 

endbyte

Member
I've not had this complaint before. Are you using a non-default system font size?

I use the default system font size, I use filedialog from its first version and the text of file and folder names has always appeared to me of a larger size than the default of the system and although I have never looked for a thousand ways to be able to configure it to another size I have found the way to do it, the font size that appears is perhaps 3 or 4 points larger than normal and does not match the font sizes of the rest of my applications, my humble suggestion maybe if the size could be configured in some way of the text, your library is excellent and I thank you very much for your contributions to the b4a community.
 

endbyte

Member

agraham

Expert
Licensed User
Longtime User
See post #1 for a fix to a problem with DateDialog2. I'll post an update sometime but life is too fraught at the moment with multiple hospital appointments for both me and my partner while I am in the middle of doing some big changes to BasicIDE Suite so it will have to wait a while till things calm down!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…