[MonoDevelop] Monodevelop Stetic Changing Ref Types
steve.wood at inixsys.com
Tue Oct 11 10:56:16 EDT 2011
I looked through the forums and can't find something similar so for a first
I created a widget based on Gtk.ComboBox
public partial class DBCombo : Gtk.ComboBox
I changed the type in stetic from bin to Gtk.ComboBox ( to stop errors when
dragging from toolbar )
<widget class="Gtk.ComboBox" id="AuroraPOS.DBCombo" design-size="300 27">
This works fine BUT, when making changes on windows/dialogs with the DBCombo
widget stetic (or whatever gens the code for screen and controls ) changes
the type to:
this.cboMethod = global::Gtk.ComboBox.NewText ();
I manually need to change it back in the generated code to:
this.cboMethod = new DBCombo();
and all compiles fine. Until the next change and recompile.
Is this a bug in stetic/code gen or have I missed something. I don't want to
inherit Gtk.Bin in the custom widget as my code simply extends combo and I
don't want to wrap up the combo in my widget.
View this message in context: http://mono.1490590.n4.nabble.com/Monodevelop-Stetic-Changing-Ref-Types-tp3894699p3894699.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
More information about the Monodevelop-list