Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mouse over events in BCB5

Status
Not open for further replies.

shilpashetty27

Technical User
Apr 12, 2007
32
CA
Hi all,

I'm trying to create 'mouse over events' that will pop-up a 'help' menu describing the function of the control that the mouse is pointing to on my form but not sure how i can go about it. Can anyone please give me some direction/ideas?

Thanks in advance for the help!

cheers,
Shilpa
 
Are you looking for more than the component's Hint? The following is from BCB's help.
Code:
void __fastcall TForm1::FormCreate(TObject *Sender)

{
  Edit1->Hint = "Enter your name";
  Edit1->ShowHint = true;

  char string[10];

  char index[3];

  for(int i = 1; i <= 10; i++)

  {
    strcpy(string, "Item");
    itoa(i, index, 10);
    strcat(string, index);
    ListBox1->Items->Add(string);
  }
  ListBox1->Hint = "Select an item";
  ListBox1->ShowHint = true;
  Application->ShowHint = true;
}


James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top