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

Trying to use modal dialog in main window in desktop app

$
0
0

it seems like the simplest stuff confuses me, i apologize.
The main window in my desktop app is called DGwindow
i have almost everything within this window.

i literally copy/pasted the script from the manual regarding messagedialog.
of course i adjusted for anything i have named differently.
when i try to compile, i get this error(over and over with everything i try.

DGwindow.modalTest.Pressed, line 10
Parameter “parent” expects class Window, but this is class DGwindow.DGwindow.
dialogButton = dialog.ShowModalWithin(self)

the above error message highlights “self” in dialog.showmodalwithin(self) -as the problem

what else might work there?
–the super of my window is DesktopWindow–

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4031

Trending Articles