| | |
toolTip1 for textBox
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2008
Posts: 173
Reputation:
Solved Threads: 1
I want to Show "ToolTips" when radioButton4 is Checked and when you Hover the mouse over textBox2.
This works as expected. Now when I Check the radioButton5 wich makes the radioButton4 UnChecked I dont want the ToolTips to be seen when Hover the mouse over textBox2.
I am trying to make that rule with the code below but the ToolTips is shown anyway. Have I missed something out because I do make the check:
if( radioButton4->Checked ) etc.. ?
This works as expected. Now when I Check the radioButton5 wich makes the radioButton4 UnChecked I dont want the ToolTips to be seen when Hover the mouse over textBox2.
I am trying to make that rule with the code below but the ToolTips is shown anyway. Have I missed something out because I do make the check:
if( radioButton4->Checked ) etc.. ?
private: System::Void textBox2_MouseHover(System::Object^ sender, System::EventArgs^ e)
{
if( radioButton4->Checked ) //Also tried: radioButton4->Checked == true
{
toolTip1->SetToolTip( this->textBox2, "Hello" );
}
} Last edited by Lukezzz; Dec 30th, 2008 at 12:59 pm.
try
c++ Syntax (Toggle Plain Text)
//---------------------------------------------------------------------------- //... private: System::Int32 m_x, m_y; //... //---------------------------------------------------------------------------- ON FORM1 MOUSE MOVE { m_x = e->X; m_y = e->Y; } //---------------------------------------------------------------------------- ON TEXTBOX1 MOUSE LEAVE { toolTip1->Hide(this); } //---------------------------------------------------------------------------- private: System::Void textBox2_MouseHover(System::Object^ sender, System::EventArgs^ e) { if( radioButton4->Checked ) { toolTip1->Show("Hello",this,m_x,m_y); } } //----------------------------------------------------------------------------
Last edited by cikara21; Dec 30th, 2008 at 6:00 pm.
![]() |
Similar Threads
Other Threads in the C++ Forum
- Previous Thread: need help with prime
- Next Thread: Compile filesize
Views: 315 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines linker list loop looping loops map math matrix memory newbie news number output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






