From: Joao C. <jc...@fe...> - 2002-12-11 00:46:52
|
On Tuesday 10 December 2002 14:10, Joachim Wuttke wrote: > Since plSetOpt is not yet documented in the > on-line reference, here a clue: > For generic options, use > plSetOpt("<option_name>", "<argument>"), > e.g. > plSetOpt("np", ""). > For driver-specific options, in contrast, use > plSetOpt("drvopt", "<option_name>=3D<argument>"), > e.g. > plSetOpt("drvopt", "color=3D0"). Amazing! Since I introduced the drvopt cmd line option that I had the=20 intention to provide an API entry to do the same. And it already existed!= Not=20 with a clean syntax, tough! > The W2000 driver has the option "hwnd" which takes > as argument a pointer to a HWND handle. To use > this, one has to convert the pointer through > something like sprintf(drvopt_arg, "hwnd=3D%x", m_hwnd) > to a string; I doubt whether this has ever been > tested. A more sensible way to influence the > plot window from the main application would be > to pass a number of individual parameters like > xpos, xwidth, title, ... Is there any convention > I should follow in introducing such parameters ? You mean using plSetOpt() to do it? I'm afraid I don't follow you. Why don't you just write an API entry (and submit it), say=20 plDrvOpt("<option_name", "<value>")? Ah, "value" must be a string, as different options can ask for different=20 types, ints, floats or strings... this was done in a ugly way when I=20 implemented the drvopt, but I see no other way. > The option "np" has hitherto been ineffective in > the Win binding. To correct this, it might be > sufficient to chnge one line in win3.cpp into > dev->nextPlot =3D pls->nopause; Yes, this is the way interactive drivers work. The plplot core routines e= ither=20 advance the page or ask the user to hit a key/mouse click, depending on t= he=20 value of pls->nopause, that can be set/reset using plspause(). Try it and= =20 submit a patch! Joao > > - Joachim > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel |