Re: Irv's GTK library

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Thursday 21 November 2002 06:41 pm, Chris wrote:

> Just to say I've just manage to get my SuSE 6.2 (P133, 16Mb ram) machine at
> home running your GTK library. Runs a bit dog like, but runs once its
> interpreted everyrhing.

That's pretty minimal hardware to be running x. I'm surprised it runs at all.
I developed the initial EuGTK on a 133 mhz box, but with 128 megs of memory, 
it ran pretty fast. 

> Had to do some library updates, you might want to put the requirements on
> your web site. Snaffled all of the updates from the SuSE 7.2 DVD, networked
> into my XP machine.
>
> Here they are.
>
> libgtk-1.2.so.0.5.3 (1.2.8)
> (libgdk-1.2.so.0.5.3)
> glib 1.2.8
> glibc 2.2
> imlib 1.9.5

Thanks.

> I do have a stupid question for you actually. Can't remember the details,
> because the files at work, so from memory - I created a table, 2 by 10,
> ried to insert a frame(/box/panel), and it wouldn't position correctly
> until I had set the row and cols to something like 30,640,0,100 - anything
> else just gave a tiny little widget.

Can't say what to do without seeing the source. Drop it into the e-mail, and 
I'll take a look.

> Oh, sorry, heres another one
> pack(widget,{widgets to pack}, 0,0,5) - what do the last three digits do?

Mostly, support and encourage my laziness Typing 0 is easier than "FALSE".:)

The first two are boolean values called "expand" and "fill". The third is an 
integer value for "spacing" - how many pixels between adjoining controls.
Only "spacing" means what you think it does. 

The best I can do to explain what the first two do is to encourage you to 
run the following program, and resize the window with the mouse.
Change "expand" ,"fill", or both to TRUE or 1 and see what happens.

include gtk/wrapper.e

widget win, panel, btn1, btn2

init(0,0)
win = window("Pack test")

panel = hbox()
addto(win,panel)

btn1 = button("OK")
btn2 = button("Click me for a treat")
pack(panel,{btn1,btn2},0,0,0)

show(win)
main()

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu