Re: EuGTK for Windows, OSX

new topic     » goto parent     » topic index » view thread      » older message » newer message
irv said...

Will fix in next update, which will have a lot of new features, such as ready-made file and font selectors which can be called with one line of code, instead of having to be set up tediously.

Also, I borrowed an idea from Wee - setting multiple properties rather than one per line, so you can now write code such as:

constant win = create(GtkWindow,{ 
    {"name","Main Window"}, 
    {"title","My Window"}, 
    {"background","skyblue"}, 
    {"border width",10}, 
    {"default size",300,400}... 

At first, that doesn't seem like that would make much difference, but it makes large programs smaller and 'cleaner' looking. Maybe faster too, since the settings are all done in one loop, without having to look up objects repeatedly. Also, you can now name any widget, and refer to it as a string, e.g. "Main Window", rather than by handle, if you wish. This was done to accomodate Glade, which names controls for you, as well as to make saving program 'states' easier. Now, you can preserve such things as control settings, window size, color and placement, font preferencess etc. from one run to the next without writing your own "ini" support code.

Ahem...that looks familiar...<cough>Redy</cough> blink

gui:wcreate({  
    {"name", "winMain"},  
    {"class", "window"},  
    {"title", App_Name},  
    {"size", {400, 350}},  
    {"allow_close", 0}  
})  
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu