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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

way to centre SelectDirectory about main form?

Status
Not open for further replies.

CADTenchy

Technical User
Dec 12, 2007
237
GB
Hi,

I've now managed to centre all my pop-ups to my main form, except for a SelectDirectory dialog.
Is there a way to position it that isn't complex (I did find one way, was pretty complex looking extra function).

Or can I call another more easily positioned folder browsing dialog?
 
Was it a labeled as a callback function of some kind? Actually, that's the only way I'm aware of to do it - to move the window through the API. Which actually is simpler than it looks - most of the function you found is probably just math.

There's really no other way I'm aware of.
 
Ok, so now I have implemented the functions in this link:


All is working great, but in the SelectDirectory the callback function is replacing, I specified the starting directory.
I can't see (bit above me) the right place, (if any?) to do this in these functions.

Can it be done pls?


Steve (Delphi 2007 & XP)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top