Pelles C forum

C language => Beginner questions => Topic started by: rp108 on October 07, 2015, 04:51:41 PM

Title: Looking for example code for modal or non-modal pop up dialog
Post by: rp108 on October 07, 2015, 04:51:41 PM
I have a Pelles C app running.
It is a dialog based win32 application.

I have a single dialog now.
While MessageBoxes are great for small notifications,
I would like to add a modal dialog or a non-modal dialog
so that I can have an editbox, checkboxes and maybe a scroll box,
on the pop up dialog.

I have downloaded quite a few Pelles C sample programs but have only seen MessageBoxes as pop ups.
google searching also did not turn up any examples....

My understanding is that a modal dialog has to be closed before you can return to the mother dialog, and a non-modal dialog is independent of the mother dialog.

Any help with finding some sample code for Pellex C is greatly appreciated.

Thanks,
Rob
Title: Re: Looking for example code for modal or non-modal pop up dialog
Post by: TimoVJL on October 07, 2015, 09:50:53 PM
Look theForger's Win32 API Programming Tutorial (http://www.winprog.org/tutorial/)
Title: Re: Looking for example code for modal or non-modal pop up dialog
Post by: rp108 on October 08, 2015, 04:07:57 AM
Hi Timo,

Thank-you for reply.

I do have Forger's tutorial.
I have built a number of his examples.
Guess I'll go through it again.

I'm not clear on how to pop a dialog from within another dialog, but I keep studying it.

Thank-you and all the best to you,
Rob

Title: Re: Looking for example code for modal or non-modal pop up dialog
Post by: Jokaste on May 19, 2019, 05:00:51 PM
Take a look at https://www.dropbox.com/s/k7fb15c3f1o4yf8/forgers-win32-tutorial.pdf?dl=0 (https://www.dropbox.com/s/k7fb15c3f1o4yf8/forgers-win32-tutorial.pdf?dl=0)
Page 39 to 42
Take a look Here (https://docs.microsoft.com/fr-fr/windows/desktop/dlgbox/about-dialog-boxes#modeless-dialog-boxes)

Title: Re: Looking for example code for modal or non-modal pop up dialog
Post by: Jokaste on May 24, 2019, 01:05:34 PM
Download source code of PasswordFinder you will try what you want into PasswordFinder.c see routine DlgGeneratePassword or DlgReprise. https://forum.pellesc.de/index.php?topic=7952.0 (https://forum.pellesc.de/index.php?topic=7952.0)
Title: Re: Looking for example code for modal or non-modal pop up dialog
Post by: John Z on November 29, 2019, 12:49:57 PM
Simple example.