Dialog Box...

Just starting out? Need help? Post your questions and find answers here.
Skipsy
User
User
Posts: 98
Joined: Wed Apr 30, 2003 12:26 pm
Location: France

Dialog Box...

Post by Skipsy »

Hi all,

I feel stupid... :oops: I can't find a way to create a dialog box
(DIALOG API) including text boxes, check box etc...

I can do it creating a new window but it does not "act" as a dialog. For
exemple, when a window calls a dialog and the user click on the main
window system beeps.
With my solution (new window) if I click on the main window, it hides the
"dialog".

Any idea ???
Thks
Beware of the man who has the solution before he understands the problem...
bernardfrancois
User
User
Posts: 47
Joined: Tue Sep 02, 2003 9:17 am
Location: Belgium
Contact:

Post by bernardfrancois »

do you mean the MessageRequester() command?
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

You can use the new 'Parent' parameter of the OpenWindow() command, it should solve most of the problems.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

See this little program for another way to achieve a nice dialog box. I use it for an 'about box' that won't go when you click the main app. See 'about' in the help menu.

http://www.garyw.uklinux.net/PB/Finance ... 0v4.02.zip
--Kale

Image
Skipsy
User
User
Posts: 98
Joined: Wed Apr 30, 2003 12:26 pm
Location: France

Post by Skipsy »

Great,

You're right. I didn't noticed this new parameter from the PB news so
I was still using v1.71.

Many thks.
Beware of the man who has the solution before he understands the problem...
Post Reply