Article View: comp.graphics.explorer
Article #38Re: mbuilder
From: pecquet
Date: Thu, 06 Aug 1992 17:48
Date: Thu, 06 Aug 1992 17:48
36 lines
1665 bytes
1665 bytes
In article <1992Aug3.192211.7570@murdoch.acc.Virginia.EDU>, wsh8z@kelvin.seas.Virginia.EDU (William Scott Heyman) writes:
> Is there any way to set the ranges on the widgets used in the "control
> panel" part of mbuilder?
>
> I want a dial or slider which goes from 0-10 instead of 0-100.
> Thanks
> Will Heyman
> UVA Applied Math
> wsh8z@virginia.edu
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 causes the widget's min and max settings to be set when the module is
loaded into the map.
-Joseph
pecquet@mps.ohio-state.edu
pecquet@ohstpy.bitnet
Technical Details
Message-ID:
<13238.2a812da9@ohstpy.mps.ohio-state.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!pecquetReferences:
<1992Aug3.192211.7570@murdoch.acc.Virginia.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!pecquet From: pecquet@ohstpy.mps.ohio-state.edu Newsgroups: comp.graphics.explorer Subject: Re: mbuilder Message-ID: <13238.2a812da9@ohstpy.mps.ohio-state.edu> Date: 6 Aug 92 13:48:25 EDT References: <1992Aug3.192211.7570@murdoch.acc.Virginia.EDU> Lines: 36