Creating A toolwindow.

Hey there,

I have created a map editor for a platform game in C# Express, and have all my various tools and palettes on forms with the Toolwindow border. My problem is as the different windows are used, the form focus follows them around. Could anybody point me in the right direction for creating an environment like photoshop 7, where all the toolwindows have focus if the main window does. Would be much appreciated

Thanks, Scott Llewelyn



Answer this question

Creating A toolwindow.

  • NaveenS

    Hi,

    FYI: If you think that your post is answered, then click on "Mark as Answer" so that members of this forum will know that your post is answered.

    Thank you,
    Bhanu.



  • graye

    Hi!

    Perhabs you will find useful this project on GDN site http://workspaces.gotdotnet.com/mapeditor

    It shows how to embed own tool windows in tool strips (in this sample it embed TrackBar into status strip) - you can use this technique to create own tool strips with own controls set.


  • Matt Dunn

    I'm not totally sure how Photoshop 7 handles focus, but will offer two shots in the dark. First, check out Form.Owner (http://msdn2.microsoft.com/en-us/library/decz3b5c(vs.80).aspx). Second, check out Paint.NET as a place to borrow ideas (http://www.eecs.wsu.edu/paint.net/download.html).

    -John



  • FlamTaps2

    Unfortunatly my internet connection is too slow to download the source for paint.net (I get about 21 Kbps on my dialup !!).
    But I will use that as a last resort(overnight download). The owner property controls the minimizing etc of the form, but they still retain their individual focus. I need all the windows to keep their focused property as true, and not change to false, I think ;)


  • Creating A toolwindow.