Results 1 to 3 of 3

Thread: Help!! Dockable toolbar reserving screen space through an API call - how to release?

  1. #1

    Thread Starter
    Addicted Member chicocouk's Avatar
    Join Date
    Sep 2001
    Posts
    207

    Help!! Dockable toolbar reserving screen space through an API call - how to release?

    Sorry if this seems obvious to people, but I'm still quite new to vb
    and don't yet understand API calls properly, so apologies if this
    seems to much of a noddy question.

    I'm putting together a dockable toolbar app, using great code for
    the toolbar which I found here:
    http://www.vbsquare.com/activex/docablebar-demo/

    However, someone has commented (here:
    http://www.vbsquare.com/php-bin/feed...cktopicid=1786 )
    that this code reserves screen space through and API call, and
    then doesn't release it to the system after execution stops.
    Apparently, this is "easily fixed"

    The sixty million dollar question is how?

    If anyone could help me with some code as to how to do this,
    and maybe even explain what that code is doing, i'd be hugely
    grateful. The toolbar itself is great, exactly what i need, but I'm
    a bit worried about using it because of this problem

    (oh, i've tried emailing the author of the code, but i get an
    undeliverable message error, probably because he seems to have
    written the code in '97, so probably doesn't still use the same
    email address)

    Thanks in advance!!

  2. #2
    Member
    Join Date
    Dec 2001
    Location
    London
    Posts
    35

    Try this

    AppBar.Detach

    I noticed my desktop was resized again after calling this. I used it on a a command button to exit app.

    So for example:

    Private Sub Command1_Click()
    AppBar.Detach
    Unload
    End Sub

  3. #3
    Member
    Join Date
    Dec 2001
    Location
    London
    Posts
    35
    Correction:

    Private Sub Command1_Click()
    AppBar.Detach
    End
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width