RE: [Xbae-discuss] how to prevent editing Widget ?
Brought to you by:
dannybackx
From: Page, A. (N-OXFORD) <and...@lm...> - 2004-06-30 15:08:23
|
Something along these lines usually does the trick void enter_cell_cb(Widget w, void *client_data, void *cbs) { XbaeMatrixEnterCellCallbackStruct *cb = (XbaeMatrixEnterCellCallbackStruct *)cbs ; /* * set fields to False to NOT permit editting, or even to start editting. * This signals the XbaeMatrix widget to NOT map an entry field * over this location. */ cb->doit = False ; cb->map = False ; } XtAddCallback(matrix, XmNenterCellCallback, enter_cell_cb, NULL) ; -----Original Message----- From: xba...@li... [mailto:xba...@li...] On Behalf Of fou ya Sent: Wednesday, June 30, 2004 3:13 AM To: xba...@li... Subject: [Xbae-discuss] how to prevent editing Widget ? hi all i m using XbaeMatrix .. as you might suppose :) all my widget are filled with text that don t come from the user of my program. (= not from the keyboard) However yhe user can type text in my widget when the program is running. i want to prevent this behaviour. what is the simplest way to make widget not editable ? i m not using the last version of Xbae, if u need i ll tell you version i m using. thx for ideas. ps: i already try some functions and callbacks but this didn t works _____ The new MSN 8: <http://g.msn.com/8HMBEN/2737??PS=47575> smart spam protection and 2 months FREE* ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Xbae-discuss mailing list Xba...@li... https://lists.sourceforge.net/lists/listinfo/xbae-discuss |