Thread: !!!!!!!!!show or hide scrollbox/ Menus!!!!!!

  1. #1

    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
    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, 04: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, 08:21 AM
  5. Hide Cursor
    By Akilla in forum C++ Programming
    Replies: 1
    Last Post: 07-18-2002, 12:50 PM