IUP 3.31 Wrapper

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

Hello all,

Well I did it! I made, rather updated my IUP wrapper for 3.31. However I can't figure why this example isn't working.

Wrapper here: https://github.com/gAndy50/IUPWrapper

#include <stdlib.h> 
#include <iup.h> 
 
int btn_count_cb( Ihandle *self ) 
{ 
  Ihandle* text = IupGetDialogChild(self, "TEXT"); 
  int value = IupGetInt(text, "VALUE"); 
  IupSetInt(text, "VALUE", ++value); 
 
  return IUP_DEFAULT; 
} 

--Counter example 
 
include std/ffi.e 
 
include iup.e 
 
public function btn_count_cb(object self) 
 
	object text = IupGetDialogChild(self,"TEXT") 
	atom val = IupGetInt(text,"VALUE") 
	IupSetInt(text,"VAULE",val+1) 
	 
	return IUP_DEFAULT 
end function 
 
btn_count_cb(0) --being a number or NULL just causes a console window to briefly appear 

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?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu