Thread View: comp.graphics.explorer
1 messages
1 total messages
Started by Robert van Liere
Thu, 06 Aug 1992 19:44
Re : mbuilder
Author: Robert van Liere
Date: Thu, 06 Aug 1992 19:44
Date: Thu, 06 Aug 1992 19:44
42 lines
1788 bytes
1788 bytes
> I have been unable to get mbuilder widget limits to 'stick', and have been
> using the following procedure instead (even thought the manual says it
> 'can't be done'):
> in your code, ad:
> #include<cx/UserFuncs.h>
> void wdgt_init()
> {
> /* an example */
> cxInWdgtDblMinMaxSet("Magnify",2.0,10.0);
> }
> cxHookTable cx_HookTable[] = {
> { cx_func_init, wdgt_init},
> { cx_func_last }
> };
>
> to compile:
> make clean
> make all (and note exactly what commands are used)
> edit 'modulename'.mdw.c to remove its cxHookTable def
> execute by hand the makefile commands following the message
> '...creating module wrapper...'
This might work but, in general, it is VERY bad practice to patch
*.mdw.c files. Reason :
a) future versions of mbuilder may generate very
different code making you technique unusable.
b) you (and others) can't change the interface anymore without
hacking into the generated code.
A better alternative is to follow Dave Shreiner's suggestions. See his
previous reply for more details.
-- Robert van Liere
--
Robert van Liere, Department of Interactive Systems,
Center for Mathematics and Computer Science (CWI)
Kruislaan 413, 1098 SJ Amsterdam, The Netherlands
email: robertl@cwi.nl | tel: +31-20-592-4118 | fax: +31-20-592-4199
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads