Re: IUP 3.31 Wrapper
- Posted by petelomax Oct 27, 2023
- 1915 views
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.

