B4A Library Dialogs library

Status
Not open for further replies.

susu

Well-Known Member
Licensed User
Thank you Agraham. I updated 3 times today and your library is better each time :D
 

tremara1

Active Member
Licensed User
You did it again..

Wow you just knock them out dont you... thanks again the num picker is great.
I tried the demo all went well but just a small thing when I changed the digits to 7 and the number to 1234500 the dialog displayed 00345.00 not a huge problem just a small thing....I hope you dont think I am picky...I am so grateful for your work you do..thanks again.
 

agraham

Expert
Licensed User
I hope you dont think I am picky...
Not at all. If it's wrong it's wrong! However - actually it's not, at least not in the library!

The demo itself is wrong, you should set the number of digits before setting the number value, not after, so the correct number of digits are loaded into the dialog on intialisation. As written it is using the default number of 5 digits which is why you see what you see.
 

tremara1

Active Member
Licensed User
thanks......again

thanks, I appreciate your response.....
 

alfcen

Well-Known Member
Licensed User
It is a masterpiece, indeed, and perhaps I should not ask, but my curiosity has been triggered:

1. Is a date picker as attached possible? Looks aiphony but is actually from an Android app.

2. Could the Number Picker be modified to accommodate negative numbers?
The idea is manual input of geo coords.
 

Attachments

agraham

Expert
Licensed User
1 - That dialog is housing a custom written View. I won't be attempting anything like that as I don't do graphics stuff if I can possibly avoid it.

2 - I'll add an option for the leftmost digit to be a + or a - character according to the sign of the initial number and make it changeable by the user.
 

agraham

Expert
Licensed User
Version 1.5 now posted has the option for the display and entry of a sign character in NumberDialog as requested above. This is achieved by an added ShowSign property and the maximum number of digits is increased to 9.

There are some other minor changes to InoutDialog. Hint and HintColor properties and INPUT_TYPE_PHONE and INPUT_TYPE_NONE constants are added. Also the SingleLine property was removed as it was non-functional because InputDialog is always a single line.
 

susu

Well-Known Member
Licensed User
Mr. Agraham, can you develop some kind of "open file dialog" ? It will be very useful :D
 

agraham

Expert
Licensed User
Version 1.6, now posted, has a modal FileDialog that can be used as both a file open and a file save dialog.

Folders are listed in the top part of the scrolling list in the dialog and files, if any, are listed in the bottom half. Touching a folder moves into it, touching ".." moves back and touching a file name enters it into the EditText at the top of the dialog. A user can enter a new filename into the EditText or can edit a selected file name. The present folder and filename, if any, can be retrieved when the dialog is closed by the user.
 

moster67

Expert
Licensed User
Very useful. Thanks Agraham!

Version 1.6, now posted, has a modal FileDialog that can be used as both a file open and a file save dialog.

Folders are listed in the top part of the scrolling list in the dialog and files, if any, are listed in the bottom half. Touching a folder moves into it, touching ".." moves back and touching a file name enters it into the EditText at the top of the dialog. A user can enter a new filename into the EditText or can edit a selected file name. The present folder and filename, if any, can be retrieved when the dialog is closed by the user.
 

alfcen

Well-Known Member
Licensed User
Sir Andrew, you are a "bloody legend". By all means, awesome work:sign0098:
Surely, Erel is right now playing with it with a big smile on his face which I have never seen.
 

Amalkotey

Active Member
Licensed User
Thank you for the great work!

Hello Andrew,

thank you for the great work!

regards
Amalkotey
 

agraham

Expert
Licensed User
I guess this is about the end of modal dialogs unless someone comes up with a good idea. Version 1.8 includes a CustomDialog which displays a Basic4Android Panel so you can show your own layouts as a modal dialog. I'm not totally happy with it as there seems to be no mechanism I can find for finding the maximum size of the area within a dialog so the sizing and positioning of the panel and its controls needs a bit of guesswork.

A minor change to FileDialog is that the scrolled position used to be inherited when you entered a child folder. Now it is reset to the top.
 

alfcen

Well-Known Member
Licensed User
Hope this is a good idea to justify Ver 1.9 :)

You could crown the NumberDialog with nd.Max = xx and nd.Min = yy,
i.e., if you tap on + or - it will stop inc/decrementing as the set limits are reached.

Of course, this can be caught in a If clause or in a Sub, but if the Lib would take care of that the source will suffice with less code lines.

No rush on that.
 

agraham

Expert
Licensed User
You could crown the NumberDialog with nd.Max = xx and nd.Min = yy,
I tried this but won't put it in for two reasons.

Firstly and mainly, unlike a NumUpDown spinner where you can see the limit approaching, because you adjust the individual numbers it doesn't "feel" right when you try to increment or decrement a high order number and it doesn't change because of the limits.

Secondly.,because internally the library is actually dealing with individual characters in individual controls and not actual numbers the logic of maintaining the consistency across the number displayed and the maximum and minimum got out of proportion to my perceived benefit of implementing the change.
 

alfcen

Well-Known Member
Licensed User
I do understand the limitations, in particular the second reason.
Thanks very much, indeed, for looking into this.
 
Status
Not open for further replies.
Top