Discussion:
_app.WinFrame vs Parent Form
(too old to reply)
Rod Caldwell
2008-11-14 05:03:55 UTC
Permalink
I have a MDI app that starts with the _app.FrameWin.

I was wondering it it was possible to replace the _app.FrameWin with a Parent Form, similar to the concept in other widndows languages.

If so - could I have an example of the Code?

Cheers
Rod
Geoff Wass [dBVIPS]
2008-11-14 05:56:41 UTC
Permalink
Post by Rod Caldwell
I have a MDI app that starts with the _app.FrameWin.
I was wondering it it was possible to replace the _app.FrameWin with a Parent Form, similar to the concept in other widndows languages.
If so - could I have an example of the Code?
Cheers
Rod
Rod,

I am not quite sure about other languages. There is appframewin.cc in
the dUFLP that may interest you a bit. There is also desktopImage.zip
which might be more interesting.
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada

.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
Ken Mayer [dBVIPS]
2008-11-14 05:19:51 UTC
Permalink
Post by Rod Caldwell
I have a MDI app that starts with the _app.FrameWin.
I was wondering it it was possible to replace the _app.FrameWin with a Parent Form, similar to the concept in other widndows languages.
If so - could I have an example of the Code?
Take a look at the use of SHELL(). This controls the use of the
Framewindow ... I am sure there are several examples around, the basics
are discussed in my book, as well.

Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
http://www.goldenstag.net/dbase
Glenn Johansen
2008-11-14 15:28:28 UTC
Permalink
subforms are children of any form, take a look at that in the OLH.

-glenn
Post by Rod Caldwell
I have a MDI app that starts with the _app.FrameWin.
I was wondering it it was possible to replace the _app.FrameWin with a
Parent Form, similar to the concept in other widndows languages.
If so - could I have an example of the Code?
Cheers
Rod
David Stone
2008-11-14 21:35:24 UTC
Permalink
Post by Rod Caldwell
I have a MDI app that starts with the _app.FrameWin.
I was wondering it it was possible to replace the _app.FrameWin with a Parent Form, similar to the concept in other widndows languages.
Hi Rod,

I consider _app.FrameWin to be a parent form, basically. It's how all
MDI apps work, no? Perhaps you're thinking of an SDI app format instead?

There's an article in the dBulletin about how to mimic an MDI app using
only SDI forms and the API setParent() to have "child" forms open within
an SDI form.

David
David Stone
2008-11-14 21:37:36 UTC
Permalink
Robert Bravery's article on use of SetParent():

http://www.dbase.com/KnowledgeBase/dbulletin/bu04_a.htm
Marty Kay
2008-11-21 17:50:21 UTC
Permalink
Post by Rod Caldwell
I have a MDI app that starts with the _app.FrameWin.
I was wondering it it was possible to replace the _app.FrameWin with a
Parent Form, similar to the concept in other widndows languages.
If so - could I have an example of the Code?
See the form's class's hWndParent property.
This allows you to parent an SDI form to another SDI form of your choosing.

From the dBASE Plus online help
=====================================================
To open a main non-mdi form that has a Window's taskbar button;

f = new form()
f.mdi = false
f.open()

To open a child non-mdi form that does not have a Window's taskbar button;

c = new form()
c.mdi = false
c.hWndParent = f.hWnd
c.showTaskBarButton = false
c.open() // or c.readModal()

- Marty -

Martin Kay
dataBased Intelligence, Inc.

Loading...