[Gtk-sharp-list] Fwd: Re: Equivalent to Windows.Forms DateTimePicker
Natalia Portillo
claunia at claunia.com
Sun Sep 5 15:56:26 EDT 2010
Hi,
El 05/09/2010, a las 20:20, Jacek Rużyczka escribió:
> Am Sonntag 05 September 2010 14:06:26 schrieben Sie:
>> Yes I do that, exactly as following:
>>
>> public partial class frmDialog : Gtk.Dialog
>> {
>> HDateTime dtpDateTime; // The HollyWidgets date time picker
>>
>> public frmDialog()
>> {
>> this.Build();
>> this.dtpDateTime = new HDateTime();
>> this.vbox12.Add(dtpDateTime); // vbox12 is a VBox created by MonoDevelop
>> designer that contains two slices, one with a HBox inside and the other
>> left void }
>> }
>>
>> Then I invoke it as:
>>
>> frmDialog _frmDialog = new frmDialog();
>> _frmDialog.Run();
>>
>> But the vbox12 stays the same as in the designer, only the HBox inside the
>> other slice void.
>>
>> Am I doing anything wrong here?
>>
> Invoke this.vbox12.ShowAll() after adding your widget. Sometimes this helps.
Then the thing gets worse with dialog never showing and the following on console:
Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (widget)' failed.
More information about the Gtk-sharp-list
mailing list