</HorizontalStack>
<HorizontalStack Height="-1" Width="{../../../WidthPolicy}" Margin="3">
<GraphicObject Height="5"/>
- <Button Caption="Ok" MouseClick="onOkButtonClick"/>
- <Button Caption="Cancel" MouseClick="onCancelButtonClick"/>
+ <Button Caption="Ok" MouseClick="../../../../onOkButtonClick"/>
+ <Button Caption="Cancel" MouseClick="../../../../onCancelButtonClick"/>
</HorizontalStack>
</VerticalStack>
</Border>
int frameCpt = 0;
int idx = 0;
string[] testFiles = {
+ "testMsgBox.goml",
+ "testCombobox.goml",
+ "testExpandable.goml",
"test_Listbox.goml",
"6.crow",
"testGroupBox.goml",
"5.crow",
"testCheckbox.goml",
"testTabView.crow",
- "testExpandable.goml",
"0.crow",
"testImage.crow",
"testOutOfClipUpdate.crow",
"clip2.crow",
"clip0.crow",
"clip1.crow",
- "testCombobox.goml",
"testPopper.goml",
"testTextBox.crow",
"testColorList.crow",
// "testRadioButton2.goml",
"testContainer.goml",
"testRadioButton.goml",
- "testMsgBox.goml",
+
// "testMeter.goml",
};
}
void OnClear (object sender, MouseButtonEventArgs e) => TestList = null;
- void OnLoadList (object sender, MouseButtonEventArgs e) => TestList = Color.ColorDic.ToList();
+ void OnLoadList (object sender, MouseButtonEventArgs e) {
+ TestList = Color.ColorDic.ToList();
+ }
protected override void OnLoad (EventArgs e)
{
GraphicObject obj = LoadInterface("Interfaces/" + testFiles[idx]);
obj.DataSource = this;
-
- }
+ }
protected override void OnUpdateFrame (FrameEventArgs e)
{
//if (frameCpt % 8 == 0)
win.Run (30.0);
}
}
+ void onMsgBoxOk(object sender, EventArgs e){
+ Debug.WriteLine ("OK");
+ }
+ void onMsgBoxCancel(object sender, EventArgs e)
+ {
+ Debug.WriteLine ("cancel");
+ }
}
}
\ No newline at end of file
<?xml version="1.0"?>
-<MessageBox Width="200" Height="-1"/>
\ No newline at end of file
+<MessageBox Title="message" Message="this is a message box"
+ Ok="onMsgBoxOk"
+ Cancel="onMsgBoxCancel"/>
\ No newline at end of file