// // CPT operator / SondeerGame // This source file is (c) by Deltares. // - October 2014 // /// Also: jln - 27-08-2008 extended with a value property. class GeoCheckBox extends moCheckBox; #exec OBJ LOAD FILE=GeoGUIContent.utx var string value; function InitComponent(GUIController MyController, GUIComponent MyOwner) { Super.Initcomponent(MyController, MyOwner); MyCheckBox.Style = Controller.GetStyle("GeoCheckBox"); MyCheckBox.Graphic = Material'GeoGUIContent.Icons.checkmark_selected'; } function string getValue() { return self.value; } function string setValue(string val) { self.value = val; return self.value; } defaultproperties { WinWidth=0.04 WinHeight=0.04 ComponentJustification=TXTA_Left bHeightFromComponent=false CaptionWidth=0.0 RenderWeight=1 bSquare=true }