GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Dec 21, 2014 12:07 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Combobox in the latest version on Gtk3 and Glade
PostPosted: Sat Jun 28, 2014 10:57 am 
Offline
Familiar Face

Joined: Fri Sep 23, 2011 12:04 pm
Posts: 31
Attachment:
Second Dialog.jpg
Second Dialog.jpg [ 10.59 KiB | Viewed 164 times ]
Attachment:
Second Dialog.jpg
Second Dialog.jpg [ 10.59 KiB | Viewed 164 times ]
I am using the latest version of Gtkada 3 downloaded with GPS 2014
I am filling the box with an array of strings with the following code:

Code:
Clear(DOW_Day_List);
for n in 1 .. 31 loop
   Init(G_Char, GType_String);
   Set_string (G_Char, integer'image(n));
   Append(Dow_Day_List, I);
   Set_Value(Dow_Day_List, I, 0, G_Char);
   Unset (G_Char);
end loop;
Set_Active(DOW_D_Combo, Gint(Datum.Dag - 1));


This with some other items delivers the first picture.
Attachment:
First dialog.jpg
First dialog.jpg [ 10.71 KiB | Viewed 164 times ]


When clicking on the combobox I get the next picture.
Attachment:
Second Dialog.jpg
Second Dialog.jpg [ 10.59 KiB | Viewed 164 times ]


In the first picture I expected in both comboboxes to see the item pointed to, but it seems clean.
In the second picture I expected a dropdown box with all the values possible.
Can anyone tell what I do wrong.

For more information I have a program in with an older version of Gtk 3 that works but there is a difference between the comboboxes. The difference is in the packing tab
in the last version it is filled with:
Left binding 1
Upper binding 0
Width 1
Height 1
while the older version presents:
Position 1
filling 0
Fill Yes
Fold out Yes
Pack style Start

L. Dries


Top
 Profile  
 
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: No registered users and 6 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