MDI without the form? 
Author Message
 MDI without the form?

Anyway I can make an MDI parent without the form, ie the Visual Basic
4.0 button bar the shrinks all windows when it itself is minimized?

Thanks a bunch,



Tue, 01 Sep 1998 03:00:00 GMT  
 MDI without the form?
hello,

when i run my program unfer Windows 3.1 and VB Pro. 3.0, sometimes
i got the error "Out of Stack". can someone tell me what might be
the problem?

also, i'm still having the problem when i install my program on
another machine under Windows 3.1 and 16-bit VB Pro 4.0. when i
load the configuration file for my frame grabber using a function
in vendor's DLL load_file("d:\dir1\config.cnf") it gives me "Bad
DLL calling convention". the program works with VB 3.0, and the DLL
is from the vendor so that i can not check/modify.

i appreciate any help.

-jun li




Tue, 01 Sep 1998 03:00:00 GMT  
 MDI without the form?

Quote:
>Anyway I can make an MDI parent without the form, ie the Visual Basic
>4.0 button bar the shrinks all windows when it itself is minimized?

Don't use an MDI form, use a normal form. When the user hits minimize
(check the .WindowState in _Resize), you loop the Forms collection and
minize all other forms.


--
Newbiehood is not a period of time, it's a way of life.

http://www.sn.no/~balchen/
ftp://ftp.sn.no/user/balchen/



Wed, 02 Sep 1998 03:00:00 GMT  
 MDI without the form?

Quote:
>when i run my program unfer Windows 3.1 and VB Pro. 3.0, sometimes
>i got the error "Out of Stack". can someone tell me what might be
>the problem?

Maybe a sub is calling itself, or event A triggers event B, which in turn
triggers event A, which in turn triggers event B... get the point?

Quote:
>also, i'm still having the problem when i install my program on
>another machine under Windows 3.1 and 16-bit VB Pro 4.0. when i
>load the configuration file for my frame grabber using a function
>in vendor's DLL load_file("d:\dir1\config.cnf") it gives me "Bad
>DLL calling convention". the program works with VB 3.0, and the DLL
>is from the vendor so that i can not check/modify.

Does it work at your place?


--
Newbiehood is not a period of time, it's a way of life.

http://www.sn.no/~balchen/
ftp://ftp.sn.no/user/balchen/



Wed, 02 Sep 1998 03:00:00 GMT  
 MDI without the form?

Quote:

> Anyway I can make an MDI parent without the form, ie the Visual Basic
> 4.0 button bar the shrinks all windows when it itself is minimized?

> Thanks a bunch,

erm, the idea of a MDI form so that you can have several documents
of the same type open at once.  Since the VB environment only allows
one program to be created at once, (per running instance in VB4),
i would assume that the VB 'button bar', by which I assume you mean
the menu bar, is simple a normal form, with no client area.

David Maddison
England




Fri, 04 Sep 1998 03:00:00 GMT  
 MDI without the form?

|Anyway I can make an MDI parent without the form, ie the Visual Basic
|4.0 button bar the shrinks all windows when it itself is minimized?

What do you mean by "all windows"?

If you mean all of *your app's* windows, do this:

Choose one window as the master (i.e. the button bar), and make all other
windows in the app a child (NOT a midichild -- this has nothing to do with
multiple-document interfaces) of the master window by putting the following
in a bas module.

(NOTE: the declaration MUST be all on one line)

--------------------------------------------------
Global Const SWW_HPARENT = -8

Declare Sub SetWindowWord Lib "User" (ByVal hWnd%,
                                      ByVal nCmd%,
                                      ByVal nVal%)
--------------------------------------------------

Then put the following in the load event of each child form.

---------------------------------------------------------------------
Call SetWindowWord(Me.hWnd, SWW_HPARENT, NameOfTheMasterWindow.hWnd)
---------------------------------------------------------------------

You MUST MUST MUST MUST unload each child form in the unload event of the
master form.

David

--

____D__a__v__i__d_____B__e__r__g__a__r__t___________________________________



Sun, 06 Sep 1998 03:00:00 GMT  
 
 [ 10 post ] 

 Relevant Pages 

1. MDI interface without a MDI form?

2. Q: Form activate Fires On Non Child MDI Forms But Only Once On Child Mdi Forms

3. Moving Menus from one form to another (Without MDI)

4. Parent MDI form without Min and Max Buttons?

5. frmBrowser possible without MDI form??

6. How to create the calender in MDI form without using vbBuilt in Calender Function

7. MDI form without title bar, control box, max/min buttons

8. Modifying object in MDI Parent form from MDI Child form

9. Non-MDI form to MDI form

10. Make a reference to a MDI form with a reference of a MDI child form

11. MDI-Child form and positon on MDI-form

12. Developing OLE MDI Child forms displayed on Control MDI Form

 

 
Powered by phpBB® Forum Software