Dockable main Program
-
I Want to write a program that acts like Office Tool Bar. I need to be able set the main Form to be dockable and make sure it always stays on top (adjust the main screens client area) Possible? Any suggestions on a starting point for camasmartin hobby programmer
-
I Want to write a program that acts like Office Tool Bar. I need to be able set the main Form to be dockable and make sure it always stays on top (adjust the main screens client area) Possible? Any suggestions on a starting point for camasmartin hobby programmer
depends on a) whether it should be a dll or some suchlike thing so you can import it into other things, b) how well you want it written. do a search in these forums for things of the same subject, there was someone who took the time to write one before and explained it quite. alas i cannot remember their name. i ended up writing my own so it could be called as a function into my stuff, and i'd know what went into it. alas i haven't yet worked out how to successfully put it into a function! :) you'll need to do something like callling your code into child window, and performing some calculations to see where it is on the screen, where the parent is on the screen; and so how far they are from ech other. then, make variables like how much you want the margin to be etc. i found when you pushed it up near the edge it would flicker as it was constantly repositioning, but it was suited to that task. you're probably better looking for someone elses also, as mine only copes with parent and child mdi forms, and as yet i would have to copy and paste the code. :o also, mine wouldn't snap child forms. but do post how you get on. ------------------------------------------------------- ithium is the best. 'Science without religion is lame, religion without science is blind.' --Albert Einstein 'The pioneers of a warless world are the youth who refuse military service.' --Albert Einstein