Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tab docking 2 forms?

Status
Not open for further replies.

rkolva

Programmer
Jan 16, 2003
127
US

Hopefully somebody can enlighten me as to what I'm not getting with this. I have two custom forms that are defined as dockable and run in _Screen. I can dock either one to _Screen by iterating the _Screen.Forms collection and then using

DOCK NAME oForm POSITION 1

I seem to not have too much trouble using the DOCK command with the VFP windows but for the life of me I can't get my two windows to tab dock to each other. If I refer to the forms by name VFP tells me they're not Defined but they exist in _Screen.Forms collection and ADOCKSTATE() seems to be able to correctly identify the dock position. I can manually manipulate the dock positioning to get it where I want but not programatically.

Any help is greatly appreciated!

Thanks,

Ralph Kolva
 
Code:
DOCK NAME oForm1 NAME oForm2

Where oForm1 and oForm2 are form objects

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
Thanks Barislav!

That did the trick. Seems so simple when somebody else points the way,

Thanks again

Ralph Kolva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top