Re: Dialog boxes



Chris Garrett wrote:

(snip) 
window_function {
        draw widgets in window
        link callback functions to widgets
        link dialog callback to the closing of the window
}

dialog_cb {
        draw buttons and text
        link callback to ok button
        link callback to cancel button
}


cancel_cb {
        close dialog
}

ok_cb {
        close dialog
        close window
}


The tricky thing, in above, is passing enough state information to ok_cb
to close up the window and the underlying code structure.  To do so you
basically have one g_pointer, specified when doing the linking you refer
to above.




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