Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: Victor Friedman
  Where is Victor Friedman?
 Moscow
 Russia
 Victor Friedman
 Tags
Subject: RE: Docking a form
Thread ID: 396016 Message ID: 396081 # Views: 30 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Wednesday, January 22, 2014 7:11:14 PM         
   


> >
> >
> > Hi,
> >
> > Have not read all the messages, but . . .
> > Leave title bar on
> >
Movable = .F.
> > Closable = .F.
> > * --- In form's INIT event place in desired location with :  
> > Thisform.Move(340,20)

> > The form will hang there in the position it was moved to and cannot
> > be moved or closed.
> >
> > Sounds to me like what you are after is not a true docking of a form.
> >
> > Pete "the IceMan", from the Great White North of Canada.
> > www.marathongriffincomputers.com
>
> This is a substitute solution, but it won't work for me. I have another form that is maximized in _SCREEN. So with your solution, it will simply overlap the "pseudo-docked" form. So it needs to be docked, but at the same time undockable, unmovable, and unclosable.
>
> -Vick


Hi Vick,

I think what is bothering me here is what you are after is something like a docked form, but not
really 100% behaving like a true docking. So you get stuck in the middle knowing full well what
you want to have happen visually, but struggling with achieving your end goal!
.. Does that about sum things up?

If your substitute docked form is set to be always on top and your maximized form in _screen is not then
initially when loaded your substitute docked form will appear as it should.

Now what you need is a mechanism that when you do click on your main full sized form that the other
substitute docked form pops to the top. Does that sound like visually what you are after?

If so in the substitute docked form create a form property that can be called that will in fact popup
this substitute docked form to the top of the zOrder and set focus on some object in this form.
By the way a very simple way to pop a form to the top and make it active would be something like:
lcFormName = Thisform.Name 
ACTIVATE WINDOW (lcFormName)


Call this substitute docked form with DO FORM frmName NAME frmName so that you now have an object reference
name to this form. How you could call the form method to pop the form to the top from the main full sized form
and play with a couple of events such as Active, Click event, Mouse events, etc.

in a form method maybe called poptop. If the form is loaded with the Name option and the original loading of the
form was something like :

DO FORM frmSubstituteDocked NAME frmSubstituteDocked


You could from your maximized form issue frmSubstituteDocked.poptop

JUST SOME IDEAS TO PLAY AROUND WITH... NOT SURE IF APPLICABLE FOR YOU?

Pete "the IceMan", from the Great White North of Canada.
www.marathongriffincomputers.com

ENTIRE THREAD

Docking a form Posted by Victor Friedman @ 1/22/2014 10:00:26 AM
RE: Docking a form Posted by Borislav Borissov @ 1/22/2014 10:13:49 AM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 10:17:28 AM
RE: Docking a form Posted by Koen Piller @ 1/22/2014 10:39:10 AM
RE: Docking a form Posted by Koen Piller @ 1/22/2014 10:39:19 AM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 2:56:05 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 2:57:40 PM
RE: Docking a form Posted by Vilhelm-Ion Praisach @ 1/22/2014 11:48:30 AM
RE: Docking a form Posted by Koen Piller @ 1/22/2014 12:32:52 PM
RE: Docking a form Posted by Vilhelm-Ion Praisach @ 1/22/2014 2:07:42 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 3:00:42 PM
RE: Docking a form Posted by Vilhelm-Ion Praisach @ 1/22/2014 3:18:18 PM
RE: Docking a form Posted by Pete Sass @ 1/22/2014 4:15:58 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 4:23:05 PM
RE: Docking a form Posted by Koen Piller @ 1/22/2014 6:27:18 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 6:54:37 PM
RE: Docking a form Posted by David Mustakim @ 1/22/2014 7:21:25 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 8:20:06 PM
RE: Docking a form Posted by David Mustakim @ 1/22/2014 8:52:57 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 9:02:26 PM
RE: Docking a form Posted by Pete Sass @ 1/22/2014 9:45:37 PM
RE: Docking a form Posted by Koen Piller @ 1/22/2014 8:33:04 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 8:34:32 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 8:59:09 PM
RE: Docking a form Posted by David Mustakim @ 1/22/2014 9:05:50 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 9:14:22 PM
RE: Docking a form Posted by Pete Sass @ 1/22/2014 7:11:14 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 8:22:16 PM
RE: Docking a form Posted by Pete Sass @ 1/22/2014 9:29:43 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 9:33:50 PM
RE: Docking a form Posted by Pete Sass @ 1/22/2014 9:42:08 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 9:49:39 PM
RE: Docking a form Posted by David Mustakim @ 1/22/2014 10:03:36 PM
RE: Docking a form Posted by Pete Sass @ 1/22/2014 10:20:13 PM
RE: Docking a form Posted by David Mustakim @ 1/22/2014 11:14:06 PM
RE: Docking a form Posted by Pete Sass @ 1/22/2014 11:43:19 PM
RE: Docking a form Posted by David Mustakim @ 1/22/2014 10:03:38 PM
RE: Docking a form Posted by David Mustakim @ 1/22/2014 10:03:41 PM
RE: Docking a form Posted by Stefan Wuebbe @ 1/22/2014 7:19:20 PM
RE: Docking a form Posted by Victor Friedman @ 1/22/2014 8:26:11 PM