Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3695

WebMessageDialog with Button Indicator Danger

$
0
0

While I know Xojo quite well, I haven’t used Xojo Web much…

…so here I am with a probably simple question: “How can I get Xojo’s WebMessageDialog to show the Action Button properly styled for a destructive action?”

A WebButton has the Indicator: Danger.
Adding that Indicator to the WebMessageDialog seems to do nothing.
And I don’t see a way to apply that to the ActionButton.

Here’s what I’ve tried:

Var dialog As New WebMessageDialog
dialog.Title = "Destructive Action"
dialog.Indicator = Indicators.Danger
dialog.ActionButton.Caption = "Destroy"
dialog.CancelButton.Visible = True
dialog.Message = "Are you sure you want to perform this destructive action?"
dialog.Explanation = "This action cannot be undone."
AddHandler dialog.ButtonPressed, AddressOf DestructiveActionButtonPressed
dialog.Show()

I’m sure there has to be a way without creating an own/custom WebDialog for such a basic task?

12 posts - 6 participants

Read full topic


Viewing all articles
Browse latest Browse all 3695

Trending Articles