DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Matt Wyant Guest

    'Dockable' Forms


    I have a small utility that I have written that would gain much functionality
    by having the ability to be 'Docked' at a side of the desktop. I want to
    create this option much like AOL's Instant Messenger wourk, or like the Microsoft
    Office Shortcut Bar. I can resize and change the state of the form, but I
    don't know how to:
    A) Force the window to remain 'always on top'.
    B) Change the WorkAreaWidth (SysInfo Control) so that maximized windows
    don't overlap my program.
    C) Have my form recognize a 'move' event to automatically dock the form.
    This isn't necessary, but It would be nice.

    Any help would be appreciated.

    Matt Wyant
    MDWyant@SRPnet.com

  2. #2
    mrfelis Guest

    Re: 'Dockable' Forms

    > A) Force the window to remain 'always on top'.
    Look up SetWindowLong in MSDN.

    > C) Have my form recognize a 'move' event to automatically dock the

    form.
    > This isn't necessary, but It would be nice.
    >

    This requires subclassing the window and process the proper message. VBPJ
    has several articles on this. Check DevX.

    --
    ~~~
    C'Ya,
    mrfelis
    mrfelis@yahoo.NOSPAM.com
    just remove the spam
    Matt Wyant <MDWyant@SRPnet.com> wrote in message
    news:3a0c78b3$1@news.devx.com...
    >





  3. #3
    Larry Rebich Guest

    Re: 'Dockable' Forms

    Matt,

    Some months ago I wrote a tip of the month that I call
    'LocationLocationLocation'. Link to http://www.buygold.net/tips.html then
    look for the September 1998 tip of the month. A sample program is provided.
    Some of the functions will help you determine the 'desktop client area'.

    Cheers,
    Larry Rebich

    More tips link to:
    http://www.buygold.net/tips.html

    Please:
    No personal e-mail questions :-)


    "Matt Wyant" <MDWyant@SRPnet.com> wrote in message
    news:3a0c78b3$1@news.devx.com...
    >
    > I have a small utility that I have written that would gain much

    functionality
    > by having the ability to be 'Docked' at a side of the desktop. I want to
    > create this option much like AOL's Instant Messenger wourk, or like the

    Microsoft
    > Office Shortcut Bar. I can resize and change the state of the form, but I
    > don't know how to:
    > A) Force the window to remain 'always on top'.
    > B) Change the WorkAreaWidth (SysInfo Control) so that maximized

    windows
    > don't overlap my program.
    > C) Have my form recognize a 'move' event to automatically dock the

    form.
    > This isn't necessary, but It would be nice.
    >
    > Any help would be appreciated.
    >
    > Matt Wyant
    > MDWyant@SRPnet.com




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links