Re: [fpc-pascal] Graph Unit
HI, this is for compatibility with the old borland software on window/dos On Mon, 2006-02-13 at 23:15 -0800, Ryo T wrote: > How to use unit Graph in fpc ? > > == > 12y0 > The ~'S'~ > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Graph Unit
В пн, 2006-02-13 в 23:15 -0800, Ryo T написа: > How to use unit Graph in fpc ? > > == > 12y0 > The ~'S'~ > here is the documentation for the graph unit: http://www.freepascal.org/docs-html/rtl/graph/index.html a simple test program is attached program graphex; uses Graph; var i: LongInt; gd,gm : integer; begin gd:=detect; { highest possible resolution } gm:=0; { not needed, auto detection } InitGraph(gd,gm,''); if GraphResult<>grok then halt; { whatever you need } for i := 0 to 100 do begin SetColor(Random(GetMaxColor)); LineTo(Random(GetMaxX), Random(GetMaxY)); end; CloseGraph; { restores the old graphics mode } end.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Graph Unit
How to use unit Graph in fpc ? == 12y0 The ~'S'~ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]Graph unit <-> SDL ?
> I notice the Graph unit (for TP7 compatibility) is implemented against > svgalib. Does anyone know if it is possible to create a SDL surface > instead and have Graph draw to that surface? It is possible to create a sdlgraph just like there is already a ggigraph. But none of the core developpers has plans to create it. If someone creates a sdlgraph we'll happily include it Peter ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]Graph unit <-> SDL ?
Hi, I notice the Graph unit (for TP7 compatibility) is implemented against svgalib. Does anyone know if it is possible to create a SDL surface instead and have Graph draw to that surface? thanks, -- Ryan Underwood, <[EMAIL PROTECTED]> ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]graph unit and the mouse
> highest resolution possible for any machine. However, the mouse unit > offers only "character" granularity resolution which won't work in a > hi-res graphics environment...I need the mouse resolution to be at the > pixel level, as it is in any modern GUI. Did you init the mouse driver before or after switching to graphics mode? I noticed that some mouse drivers deliver different resolution depending on the active screen mode at the moment of their initialization. hope this helps, Klaus ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]graph unit and the mouse
On Sun, 9 Feb 2003, Mark Emerson wrote: > Florian Klaempfl wrote: > > > > Mark Emerson wrote: > > > Does anybody know a way to read the mouse at pixel resolution while > > > using the graph unit? > > > > > > > You mean for go32v2? It depends on your mouse driver I think. > > > Please excuse my ignornace, but I don't yet understand what "go32v2" > means...I see this term used in the FPC documentation in connection with > platforms, but I've never heard of it. Is it a processor? Or an OS? > Or what? go32v2 is a so-called dos extender: It allows 32-bit programs to run on plain DOS. It was written by D.J. Delorie (http://www.delorie.com) Since FPC is a 32 bit compiler, it relies on the services of such an extender. Another such extender is EMX, or WDOSX. > > I am running entirely in graphics mode and am using the graph unit to > accomplish this. I am creating state-of-the-art graphics that can be > manipulated by the user via the mouse. I simply need to be able to read > mouse events (and also to change the mouse cursor). The application I'm > creating must run on Win32, Linux and Unix (and Mac when FPC is > ready)...with separate compilations for each platform as needed. > > The units in the RTL are system independent, which I greatly appreciate. > I also greatly appreciate the graph unit's capability to select the > highest resolution possible for any machine. However, the mouse unit > offers only "character" granularity resolution which won't work in a > hi-res graphics environment...I need the mouse resolution to be at the > pixel level, as it is in any modern GUI. > > How can I achieve this? The best way to go about this is not to use the graph unit. The graph unit is provided for TP compatibility, but modern-day GUI systems do not work with the same paradigm. I suggest you look into using GTK or so. It's relatively cross-platform as well, and is quite well supported by FPC. Michael. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]graph unit and the mouse
Florian Klaempfl wrote: > > Mark Emerson wrote: > > Does anybody know a way to read the mouse at pixel resolution while > > using the graph unit? > > > > You mean for go32v2? It depends on your mouse driver I think. > Please excuse my ignornace, but I don't yet understand what "go32v2" means...I see this term used in the FPC documentation in connection with platforms, but I've never heard of it. Is it a processor? Or an OS? Or what? I am running entirely in graphics mode and am using the graph unit to accomplish this. I am creating state-of-the-art graphics that can be manipulated by the user via the mouse. I simply need to be able to read mouse events (and also to change the mouse cursor). The application I'm creating must run on Win32, Linux and Unix (and Mac when FPC is ready)...with separate compilations for each platform as needed. The units in the RTL are system independent, which I greatly appreciate. I also greatly appreciate the graph unit's capability to select the highest resolution possible for any machine. However, the mouse unit offers only "character" granularity resolution which won't work in a hi-res graphics environment...I need the mouse resolution to be at the pixel level, as it is in any modern GUI. How can I achieve this? Mark ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]graph unit and the mouse
Mark Emerson wrote: Does anybody know a way to read the mouse at pixel resolution while using the graph unit? You mean for go32v2? It depends on your mouse driver I think. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]graph unit and the mouse
Does anybody know a way to read the mouse at pixel resolution while using the graph unit? Mark ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal