🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.explorer
Article #39

Re : mbuilder

#39
From: Robert van Liere
Date: Thu, 06 Aug 1992 19:44
42 lines
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
Technical Details
Message-ID: <6967@charon.cwi.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!cwi.nl!robertl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!cwi.nl!robertl
From: robertl@cwi.nl (Robert van Liere)
Newsgroups: comp.graphics.explorer
Subject: Re : mbuilder
Message-ID: <6967@charon.cwi.nl>
Date: 6 Aug 92 19:44:44 GMT
Sender: news@cwi.nl
Organization: CWI, Amsterdam
Lines: 42