🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #5

Re: Modeless Dialogs using OWL and Borland C++ 3.1

#5
From: Jill Patterson
Date: Wed, 28 Oct 1992 06:19
36 lines
1678 bytes
cclark@trentu.ca (J. Chris Clark) writes:


>I'm beginning to play with BC 3.1 and OWL and I haven't been able to get a
>modeless dialog to work properly.  I followed the examples, using:

>GetApplication->MakeWindow();
Ah yes, this on had me for a little while, what you need to do is make the
window be visible, because by default, modeless dialogs are not visible.

you can do this by settin the style bits to Visible, in the Res Wrkshp or
bye saying something like the following in your code.

PTAppDialog pDialog
pDialog = new TAppDialog(this, "AppDialog");
GetApplication()->MakeWindow(pDialog);
ShowWindow(pDialog->HWindow, SW_SHOW);

or maybe even

pDialog->Show(SW_SHOW);

OK!

bytor@milton.u.washington.edu

>but nothing appeared on the screen.  I used the WinSight program and something
>DOES get created, but it isn't being displayed.
>Anyone have any idea what I've goofed up?  I created the .rc file using the
>Resource Workshop.  I've looked in all the docs that I have for OWL (which,
>unfortunately isn't much) and I can't find anything which helps.

>Thanks,
>Chris C.

>P.S.  Modal dialogs I can get to work fine...
Technical Details
Message-ID: <bytor.720253148@milton>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!rpi!usenet.coe.montana.edu!news.u.washington.edu!milton!bytor
References: <26OCT199211384377@trentu.ca>

Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!rpi!usenet.coe.montana.edu!news.u.washington.edu!milton!bytor
From: bytor@milton.u.washington.edu (Jill Patterson)
Subject: Re: Modeless Dialogs using OWL and Borland C++ 3.1
Message-ID: <bytor.720253148@milton>
Sender: news@u.washington.edu (USENET News System)
Organization: University of Washington
References: <26OCT199211384377@trentu.ca>
Date: Wed, 28 Oct 1992 06:19:08 GMT
Lines: 36