[F/OS] ⚠️ DaffyDialog - Additional Features For The Notifier Component!

tysm absolute godsend :pray:

but also plz consider just making it accept the standard image blocks so we can avoid this headache

I will try.

1 Like

sorry to bother you about this again, but can you provide more clarification on how I would go about saving the image asset with the File Component? Where does the image asset move to once I package the app. I don't completely understand. Thanks

Ok, nevermind I got it (finally)
After searching these forums for over 2 hours I've finally pieced together enough info to solve this problem...

so that the next person with this question can get a clear answer,
here is the configuration that works for me in both companion AND final build.
(I will note that there are still ways to improve it but this is a good starting point)

Here's how to get it to accept an image block:

Basically, when the app starts you have to copy all of the images you will use into the App Scope.

the list in the copyImgs function will need to contain all of the images you want to use

As you can see this is wayy too much setup for simply being able to plug an image asset block into this extension, and it should be supported from within the extension (please!).

The reason that it requires an absolute path is because BitmapFactory can only decode an absolute path, not because I don't want to. A lot of extensions, such as TaifunSharing, WhatsappTools, all require absolute paths. Also, you can simply do this.

1 Like

Hi Gordon, it seems that there is a bug in the ShowNumberPickerDialog. When you write numbers directly to the dialog box using keyboard instead of using + and - buttons - the return value is always 0. Thanks
p.s it could be also useful to add the possibility to set and to visualize an initial value in the dialog box

1 Like

I will check it and fix it hopefully. Thanks for reporting.

1 Like

New version 6!

  • Classic is no longer supported. You can now choose from Light or Dark mode, but Classic is disabled because no such class exists in R.style. I will roll out a new version that does not have the Light/Dark functions, but matches the theme of the app.

  • HTMLMessage is now changed to HTMLFormat to support HTML titles.

  • New blocks and features!

CustomDialogDismissed

image

This event is invoked when the custom dialog you created was dismissed.

Error

image

This event is invoked when an error has occurred.

Parameters: error = text, block = text

LinearProgressDismissed

image

This event is invoked when the linear progress dialog was dismissed.

CreateCustomDialog

image

Show whatever you want in a dialog. You can use as example arrangements, or images or whatever you want. Your chosen layout will be then removed from the screen and only visible in custom dialog. Please make sure the layout you want to use is visible.

Parameters: component = component

DismissCustomDialog

image

Dismisses the custom dialog that you have shown.

DismissLinearProgressDialog

image

Dismisses the linear progress dialog that you have shown.

ShowCustomDialog

image

Shows the custom dialog that you have created.

ShowLinearProgressDialog

image

Shows a progress dialog with a horizontal progress bar. Can be dismissed by user if "cancelable" is set to true. If indeterminate is set to true, maxValue and the "UpdateProgress" block will have no effect.

Parameters: title = text, message = text, iconPath = text, useIcon = boolean, indeterminate = boolean, maxValue = number (int), color = color, cancelable = boolean, buttonText

UpdateProgress

image

Updates the progress of the linear progress dialog. Has no effect if it is indeterminate.

Parameters: progress = number (int)

DimAmount

image

image

image

Sets the amount of dim behind the dialog window. 0.0 stands for no dim and 1.0 stands for full dim.

Accepts: number (float)

Fullscreen

image

image

image

This property specifies whether fullscreen should be enabled for the dialog.

Accepts: boolean

LightTheme

image

image

image

This property specifies whether light theme should be enabled for the dialog.

Accepts: boolean

1 Like

Is there a way when ShowPasswordInputDialog, the cursor autofocus on the textbox input dialog so that the user directly type

I maybe will add that in the next version, but for now the user still has to manually focus it.

Alternatively, you can use this extension for now.

1 Like

Mantap.... Its work, thank u very much sir,

Very good extension, thank you.
You are awesome.

1 Like

Hello
I keep receiving this error ...I think the problem with the "id"
call to 'DaffyDialog1$CustomChooseDialogCanceled' has too few arguments (0; must be 1)
Note: You will not see another error reported for 5 seconds.
This is my second day using MIT...so please take it easy on me!

If you're using the emulator, please test it on a real device.

I think that I have to specify the ID number in GotCustomChooseDialog...though I don't know how

You don't have to. Just set this to an integer.

I am not able to use icons on the dialogs, my images are png and saved in the assets folder. I give the complete path but for any reason I do not see any icon on the dialog. Do you have a simple working example?

If you had read the topic, you would have found this:

I did this.., I mean this is the block not working: