GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Aug 29, 2016 3:39 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: GTK 2+big spin buttons with too small arrows
PostPosted: Fri May 24, 2013 9:07 am 
Familiar Face

Joined: Fri Oct 26, 2012 10:49 am
Posts: 48
I have a screen with a few spin buttons and there labels.
To align them, I put them in an gtk_alignemnt and then in a hbox
The label is the first in the hbox, alignt to the left,
Thje value is the second in the hbox, aligned to the right.

I could set the font hight of the label to 15.
I would like to make the spin buttons bigger, because the screen appears on a touch screen and the user has to press the arrow of the spin buttons.
But like you see on the screen shot, the field is big but the arrows stay small.
Can you help me to make big spin buttons, which are correctly aligned?

Thanks a lot in advance

my code:
alignLabel[Nr] = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);  // left aligned
alignValue[Nr] = gtk_alignment_new(1.0, 0.5, 0, 1);  // right aligned, fill the height

label = gtk_label_new(NULL);
ts_set_label_with_size(label, DESCR_FONT_SIZE_EDITMODE, text);
gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);

gtk_widget_set_size_request(re_local.widgets.spinOrEntry[Nr], 300, 50);

gtk_container_add(GTK_CONTAINER(alignLabel[Nr]), label);
gtk_container_add(GTK_CONTAINER(alignValue[Nr]), re_local.widgets.spinOrEntry[Nr]);
gtk_box_pack_start (GTK_BOX (re_local.widgets.hboxHeaderParameters[Nr]), alignDescr[Nr], TRUE, TRUE, 5);  // aligned left
gtk_box_pack_start (GTK_BOX (re_local.widgets.hboxHeaderParameters[Nr]), alignValue[Nr], TRUE, TRUE, 5);   // aligned right

spinbutton.jpg [ 18.76 KiB | Viewed 1322 times ]
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group