1. EuGTK:How To Expand Widgets

I'm trying to learn some EuGTK. I need List/TreeViews, unfortunately. grin

For some reason, my widgets/controls are squished. How do I get them to expand to fill the space?

https://openeuphoria.org/pastey/309.wc

new topic     » topic index » view message » categorize

2. Re: EuGTK:How To Expand Widgets

Any widget which doesn't automatically expand can be forced by changing From add() to pack(container,widget,1,1).

I will be home in a couple hours and can test your program.

new topic     » goto parent     » topic index » view message » categorize

3. Re: EuGTK:How To Expand Widgets

irv said...

Any widget which doesn't automatically expand can be forced by changing From add() to pack(container,widget,1,1).

I will be home in a couple hours and can test your program.

Ah! OK. I tried pack() but I was using it wrong. Oops.

Looking much better! Thank you!

new topic     » goto parent     » topic index » view message » categorize

4. Re: EuGTK:How To Expand Widgets

To filter the top-right list so it shows only the sub-categories which match the item selected from the top-left requires you to create a tree-model filter.

Rather than try to code that up for you (since I don't know how and what is expected to match), I've posted a complete program which uses a filter: https://openeuphoria.org/pastey/310.wc

Note that you will obtain your search term from the first box rather than from buttons. Otherwise, the code would be the same.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu