Re: Re: [PHP-GTK] Frame, vbox, other questions
| From: | NetNITCO Web Department | Date: | Fri, 11 Jun 2004 15:23:50 +0000 |
| Subject: | Re: Re: [PHP-GTK] Frame, vbox, other questions | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4647@lists.php.net to get a copy of this message | ||
That worked perfectly! Thanks! And yes.. padding the widget inside the
frame will pad what i need.
Thanks again!
-Scott
On Mon, 2004-06-07 at 11:46, Madeleine D. wrote:
> Scott -
>
> Okay, if I understand your question, you need to change the content of a
> vbox that has already been painted.
>
> What we found is that once a widget has been realized inside a window, you
> have to repaint it to get the changed display.
>
> For instance, we have a clist that gets different content depending on a
> button click. So, the function for the button is as follows:
>
> // Remove clist from container
> $scrollWin->remove($scrollWin->child);
>
>
> // Redo the data for the list based on the button selected
> if ($switch == "all") {
> PMhstSetHstClist();
> } else {
> PMhstSetUnpClist();
> }
>
> // Realize the window
> $windows["PMWin_history"]->realize();
>
> // Repack the container
> $scrollWin->add($passArea["clist_hst_select"]);
>
> // Setup the signals to the new list
> $passArea["clist_hst_select"]->connect_object("key_press_event",
>
> "PMclistSelect",$passArea["clist_hst_select"],"PMWin_history","noSource","no
> Dest","noNext","noDisp",$titles);
>
>
> $passArea["clist_hst_select"]->connect_object("button_press_event","PMclistS
>
> elect",$passArea["clist_hst_select"],"PMWin_history","noSource","noDest","no
> Next","noDisp",$titles);
> $passArea["clist_hst_select"]->connect_object('click_column',
> 'PMclistSortCol',$passArea["clist_hst_select"], $column);
>
> $buttons["hst_deselect_button"]->connect_object("clicked",
> PMclearSelect,$passArea["clist_hst_select"]);
>
> // Display the new window
> $windows["PMWin_history"]->show_all();
>
>
> Hope that's what you're looking for.
>
> On number 1, wouldn't it be that the inside pad would come from the object
> inside the frame, rather than the frame itself? We haven't had to worry
> about this on, so I'm just guessing.
>
>
> Madeleine D.
>
>
>
>
> At 11:23 AM 6/7/2004 -0500, you wrote:
> >No... 1 and 2 have not been addressed. Thanks for the followup though.
> >
> >-Scott
> >
> >----- Original Message -----
> >From: Madeleine D. <mmdrake@bctonline.com>
> >Sent: 06-07-2004 11:06 am
> >Subject: Re: [PHP-GTK] Frame, vbox, other questions
> >
> >> Scott -
> >>
> >> Did you get an answer to your second question? I didn't see one on
> >the list.
> >>
> >> Anyway, we have had to deal with this before, so we might be able to
> >help.
> >>
> >> Madeleine D.
> >>
> >>
> >> At 09:32 AM 6/3/2004 -0500, you wrote:
> >> >Hello to everyone! Ive been part of this list for about a year now
> >and
> >> >dont think ive ever e-mailed it with a question.... now ive got a
> >> >couple.
> >> >
> >> >1. I cant seem to find a function to pad the inside of gtkframe.
> >> >set_border_width does the outside padding or corse, but the inside is
> >> >what i need.
> >> >
> >> >2. Say I have a vbox with 3 rows. I pack 3 things into the rows using
> >> >pack start 3 times. If i want to change the middle row (row 2), how
> >> >would i go about doing that? Ive tried to just repack all 3 again
> >> >replaceing the 2nd row with what i want but it doesnt seem to work.
> >> >
> >> >3. Where is the best place to find GTK function information. I would
> >> >consider myself to be a pretty good PHP developer and i find it
> >> >frustrating when the docs have no information and gnomes mailing list
> >> >archives are not searchable.
> >> >
> >> >Thanks guys for any help with these questions. Im really starting to
> >get
> >> >into this again. With the mailing list being down for so long i
> >almost
> >> >forgot about it. :)
> >> >
> >> >-Scott
> >> >
> >> >------------------------------------------------------------
> >> >Sent using NetNITCO Webmail 3.0
> >> >
> >> >--
> >> >PHP-GTK General Mailing List (http://gtk.php.net/)
> >> >To unsubscribe, visit:
> >> >http://www.php.net/unsub.php
> >> >
> >> >
> >>
> >>
> >
> >
> >------------------------------------------------------------
> >Sent using NetNITCO Webmail 3.0
> >
> >
> >