Re: Standard dialog builder possible?




G'Day !

The creative soul who wrote gtkSQL (or something like) that seems to have done what you are looking for.  I would use his code as an example.

cheers,
Jim Parker

Sailboat racing is not a matter of life and death ....  It is far more important than that !!!



Steven I Usdansky <usdanskys rocketmail com>
Sent by: gtk-app-devel-list-admin gnome org

05/03/01 07:51 AM

       
        To:        gtk-app-devel-list gnome org
        cc:        
        Subject:        Standard dialog builder possible?


I'm obviously not an very experienced C programmer, and have run into
a bit of a problem.  My program needs two types of dialog boxes.  The
first type has just a label containing a message and an ok button,
the second type has also an entry and must return text from that
entry to the appropriate data handler.  I'd like to pass the data
handling function to the standard dialog builder, something like as
shown below.

BuildStdDialog (char* message, function* HandlerFunction)
{
char* mytext;  /* text retrieved from entry, if any */
...
 if (HandlerFunction!=NULL) HandlerFunction(mytext);
}

Is this possible, and if so, I'd appreciate any hints as to how to
proceed.  Thanks

========================
Steven Usdansky
usdanskys rocketmail com



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]