Here is my code but it doesn't work

protected virtual void onBtnLeftClicked (object sender, System.EventArgs e)
        {
                //label1.Justify = new Justification();
                label1.Justify = Gtk.Justification.Left;
                //label1.Text = "mono  Linux";
                Console.WriteLine("Left");
        }

        protected virtual void onBtnCntrClicked (object sender, 
System.EventArgs e)
        {
                label1.Justify  = Justification.Center;
                //label1.SetAlignment(1f, 0.5f);
                //label1.Justify = ((Gtk.Justification)(2));
                Console.WriteLine("Center");
        }

        protected virtual void onBtnRightClicked (object sender, 
System.EventArgs e)
        {
                label1.Justify = Justification.Right;
                Console.WriteLine("Right");
        }

On Thu, Sep 4, 2008 at 1:52 AM, Christian Hoff <[EMAIL PROTECTED]> wrote:
> If you want to align the label's text, try label.SetAlignment (1f, 0.5f) to
> make the text aligned to the middle right.
>>
>>  Hi,
>> can someone please tell me what's wrong with this code.
>>
>> protected virtual void onBtnRightClicked (object sender, System.EventArgs
>> e)
>>        {
>>                label1.Justify = Justification.Right;
>>        }
>>
>> i have three buttons  Left Justification, Center and Right and a label
>> widget with text that i want to move around.
>> _______________________________________________
>> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>>
>>
>
>
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to