//-----------------------------------------------------------------------------
// wx.NET/Utils - WxButtonObject.cs
//
// wx.NET "WxButtonObject".
//
// Written by Alexander Olk (xenomorph2@onlinehome.de)
// (C) 2004 Alexander Olk
// Licensed under the wxWidgets license, see LICENSE.txt for details.
//
// $Id: WxButtonObject.cs,v 1.5 2004/06/21 13:40:03 olkalex Exp $
//-----------------------------------------------------------------------------
using System;
using System.Xml;
using System.Collections;
using System.Collections.Specialized;
using System.Text;
namespace wx.ToWxNet{
public class WxButtonObject : WxObjectBase
{
public override void GenerateCSharpCode()
{
StringBuilder ctorline = new StringBuilder();
ctorline.Append( "\t\t\t" + name + " = new " + classname + "( " + GetParent( parent ) + ", " );
ctorline.Append( id.Length > 0 ? "(int)Cmd." + id : "-1" );
ctorline.Append( ", " + "\"" + label + "\"" );
ctorline.Append( ", wxDefaultPosition, wxDefaultSize, " );
ctorline.Append( CorrectStyle( "0" ) );
ctorline.Append( " );" );
ctorlines.Add( ctorline.ToString() );
AddProperties( propertylines );
}
//---------------------------------------------------------------------
public override void GenerateBasicCode()
{
StringBuilder ctorline = new StringBuilder();
ctorline.Append( "\t\t\t" + name + " = New " + classname + "( " + GetParent( parent ) + ", " );
ctorline.Append( id.Length > 0 ? "Cmd." + id : "-1" );
ctorline.Append( ", " + "\"" + label + "\"" );
ctorline.Append( ", wxDefaultPosition, wxDefaultSize, " );
ctorline.Append( CorrectStyle( "0" ) );
ctorline.Append( " )" );
ctorlines.Add( ctorline.ToString() );
AddProperties( propertylines );
}
}
}
|