[fpc-pascal] PTC Graph - Custom window sizes

James Richters james.richters at productionautomation.net
Thu Nov 19 14:44:17 CET 2020


I've been using PTCGraph from PTCPas and so far I can only use windows sizes that there happens to be a display driver for,  even if they are in a window.. so I can make a 640x480 or 1024x768 window,  but if I have a screen in a vertical configuration now I can't get a 640x480 window, I can only get a 480x640 window because with the screen vertical, only vertical orientation graphics drivers are available.    There are times I want a totally custom size window as well,  like a 100x50.  I see a lot of procedure like ptc_Init640x480x32bpp with all kinds of configurations of screen resolutions and color densities, but there is also some named ptc_InitNonStandard32k.. with other color densities.. but I don't know how to initialize PTCGraph into my own custom window size.   Does anyone know how I could make my PTCGraph windows a custom weird size that doesn't necessarily match the available video drivers?

James



More information about the fpc-pascal mailing list