117 questions
0
votes
0
answers
258
views
Delphi 11, Android, MessageDialog and ProgressBar
I use the dialog to confirm user actions:
TDialogService.MessageDialog('Question?', System.UITypes.TMsgDlgType.mtInformation,
[System.UITypes.TMsgDlgBtn.mbYes, System.UITypes.TMsgDlgBtn.mbNo],
System....
0
votes
1
answer
438
views
How to close TDialogService.MessageDialog() automatically after a certain time in Delphi FMX on Android?
I have the following code in Delphi FMX on Android:
TDialogService.MessageDialog('Test Close message', TMsgDlgType.mtInformation,
[TMsgDlgBtn.mbOK], TMsgDlgBtn.mbOK, 0, nil);
I need ...
4
votes
1
answer
806
views
QML: MessageDialog closes on click outside
I'm trying to show an QML MessageDialog with Qt 6.4.3. This dialog should be closed with the provided button.
import QtQuick
import QtQuick.Controls
import QtQuick.Dialogs
ApplicationWindow {
id:...
0
votes
1
answer
178
views
How to display a Toast MessageDialog in Swift using TableView and TableViewCell
I need to create a toast message dialog in my app, basically i have a TableView and within it i have a TableViewCell. I need that when the user press the cell to go to the DetailViewController the ...
0
votes
1
answer
92
views
UWP Application not run correctly on startup
I used the following code to set up and test the startup, but when I reset the computer, my project is displayed below, and even my Message-Dialog is not displayed
[Article Source : Configure your app ...
0
votes
1
answer
581
views
PostgreSQL, Java : How to print jast the RAISE EXCEPTION message without info about the place in the code?
This is my java method:
public static boolean addEmployee(Employee employee) {
String sql = "SELECT addemployee(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);";
try (Connection ...
0
votes
1
answer
138
views
From a MessageDialog how to read variables when i use pango markup?
how to use pango markup in messagedialog text using variable
For example this code
void usb_boot::creation(){
//Gtk::MessageDialog dialogue(*this, listeDeroulante.get_active_text());
std::string ...
2
votes
1
answer
95
views
How to display different comments when an if condition is true or false with Jbutton
I want to display 5 different comments when a button (Answer Btn) is clicked.
Here we can see the JOption message dialog showing "Correct" comment.
When I click the Answer button again, I ...
2
votes
3
answers
298
views
Program outputs the wrong option from if-else statement
I've been trying to create a program in Java that asks a question and then depending on the users's input displays one of the dialogs. For some reason, when I click the correct option, it gives me the ...
1
vote
1
answer
372
views
String formatting doesn't work on Message Dialog - Java
First of all, thank you for taking the time to help me!
I am trying to print a couple of sentences on a message dialog with using string formatting.
When I use the string format and print it on the ...
0
votes
2
answers
2k
views
MessageDlg does not recognize 'tab'-characters(#9) in Delphi 10.3 [duplicate]
I am trying to display a string with tabulator characters inside of a MessageDlg. The tabs inside the string are not recognized and displayed properly. I'm pretty certain it has to do with the ...
1
vote
2
answers
2k
views
JOptionPane showMessageDialog - Un-focus 'OK' button
I am trying to create showMessageDialog that will have ONLY ONE button (i.e. OK). I want that button to be un-focused. That means when the dialog opens, is user clicks on Enter key, the dialog should ...
1
vote
2
answers
5k
views
Include an if condition in message-box dialog code in c#
I have a message box dialog which comes with yes no like following. I have added no button as default selected button in the code. I want to do this by checking an if condition. Based on the if ...
-2
votes
1
answer
318
views
If else branch never used
I'm using if else and writing down some codes suddenly happens the else said the branch is never used... but it should work.
The statement looks like this
JOptionPane.showConfirmDialog(null,...
-1
votes
2
answers
568
views
Recommend way to call UWP MessageDialog in App.xaml.cs
I have a MessageDialog with just a single button in my App.xaml.cs
I wish to use it from other pages.
Several approaches seem to work but as there are subtleties with async and Tasks is a particular ...
0
votes
1
answer
744
views
UWP - Display Message Dialog 1 time
I have the code below:
if (jumlahiddb < jumlahbuku)
{
DownloadBukuKomik(url);
string KomikUpdate = @"INSERT INTO books (id,title,folder_id,identifier) SELECT " + intID + ",'" + ...
1
vote
1
answer
41
views
JMenu repeadly show showMessageDialog
I set 2 Jmenu items, one is "New game", another is "About the game".
However, when I run the program and press "New game" , the dialog of "About the game" was shown, so how can I solve this problem?
...
1
vote
1
answer
1k
views
MessageDialog missing in C# WPF
I am new in WPF C#.
I want to use a MessageDialog, but I can't instantiate it because I can't find its namespace reference.
Please note that I can use a MessageBox.
I take a screenshot here:
What ...
0
votes
0
answers
926
views
QML MessageDialog not shown correctly
I am using QT5.7.1, and the UI is defined using QML. Our application is used to control an instrument and is running in kiosk mode.
I am trying to use MessageDialog element to notify the operator ...
0
votes
1
answer
283
views
Winrt Message Dialog not showing
I am trying to display a Message Dialog in C++ (winrt) from a Desktop Windows App targeting Win 10 x64. The following code executes but the dialog is not shown. Return code from ShowAsync is good ...
2
votes
0
answers
1k
views
wxpython message dialog right to left
i am using this command, which should switch my layout to RTL but the message dialog is still LTR:
self.SetLayoutDirection(wx.Layout_RightToLeft)
message dialog:
FinishMessage=wx.MessageDialog(...
1
vote
1
answer
107
views
C++ showing caught exception in MessageDialog
I’m currently learning C++/CX, with Windows Universal App, and I want to show a caught exception message in a MessageDialog, however, C++/CX works in a way that I don’t understand, in that I can't ...
1
vote
0
answers
163
views
ShareOpenGraphContent for MessageDialog
Can I use ShareOpenGraphContent for MessageDialog?
When I create a ShareOpenGraphContent complete with its ShareOpenGraphAction and ShareOpenGraphObject and post it using ShareDialog.show() it works. ...
3
votes
0
answers
523
views
Facebook send message (MessageDialog) is not working
I am really wasting time on trying to figure out what might be wrong. I have a button(not fb send button) and on click i want to open messenger(or with any other way) to send a message to users. This ...
-2
votes
1
answer
315
views
Validate JOptionPane text fields
Please help me validate (make sure) all four of my JOptionPane text fields are filled with some information before adding information to the tableModel.
If some of the fields are empty, warning ...
0
votes
1
answer
1k
views
Colors of the TDialogService.MessageDialog
Can you explain how I can get used colors of the TDialogService.MessageDialog window?
Update: Which created using this command:
TDialogService.MessageDialog('Test3: Confirmation', MsgDlgType....
0
votes
1
answer
299
views
How to change message dialog text font at runtime in uwp?
I am developping a kiosk app for people come from diffrent countries, UI language should be changed at runtime.
ApplicationLanguages.PrimaryLanguageOverride can change the text and font shown in ...
1
vote
1
answer
3k
views
Delphi Non-Blocking MessageDialog Example How?
I have problem using FMX.Platform.IFMXDialogServiceAsync
This is my procedure:
procedure TFormMain.btnLogoutClick(Sender: TObject);
var
ASyncService : IFMXDialogServiceASync;
begin
...
2
votes
1
answer
1k
views
Customize style of MessageDialog
I'm using the DisplayAlert() method in Xamarin.Forms. Internally it uses MessageDialog.
How can I change the style of the ok and cancel button on different events like PointerOver, Pressed, and so ...
4
votes
1
answer
495
views
Facebook iOS Message Dialog Send Button Disabled
I have implemented the routine to send a link + content to facebook messenger via its MessageDialog API. I have managed to get the link content to appear on the message dialog, but the send button is ...
0
votes
2
answers
1k
views
Fixing JOptionPane code that will not show?
He is my code:
import java.util.Scanner;
import javax.swing.JOptionPane;
public class TicketNumber
{
public static void main(String[] args)
{
Scanner ...
0
votes
1
answer
938
views
How can I set focus on text instead of button in SWT MessageDialog or MessageBox?
I am currently developing a program for blind people. In my program, I have several dialogs which are implemented using SWT MessageDialog or MessageBox.
This works just fine for sighted people or ...
0
votes
0
answers
156
views
MessageDialog confirmation does not work in Windows 10 Mobile but works in Windows 10
I want to ask for confirmation if the user wants to leave the page when the Back button (hardware or AppViewBackButton) is pressed using the following code in my App.xaml.cs
protected override void ...
0
votes
1
answer
54
views
Halt code's execution, but not the application
First off the code, which runs without error but isn't covering everything I need it to:
public async Task SaveData()
{
// MessageDialog restartMessage;
// ^^ This was made global and is ...
0
votes
1
answer
96
views
MessageDialog ShowAsync throwing accessdenied exception
The ShowAsync() method for MessageDialog is sporadically failing. It's pretty much a coin flip as to whether it works or not:
private async Task CloseApp()
{
MessageDialog restartMessage = new ...
1
vote
1
answer
1k
views
How to change MessageDialog button text
I want to make specified message dialog in c# windows phone 8.1 but i don't know how to change the button text Please help me!
I used this code :
MessageItem kiirat = DataHandler....
0
votes
1
answer
147
views
wx Python MessageDialog popping up behind BusyInfo box?
I am working on some software for the company that I work for. I am using wx for the GUI. I basically have this:
When the program is busy or loading, I create a wx.BusyInfo object. But, sometimes, ...
1
vote
1
answer
165
views
Why await MessageDialog in Page constructor nevers ends?
I need to wait the result of a MessageDialog when my UWP application starts, during the splash screen. So, I put this MessageDialog inside the MainPage constructor:
private async Task ...
0
votes
1
answer
115
views
Windows Phone 8.1 Modal Dialog. How?
Following examples here in Stack Overflow, I put together a MessageDialog to show my user error messages.
In the emulator, it works fine.
On the phone, it blows right through, flashes the ...
0
votes
0
answers
146
views
Cannot resolve symbol, but using-directive is right - build fails
using Windows.UI.Popups
{ ... uninteresting ...}
var _dialog = new MessageDialog("...","...");
Error:
The type or namespace name "MessageDialog" could not be found
1
vote
1
answer
383
views
Multiple calls to MessageDialog cause crash under Windows Phone 8.1
I develop an Universal App that uses MVVM-Light. I call WebServices from the ViewModels, and I throw the exceptions encountered by the calls at the WebServices to the ViewModels: TimeOut, Wrong URL, ...
1
vote
1
answer
642
views
Content Dialog in Windows 10 UAP
How do I made that after clicking on PrimaryButtonClick my ContentDialog don't close?
private void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
{
}
0
votes
1
answer
761
views
Custom Exceptions and Message Dialog in Try-Catch clause
I develop an Universal App that need several custom exceptions to catch errors encountered when calling webservices: NoInternetAccessException, NoJSONException, UserTimeoutException, ...
Here is an ...
0
votes
1
answer
251
views
wx python timer wont run continuously after dialog
I'm using Python and wxPython to interact between my user and an USB device. The USB device is somewhat slow in processing commands. Therefor, after sending the command, I'm showing a dialog notifying ...
1
vote
1
answer
456
views
Windows.UI.Popups.MessageDialog does not work for Windows 10 IoT
await new Windows.UI.Popups.MessageDialog("Test").ShowAsync();
Has anyone else noticed this? Is there an easy work around ?
0
votes
1
answer
71
views
MessageDialog Box in windows phone 8.1?
I am using MessageDialog box for popup.but in this it shows only particular meaasge.I want to okcancel buttons with this popup.how to get these buttons.please any one help me.Thanks in advance.
3
votes
1
answer
1k
views
OK and Cancel button not visible in MessageDialog in JFace / SWT
I have a message dialog as follows:
import org.eclipse.jface.dialogs.MessageDialog
public void openQuestion(Shell parentShell, String title, String question, final int iconStyle){
MessageDialog ...
3
votes
0
answers
112
views
Windows Phone 8.1 BottomAppBar disappeared after resuming or navigating to another page
I have BottomAppBar declared in xaml for one ListPage and another BottomAppBar in ReportsPage.
Sometimes when app resuming BottomAppBar disappeared and it's often disappeared when i'm navigating from ...
0
votes
1
answer
169
views
wxPython Textentrydialog value
when I try to use the value I get it gets an empty string
dlg = wx.TextEntryDialog(None, 'Enter User Name:', 'Log in')
if dlg.ShowModal() == wx.OK:
self.user=dlg.GetValue()
1
vote
1
answer
225
views
Is it possible to change the position of a Gtk.MessageDialog's caption text?
I'm working on a project where I use the Gtk.MessageDialog to get user input.
Now, it works, but there is one thing I'd like to change, and that is where the caption text is positioned within the ...