Thread View: comp.graphics.explorer
3 messages
3 total messages
Started by William Scott Heyman
Mon, 03 Aug 1992 19:22
mbuilder
Author: William Scott Heyman
Date: Mon, 03 Aug 1992 19:22
Date: Mon, 03 Aug 1992 19:22
8 lines
627 bytes
627 bytes
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
Re: mbuilder
Author: Dave Shreiner
Date: Tue, 04 Aug 1992 06:29
Date: Tue, 04 Aug 1992 06:29
42 lines
2350 bytes
2350 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 There are three "modes" that widgets take on when you're modifying them with the Control Panel Editor ( whether its from DataScribe, Module Builder, or Module Groups in the Map editor ). They are something like the following : * UNSELECTED - the widget's title ( provided it has one ) is gray, and the widget isn't outlined in black. In this mode, the widget is not modifiable. * OUTLINED IN BLACK, with title grayed out - in this mode, you can interactively move the widget ( by grabbing the widget anywhere inside the black outline except the lower right hand corner ), or resize the widget ( by grabbing in the lower right hand corner of the outline ). This mode is obtained by clicking the pointer over the widget. * OULINED IN BLACK, with title also in black - in this mode, you can change the limits for dials and sliders, or the widgets default vaule. If you double click over the widgets labels ( numbers ) the text entry field should turn inverted ( black background, blue numbers given a default configuration ), at which point, you can enter in any new value. Press ENTER to make the value stick. Hope that helps. Thanx, Dave --------------------------------------------------------------------------- Dave Shreiner <shreiner@sgi.com> Silicon Graphics, Inc. (415) 390 - 5063 "Silently screaming I bang my head against the wall" - Suicidal Tendencies
Re: mbuilder
Author: 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
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