Hiba schrieb:
> I'm beginner in FLTK development and i wanted to know how to add paths on the 
> browser using the "fluid" interface?
> 
> thank you matthiasm, he wrote me :
> In "Extra Code", enter something like
> o->data(index, (void*)"/usr/local/lib");
> In a callback, retreive them like this:
> const char *path = browser->data(index);
> 
> but when i do this, the compiler tell me that "browser" is an undeclared 
> object.
> 
> Please, can you telle me where sould i declare the object "browser"?

It is the line "Name" above "Extra Code" - if you insert "browser" 
there, the objekt is named "browser" and you can use "browser->data(index);"
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to