Re: IUP 3.31 Wrapper

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

I can't figure why this example isn't working.

As for the example a brief console window shows up then goes away. My guess is I need a more Euphoria way of using the callback or I'm missing something?

You need to translate the rest of that example as well: https://www.tecgraf.puc-rio.br/iup/en/7gui/counter.c

Without an IupMainLoop() after an IupShow[XY](), most IUP programs would do nothing other than terminate immediately.

As-is, I would expect that IupGetDialogChild() call to either crash or return NULL since there is no interface element with a "NAME" of "TEXT",
and if it does not crash, simply g/set the meaningless "VALUE" attribute in the global environment, which wouldn't do anything useful/visible.

PS: there is also a "VAULE" typo in your translation, and you will probably need to change "object self" to "atom self" otherwise call_back() on it will complain.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu