Re: XForms: problem with fl_get_input solved :)

Daniel Blvmer (
Thu, 16 Oct 1997 19:31:20 +0200

To subscribers of the xforms list from Daniel Blvmer <> :


Steve Lamont wrote:
> void my_callback( FL_OBJECT *obj, long data )
> {
> char *string = strdup( ( char *) fl_get_input( obj ) );
> switch ( data ) {
> case 1: {
> I'm not sure that this is any better than separate functions for each
> object. It may be slightly messier to maintain if/when you add new
> input fields to your structure and database.
I think this is perfect for boundling the object that belong together.
I used this kind of callback for a cameramovement, there data means the
direction. Because the difference between all these function is minmal,
and they have much of the same code.

> I personally would stick with the individual callbacks.
This depends on what You are doing. If it is logical to conecntrate the
functions, it more easy to look over.
(my oppinion)

                                live long and prosper

Daniel Bloemer

>> "This Software requires Window95 or better ..." << So I installed Linux.... >> << Never touch a running System, just Shoot it Up >> << MY Homepage : >>

Would You please look at this. >>>>>>> FLASH <<<<<<<<

_________________________________________________ To unsubscribe, send the message "unsubscribe" to or see Xforms Home Page: List Archive: