Announcement

Collapse
No announcement yet.

How to add a taskbar button?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to add a taskbar button?

    I have been trying to add a button to the taskbar for every MDI
    Window i create in my program (like office 2000 apps). But
    i can't get it to work.
    After investigate I find that there a C++ class called
    "ITaskbarList" that do the job but, Is posible to get
    it to work with PB?
    It have a AddTab and DeleteTab functions.

    Any advice will be apreciated

    Thanks

    Steve


    PD. If any have a trick that do the job without "ITaskbarList" also post it

    ------------------

  • #2
    It's not a C++ class, but part of the Windows Shell interface; looks
    like a COM object, so it may be that you can use JA/COM to deal with
    it. JA/COM is a commercial COM interface handler available from

    http://www.jazzagesoft.com


    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Comment


    • #3
      I think Word creates ordinary top-level windows (no parent) and that's why they are visible in taskbar.


      ------------------
      E-MAIL: [email protected]

      Comment


      • #4
        I have been trying to add a button to the taskbar for every MDI
        Window i create in my program
        If it's MDI, I thought "proper form" was to use a "Window" menu.

        and in this corner, drifting ever so slowly off-topic...

        I despise the way MS-WORD(r) opens a new "whole window" for each document and puts it on the taskbar.

        I am used to "one application with many documents open", not "one application per document."

        Just wondering exactly which Real World Users asked Microsoft for this "feature."

        MCM


        Michael Mattias
        Tal Systems Inc. (retired)
        Racine WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          "Many new and intermediate users find it difficult to learn to use MDI applications."
          -- MSDN, Platform SDK Documentation / User Interface Services / Windows User Interface / Multiple Document Interface.


          ------------------
          Tom Hanlin
          PowerBASIC Staff

          Comment


          • #6
            I also find that normal user's just don't get an MDI environment.

            I'm always having to show them what X to click on when they close
            and document.

            ------------------
            -Greg
            -Greg
            [email protected]
            MCP,MCSA,MCSE,MCSD

            Comment


            • #7
              I also find that normal user's just don't get an MDI environment
              You mean they don't use ctrl+F6 to cycle through the open documents? Or Ctl+F4 to 'close current document?'

              Ever since the first time I used a Windows(r) MDI application - it was Wordperfect(r) for Windows, around 1990-91 - the whole idea of "one program, many documents open" has just seemed soooo natural.

              Ya gotta wonder what the schools are teaching the kids...

              MCM


              Michael Mattias
              Tal Systems Inc. (retired)
              Racine WI USA
              [email protected]
              http://www.talsystems.com

              Comment

              Working...
              X