Scrolling menus


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Scrolling menus

  1. #1
    Jan Verbeke Guest

    Scrolling menus


    Hi there,

    I have an application with popup-menus which is filled at runtime.
    The amount of items is exceeding the maximum. They do not fit on the screen
    anymore.
    I would like to have the same functionality as the 'Favorites' popup menu
    in internet explorer, which shows scrolling.

    Can somebody tell me how to do it or provide me with some code to do the
    job ?

    Jan.

  2. #2
    Boris Karadjov Guest

    Re: Scrolling menus

    In my opinion, this is not an easy task.

    A pager common control can be used to scroll the contents of its child
    window. Pager itself cannot be a popup window and the documented menu API
    does not allow to obtain the window handle of a menu.

    Therefore, you will need three windows: a pop-up window hosting a pager
    control and a child window displaying menu items inside the pager. The
    pop-up window and the child window will have to be programmed to behave like
    a pop-up menu without much help from the API. I can think only of
    DrawFrameControl(..., DFC_POPUPMENU, ...) function can be used to draw a
    single menu item (without text) and DrawState(..., DST_PREFIXTEXT | ...) can
    be used to draw menu item text.
    --
    Boris Karadjov
    Brainbench MVP for Visual C++
    http://www.brainbench.com


    "Jan Verbeke" <Jan.Verbeke@philips.com> wrote in message
    news:3ba1a94a$1@news.devx.com...
    >
    > Hi there,
    >
    > I have an application with popup-menus which is filled at runtime.
    > The amount of items is exceeding the maximum. They do not fit on the

    screen
    > anymore.
    > I would like to have the same functionality as the 'Favorites' popup menu
    > in internet explorer, which shows scrolling.
    >
    > Can somebody tell me how to do it or provide me with some code to do the
    > job ?
    >
    > Jan.




  3. #3
    www.exontrol.com Guest

    Re: Scrolling menus


    "Jan Verbeke" <Jan.Verbeke@philips.com> wrote:
    >
    >Hi there,
    >
    >I have an application with popup-menus which is filled at runtime.
    >The amount of items is exceeding the maximum. They do not fit on the screen
    >anymore.
    >I would like to have the same functionality as the 'Favorites' popup menu
    >in internet explorer, which shows scrolling.
    >
    >Can somebody tell me how to do it or provide me with some code to do the
    >job ?
    >
    >Jan.

    http://www.exontrol.com/sg.jsp?conte...ts/expopupmenu
    Mike
    www.exontrol.com

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center