!!!!!!!!!show or hide scrollbox/ Menus!!!!!!

This is a discussion on !!!!!!!!!show or hide scrollbox/ Menus!!!!!! within the C++ Programming forums, part of the General Programming Boards category; 1.I am using Borland c++ 5 Builder Enterprise. I would like my program to show or hide a scrollbox when ...

  1. #1
    Unregistered
    Guest

    Unhappy !!!!!!!!!show or hide scrollbox/ Menus!!!!!!

    1.I am using Borland c++ 5 Builder Enterprise. I would like my program to show or hide a scrollbox when i click on a picture.

    2. I want borland to display a menu when i left click a button.

    Please help:

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    9
    1. Use the images event "OnClick" and use something like:

    Form1->VertScrollBar->Visible = !(Form1->VertScrollBar->Visible);

    but make form1 whatever you want to show/hide the scroll bar for

    2. i guess you mean using a popup menu

    use the button's event "OnClick" and put

    TPoint m = Mouse->CursorPos;
    PopupMenu1->Popup(m.x, m.y);

    correct me if I am wrong or if I messed up what you were asking

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to hide output in a console
    By thelimpkid in forum C++ Programming
    Replies: 6
    Last Post: 09-02-2007, 07:50 AM
  2. Hide application from systray
    By Arkanos in forum Windows Programming
    Replies: 1
    Last Post: 01-16-2006, 03:37 PM
  3. how to show the % sign and remove decimals?
    By seal in forum C Programming
    Replies: 5
    Last Post: 08-31-2005, 05:29 PM
  4. confusing SHOW, HIDE, LOAD, UNLOAD, END
    By beely in forum Windows Programming
    Replies: 2
    Last Post: 03-17-2003, 07:21 AM
  5. Hide Cursor
    By Akilla in forum C++ Programming
    Replies: 1
    Last Post: 07-18-2002, 12:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21