| | |
toolTip1 for textBox
![]() |
•
•
Join Date: Mar 2008
Posts: 163
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
| Thread Tools | Search this Thread |
anyfile api array based binary bitmap c++ c/c++ char class classes code coding compile console conversion count delete deploy desktop developer directshow dll download draw dynamic dynamiccharacterarray email encryption error file forms fstream function functions game gdi+ givemetehcodez gnu graph gui homeworkhelp homeworkhelper http iamthwee ibm ifstream input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node number numbertoword output packing parameter pointer problem program programming project python random read recursion reference rpg string strings temperature template test text text-file tree url variable vector video visualc++ visualizationtoolkit win32 windows winsock word wordfrequency wxwidgets






