Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Tk/Win32 "Dockable Windows"

by boblawblah (Scribe)
on Feb 11, 2008 at 21:49 UTC ( [id://667461]=perlquestion: print w/replies, xml ) Need Help??

boblawblah has asked for the wisdom of the Perl Monks concerning the following question:

I want to create a window that 'Docks' to one side of the users desktop.

The window should always be visible, and not occupy the same space as other windows. IE, if the window were docked to the top of the screen, and you maximize another window, the top of the maximized window would be adjacent to the bottom of the docked window. (AIM has this behavior, docks to the side, as well as custom toolbars on windows, which is what i want to simulate)

Any input here would be of great help, and greatly appreciated. Thank you fellow monks!

Also, The code need no be platform independent as the program will only be run on Win32 boxes.

Replies are listed 'Best First'.
Re: Tk/Win32 "Dockable Windows"
by Corion (Patriarch) on Feb 11, 2008 at 22:14 UTC

    The search terms are msdn application toolbar. Basically, you will have to call some Windows API to make your mainwindow into an Desktop Application Toolbar. Using Application Desktop Toolbars has a discussion of the whole thing, you will have to adapt the API calls to Perl yourself - I recommend Win32::API for that, if there are no provisions made in Tk (or some other Win32 module already.

      Great, thank you. This is exactly what I needed.
        Hi,

        Can somebody provide perl code example?
Re: Tk/Win32 "Dockable Windows"
by thundergnat (Deacon) on Feb 12, 2008 at 18:35 UTC

    You may want to check out Tk::ToolBar. Depending on what you are trying to do, it may already be enough. If not, browsing the source might provide some useful hints on how to accomplish your objective.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://667461]
Approved by Joost
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-23 20:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found