Re: Gtk::Bin::set_justify(Left)??
- From: ArbolOne <arbolone gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Gtk::Bin::set_justify(Left)??
- Date: Mon, 08 Nov 2010 12:37:21 -0500
I really don't understand why this should be a problem, it is a simple
mechanism and logical to assume that developer would use this feature.
Anyway, here is the code:
lblIntTxt = Gtk::manage(new Gtk::Label());
lblIntTxt->set_text("int");
lblIntTxt->set_justify(Gtk::JUSTIFY_LEFT);
lblIntTxt->set_alignment(Gtk::ALIGN_LEFT,Gtk::ALIGN_LEFT);
lblIntTxt->property_xalign() = 0.0f;
I am really hoping that someone here would be able to resolve this
problem, because, even though all suggestions have been applied, none,
*not one, has worked :(
Thanks folks and keep up the good work.
On 11/5/2010 11:21 AM, smso graduate hku hk wrote:
try this:
label->property_xalign() = 0.0f; // 0.0f => text is left-aligned, 1.0f =>
right-aligned
Best regards from
so sui ming
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]