Re: Gtk::Bin::set_justify(Left)??
- From: Robert Pearce <rob bdt-home demon co uk>
- To: gtkmm-list gnome org
- Subject: Re: Gtk::Bin::set_justify(Left)??
- Date: Mon, 8 Nov 2010 19:32:06 +0000
Hi ArbolOne,
On Mon, 08 Nov 2010 12:37:21 -0500 you wrote:
> 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;
OK, so you seem to have fairly comprehensively left-aligned that label.
Silly question - are you sure it's not something else that's making it
wrong? How is it packaged? Is it in a container that may pad around it?
For instance, if it's in a table, did you use Gtk::EXPAND/Gtk::FILL
when attaching it?
Rob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]