Re: New to GTK+ and a question about Combo boxes.
- From: muppet <scott asofyet org>
- To: Steve Manes <gtk magpie com>
- Cc: gtk-perl-list gnome org
- Subject: Re: New to GTK+ and a question about Combo boxes.
- Date: Wed, 2 Sep 2009 19:17:22 -0400
On Aug 31, 2009, at 10:29 PM, Steve Manes wrote:
I'm building a Perk-GTK application on Windows which includes a
"date" element, which is three ComboBoxes clustered together in an
Hbox: month, day, year.
Since there are several places in the application where a date is
added, I built a function to return an Hbox containing those three
combo boxes:
sub make_date
{
[snip packing a bunch of stuff into a new hbox]
return $hbox;
}
$E is a global hash I'm using for the time being to keep track of
all the elements -- at least until I get more expert with GTK.
My questions:
1) How come whenever I resize the window the ComboBoxes themselves
also expand? I've tried every combination in the pack_start
function to no avail.
You didn't mention whether they expand vertically or horizontally. If
they're expanding vertically, it's not a problem with your hbox
packing, but with how you pack the hbox into the window -- if you let
the hbox expand inside a vbox, you'll get what i think you're talking
about.
If they're still expanding horizontally, please post a bit more code
-- just enough that we can run it and play with it.
Screenshots would help. ;-)
2) How come the pulldown lists appear (for lack of a better term)
double spaced? Is there a fix for that?
Do you have newlines in your strings? Perhaps it's a theme issue?
3) How come I can't seem to get rid of the padding between the three
ComboBoxes? I'd like there to be no space between them.
4) One more oddity: if I stick the output of this function in a
table cell like this:
$table->attach_defaults(make_date('dob', 1950, 2010), 3, 4, $row,
row+1);
and then give the table a small row spacing, like $table-
>set_row_spacings(2), the comboboxes expand to like 3x their normal
height.
This one sounds like you need to attach() instead of attach_defaults
(), and choose the "please don't expand in any direction" options.
--
me, while driving the car: Okay, girls, what do you want for lunch?
yvonne: I wan' noo-tulls!
zella: I want lavaloli! Can we go to the lavaloli store?
me: Um, where *is* the ravioli store?
zella: At the lavaloli store!
yvonne: I want noo-tulls! Let's go to the noo-tull store!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]