Holger Vogt
ac7584bcf6
Unify the function interface, avoid lto-type-mismatch
2 years ago
Giles Atkinson
2ec5944dd4
Use all available precision when creating a "plot" command for a
zoomed window. That prevents an unexpected zoom-out in one dimension
caused by a zero-height (or width) window being requested when zooming
with already high magnification.
2 years ago
Holger Vogt
75f9451702
Fix bug 624 also for MS Windows
by moving DestroyGraph() from WM_CLOSE to RemoveWindow()
3 years ago
Holger Vogt
4f82a24df2
Add parameter 'isgrid' to plotting of arcs.
Smithgrid and polar plots could not discern between xgridwidth and
xbrushwidth. This is now available, similar to straight line plotting.
Tested also for PS and SVG.
4 years ago
Holger Vogt
ce9bc9fc64
The re-painting due to mouse-click under MS Windows is caused by line 561
of windisp.c. Upon left mouse button up the plot recangle is invalidated,
and a WM_PAINT message is generated (same on line 614 for right mouse
button up). If not re-pained, artifacts may be left on the canvas after
collecting coordinate data.
Shifting the command InvalidateRect to a place where it becomes active
only after the mouse has been moved, does the trick. Simple clicking
(right or left) will not cause a re-paint any more.
4 years ago
Holger Vogt
d34d1e7c7c
Get immediate response into text window,
when requesting information on coordinates.
5 years ago
Holger Vogt
1176bdb0b0
Bug: Plot window switching did not change the plot content.
Enable plotting the current graph to svg or ps by selecting
the graph from the current plot window.
5 years ago
Holger Vogt
109e33f127
Improve font selection for Win GUI plot window
Font Names from
https://docs.microsoft.com/en-us/typography/fonts/windows_10_font_list
without option or with Bold or Italic are supported, e.g.
setcs wfont="Cambria Bold Italic".
5 years ago
Holger Vogt
80e5f67466
Reduce wchar_t string length to minimum required
(to be NULL-terminated for CreateWindowW)
5 years ago
Holger Vogt
c9a19c7569
Fix for bug 547
Reduce length of wchar_t strings to the minimum required
for conversion
Check if Bold or Italic is given in the font name, set
corresponding variable
5 years ago
Holger Vogt
43c44a8ca9
correct description
5 years ago
Holger Vogt
1f54a6add3
WinGUI: Make the text output from com_hardcopy available immediately
by call to function UpdateMainText.
Enable color for postscript output.
5 years ago
Holger Vogt
683ef77955
Separate color and b&w
b&w in the plot window is not(yet) supported.
5 years ago
Holger Vogt
6d388e1679
Select black&white, if appropriate
Return colorID to previous values after hardcopying.
5 years ago
Holger Vogt
a836f81d62
This is a quick fix to the Windows printing function.
Tested with pdf and a color laser printer.
Still some bugs: the grid needs to be fixed.
6 years ago
Jim Monte
ca2be5dd41
More efficient utf-8 to tchar conversion
remove 'graph' from SetColor
6 years ago
Holger Vogt
779bd0e6e2
Commit [88653f] Fixed assorted compiler warnings, memory leaks, etc.
branch beta_jdm by Jim Monte
6 years ago
Holger Vogt
a084f4f2b5
avoid type conversion warning size_t -> int
6 years ago
Holger Vogt
09d3fbe3ad
remove false bracket in EXT_ASC
6 years ago
Holger Vogt
1919cf5c94
replace variable 'gridwidth' by 'xgridwidth'
6 years ago
Holger Vogt
32722ecc57
some missing brackets, typos
6 years ago
Vogt
728ddae41e
Set the color tables and linewidths personal for each graph,
added to strucht graph
Use only these data for plotting.
If zooming a plot windows, set as an extra parameter the graph id
of the 'mother graph'. Copy its color and line data to the new graph.
This is done by an extra parameter sgraphid to the internal plot
command that is issued in fcn PlotWindowProc().
Thus zooming will keep the background, text/line and graph colors.
Function setcolor() will always look into the colorarray of the
current graph.
6 years ago
Holger Vogt
1fda03382e
color input for text/grids (color1), background (color0)
and graphs (color2-22) on Windows via
set color2=red
set color2=rgb:ff/0/0
set color2=rgbd:255,0,0
several examples given in the example files
6 years ago
Holger Vogt
86917e3d36
enclose in WinGUI #ifdef
6 years ago
Holger Vogt
6094769fda
Restore original 'green', slight update on
auto color selection vs. background
6 years ago
Holger Vogt
cb38e7a367
enable using setting colors by colornn with 0<=nn<=22
The name list of colors is given by
https://www.codeproject.com/Articles/1276/Naming-Common-Colors
6 years ago
Holger Vogt
167bd9b433
enable color selection, if compiled with MINGW
6 years ago
Holger Vogt
3701ca0364
add color selection to WinGui plots
6 years ago
Holger Vogt
921058cb39
fix remaining bugs when EXT_ASC is defined
6 years ago
Holger Vogt
18f1e896f8
allow independent linewidth and gridwidth settings from within the .control section
6 years ago
Holger Vogt
8751092812
Enable separate linewidths for grids and graphs.
New variable gridwidth overrides xbrushwidth for graphs.
Fcn DevDrawLine() with boolean flag if grid is plotted.
Postscript, Gnuplot and X11 not (yet) supported.
9 years ago
Holger Vogt
c4f641dad6
remove bracket left over from recent manual merge conflict resolution
6 years ago
h_vogt
dbd0a5743a
Enable utf-8 and UNICODE for string handling.
preprocessor flag EXT_ASC resets handling to old behaviour.
Add utf-16 wide char to all Windows string i/o.
Add translation between utf-8 and utf-16.
Add angle to fcn DevDrawText.
9 years ago
Jim Monte
a7946474fa
Additional freeing of device-dependent information for bug #419 and related bugs.
6 years ago
Holger Vogt
bc9a22e5f7
Make interface responsive during plotting,
prevent endless loop, probably because of full internal buffers
7 years ago
Holger Vogt
65ee87e0a2
grid.c, windisp.c, vertical text for postscript and WINGUI
Arial as standard font for WINGUI
8 years ago
Holger Vogt
56701e3d10
add rotation angle to text output, currently used only by postscript,
ignored by all others
8 years ago
Holger Vogt
e3b2b395b9
fix an ancient bug in retrieving the data with the cursor
from a log y graph: use y-offset instead of x-offset
8 years ago
Holger Vogt
8fbcb16a57
add fourth parameter to cp_getvar(), in functions missing so far
8 years ago
rlar
2bafe98f17
winmain.c, etc, cleanup
9 years ago
rlar
90a205d36d
winmain.c, etc, whitespace cleanup
9 years ago
rlar
7bc6374138
cleanup, use '\0' instead of 0 in char context
11 years ago
rlar
c5e0bcde04
cleanup using `hypot()'
11 years ago
h_vogt
d7e291c53a
HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
13 years ago
rlar
6c8f002eea
unify #ifndef include wrapper
13 years ago
rlar
1ee88a5694
prepare for #ifndef include wrapper unification
13 years ago
Francesco Lannutti
a4e0cfe341
move windows specific `STRICT' definition to canonical place
14 years ago
Francesco Lannutti
08ec219417
remove all .cvsignore files
14 years ago
rlar
cb0a48801d
introduce AM_CFLAGS = $(STATIC)
14 years ago
rlar
f285dd0aa8
use strchr() instead of index()
14 years ago