Re: Docking Misery !! Please Help !!



"Justin" <j.a.dorus@xxxxxxxxx> wrote

> I have 2 forms, a 'main' and a 'support'. They function completely
> seperately. What I'm looking to do is add a feature so that the user
> can dock the 'support' form within the 'main' form.

1. Add a method e.g. SetPosition (aTop, aLeft, aWidth, aHeight:
integer) to the public definitions section of your support form and
write a suitable implementation;. Use an impossible value (eg
IgnoreVal = -MaxInt) that your method will ignore (e.g. if aTop <>
IgnoreVal then Top := aTop;)

2. When you create your support form, make sure that you keep set a
reference var in your main form.

e.g.from the main form
SupportForm := tSupportForm.Create (Application.handle)

Or simply autocreate the support form.

3. Then you can dock your form from within the main form

e.g. (Watch the wrap)

SupportForm.SetPosition (0, 0, IgnoreVal, IgnoreVal); - docks at
top-left.
SupportForm.SetPosition (0, 0, IgnoreVal, Height); - docks at left
side.
SupportForm.SetPosition (Width-SupportForm.Width,
Height-SupportForm.Height, IgnoreVal, IgnoreVal); - docks at
bottom-right.

--
Henry Bartlett
Delphi Links Page:
( http://www.hotkey.net.au/~hambar/habit/delflink.htm )


.



Relevant Pages

  • Re: reflect changes in data bound control when underlying data table changes
    ... Lastly, I want to find out a way in which if a dock number say 5 doesn't exist anywhere in the route table, update the lane table and set the dock to 0 for which the value was 5. ... Thanks for using Microsoft Newsgroup Support Service, my name is Ji Zhou and I will be working on this issue with you. ... this table's data is filled from the route table by using the select statement "select distinct dock from route order by dock". ... The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: cdrom support with thinkpad x6 ultrabay
    ... extra usb ports, seems to pick up the ethernet port, but it fails to ... support in libata, but I'm not exactly sure what's needed. ... you either get the dock optical if you boot the machine ... I tried taking the acpi dock patch seperately out of the mm patchset by ...
    (Linux-Kernel)
  • Re: I just got done ordering a..............
    ... the boats of others, were safe and properly secured during the flooding. ... They welded a metal support pole with handle where the finger dock meets the ... seawall at the request of my wife as she is unsteady on her feet due to a ...
    (rec.boats)
  • Re: Dock building
    ... one will be supported by 15 gallon plastic drums. ... I use an old pontoon platform for my dock but I'm interested in the details ... need to put in a permanent short pier at the edge of the bank to support ... the pipes right out of the ground and bent everything to hell. ...
    (rec.boats.building)
  • Re: B-Tree Index Usage
    ... I asked for feedback on the need for a re-index feature that would make ... support an enhancement request that allows this sort of thing to be ... Support translates directly to something that should be ... and no one else driving this popular model truck ...
    (comp.databases.pick)