|
#include "StdAfx.h"
#include "rolluppage1.h"
#include "Form1.h"
System::Void RollupPage1::control_Click(System::Object^ sender, System::EventArgs^ e)
{
// some added visual cues of interaction
static bool pictureOn = false;
if(sender == pictureBox1)
{
pictureOn = !pictureOn;
if(pictureOn)
pictureBox1->BackColor = Color::Red;
else
pictureBox1->BackColor = Color::White;
}
UpdateClientModelData(this->Name,sender->ToString());
}
System::Void RollupPage1::control_MouseLeave(System::Object^ sender, System::EventArgs^ e)
{
UpdateClientModelData(nullptr,nullptr);
}
void RollupPage1::UpdateClientModelData(String^ pageName, String^ senderName)
{
FormsRollupControl::Form1^ ourform = nullptr;
if(clientForm)
ourform = (FormsRollupControl::Form1^)clientForm;
if(ourform)
{
ourform->UpdateInfo(pageName,senderName);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.