|
From: Tatsuro M. <tma...@ya...> - 2010-02-21 05:56:42
|
Hello
"don taber" wrote :
======================================================================
One problem I note in both cases: Font changes made with the "Choose
Font" Windows dialog do not take effect unless followed by a replot
command. The plot is immediately redrawn when the dialog is dismissed
with 'Okay', but the font does not change and if the Choose Font
dialog is called again without an intervening replot, the old font is
displayed. This separate replot command should not be necessary.
There is something missing from the code that redraws the plot when
the dialog is closed. I'm sure that someone who is more of a Windows
programmer than I can fix this easily.
=======================================================================
I have confirmed the above.
But it has been seen from at least gnuplot 4.2.4 for windows.
The requirement of a replot command can be said as a feature.
However, changes in Line Styles, Backgraound etc. on the dialog of the graph window are
reflected immediately.
It is better to fix it as possible.
So I have a look into the function SelFont(LPGW lpgw) the code of wgraph.c
SelFont(LPGW lpgw)
{
:
if (ChooseFont(&cf)) {
:
:
SendMessage(lpgw->hWndGraph,WM_COMMAND,M_REBUILDTOOLS,0L);
}
SendMessage(lpgw->hWndGraph,WM_COMMAND,M_REBUILDTOOLS,0L);
is used. This is used also in the function GraphRedraw(LPGW lpgw).
void WDPROC
GraphRedraw(LPGW lpgw)
{
if (lpgw->hWndGraph && IsWindow(lpgw->hWndGraph))
SendMessage(lpgw->hWndGraph,WM_COMMAND,M_REBUILDTOOLS,0L);
}
I cannot find out why SendMessage(lpgw->hWndGraph,WM_COMMAND,M_REBUILDTOOLS,0L); seems not to work.
Any suggestions?
Regards
Tatsuro
--------------------------------------
VANCOUVER 2010 Olympic News [Yahoo! Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/olympic/
|