Skip to content

Instantly share code, notes, and snippets.

@DinisCruz
Created June 18, 2012 12:39
Show Gist options
  • Select an option

  • Save DinisCruz/2948192 to your computer and use it in GitHub Desktop.

Select an option

Save DinisCruz/2948192 to your computer and use it in GitHub Desktop.
O2 Script to test GUI Height issue
var t = "test".popupWindow(400,40);
return "{0} - {1}".info(t.height(), t.width());
//return "{0} - {1} which is a {2}".info(t.Height, t.Width, t.GetType().FullName);
var t = "test".popupWindow(400,40);
//t.closeForm_InNSeconds(4);
var form = t.parentForm();
form.invokeOnThread(
()=>{
form.ClientSize = new Size(400,40);
});
//panel.add_PropertyGrid().show(t.parentForm());
return "Control: {0} - {1} \nForm: {2} - {3}".info(t.height(), t.width(), form.height(), form.width());
public static Form clientSize(this Form form, int width, int height)
{
return (Form)form.invokeOnThread(() =>
{
form.ClientSize = new Size(width, height);
return form;
});
}
var t = "test".popupWindow(400,40);
t.parentForm()
.wait(1000)
.clientSize(400,400)
.wait(1000)
.clientSize(500,100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment