Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #31591 > unrolled thread
| Started by | Antoni Gual Via <antonigualvia@gmail.com> |
|---|---|
| First post | 2014-06-16 04:07 -0700 |
| Last post | 2014-06-19 22:36 -0700 |
| Articles | 15 — 11 participants |
Back to article view | Back to comp.lang.forth
Forth for Windows offering a graphics window for drawing? Antoni Gual Via <antonigualvia@gmail.com> - 2014-06-16 04:07 -0700
Re: Forth for Windows offering a graphics window for drawing? Pablo Hugo Reda <pabloreda@gmail.com> - 2014-06-16 04:59 -0700
Re: Forth for Windows offering a graphics window for drawing? forthisit@gmail.com - 2014-06-16 07:22 -0700
Re: Forth for Windows offering a graphics window for drawing? josv@planet.nl - 2014-06-17 05:55 -0700
Re: Forth for Windows offering a graphics window for drawing? stephen@mpeforth.com - 2014-06-17 08:15 -0700
Re: Forth for Windows offering a graphics window for drawing? Roger Levy <roger.levy@gmail.com> - 2014-06-17 10:25 -0700
Re: Forth for Windows offering a graphics window for drawing? stephenXXX@mpeforth.com (Stephen Pelc) - 2014-06-19 09:05 +0000
Re: Forth for Windows offering a graphics window for drawing? Mark Wills <markwills1970@gmail.com> - 2014-06-20 01:29 -0700
Re: Forth for Windows offering a graphics window for drawing? Antoni Gual Via <antonigualvia@gmail.com> - 2014-06-20 01:45 -0700
Re: Forth for Windows offering a graphics window for drawing? Mark Wills <markwills1970@gmail.com> - 2014-06-20 02:07 -0700
Re: Forth for Windows offering a graphics window for drawing? stephenXXX@mpeforth.com (Stephen Pelc) - 2014-06-20 09:19 +0000
Re: Forth for Windows offering a graphics window for drawing? mhx@iae.nl - 2014-06-17 12:19 -0700
Re: Forth for Windows offering a graphics window for drawing? rickman <gnuarm@gmail.com> - 2014-06-17 18:21 -0400
Re: Forth for Windows offering a graphics window for drawing? Howerd <howerdo@yahoo.co.uk> - 2014-06-18 00:57 -0700
Re: Forth for Windows offering a graphics window for drawing? Antoni Gual Via <antonigualvia@gmail.com> - 2014-06-19 22:36 -0700
| From | Antoni Gual Via <antonigualvia@gmail.com> |
|---|---|
| Date | 2014-06-16 04:07 -0700 |
| Subject | Forth for Windows offering a graphics window for drawing? |
| Message-ID | <e8b46799-9fb3-42a5-874f-05ded981bfa5@googlegroups.com> |
Hi I program for hobby and I'm just starting with Gforth. Forth is a different and interesting language! Is there any implementation that offers a canvas for drawing at the style of the old DOS QBasic ? I don't want to have to access the windows API and don't need to be able to add a GUI to my programs. I just need to open ane empty window and set the color of pixels on it. Does it exist? Kind regards Antonio
[toc] | [next] | [standalone]
| From | Pablo Hugo Reda <pabloreda@gmail.com> |
|---|---|
| Date | 2014-06-16 04:59 -0700 |
| Message-ID | <990241e8-ce2a-4d2a-afc2-b7d7532f79fc@googlegroups.com> |
| In reply to | #31591 |
El lunes, 16 de junio de 2014 08:07:24 UTC-3, Antoni Gual Via escribió: > Hi > > I program for hobby and I'm just starting with Gforth. Forth is a different and interesting language! > > Is there any implementation that offers a canvas for drawing at the style of the old DOS QBasic ? > > I don't want to have to access the windows API and don't need to be able to add a GUI to my programs. I just need to open ane empty window and set the color of pixels on it. > > Does it exist? > > Kind regards > > Antonio You can access to copy a memory region to current window with bitbtl, making a framebuffer. I do this in the VM of :r4, I decide to do this because is OS depedent. https://code.google.com/p/reda4/ the code of VM are in MV folder..
[toc] | [prev] | [next] | [standalone]
| From | forthisit@gmail.com |
|---|---|
| Date | 2014-06-16 07:22 -0700 |
| Message-ID | <b0328eb5-b432-4715-8cee-fa72ed5c896e@googlegroups.com> |
| In reply to | #31591 |
On Monday, June 16, 2014 6:07:24 AM UTC-5, Antoni Gual Via wrote: > Hi > > I program for hobby and I'm just starting with Gforth. Forth is a different and interesting language! > Is there any implementation that offers a canvas for drawing at the style of the old DOS QBasic ? > I don't want to have to access the windows API and don't need to be able to add a GUI to my programs. I just need to open ane empty window and set the color of pixels on it. > Does it exist? > Kind regards > > Antonio I like the TclForth concept. Gives Forth-like access to the Tk graphical widgets. I've not done anything serious with it yet, only played a little. But it looked very promising to me. http://wiki.tcl.tk/37199
[toc] | [prev] | [next] | [standalone]
| From | josv@planet.nl |
|---|---|
| Date | 2014-06-17 05:55 -0700 |
| Message-ID | <7601cba1-e335-4be0-9788-eec3cd4a92a7@googlegroups.com> |
| In reply to | #31591 |
Hi Antonio, > Is there any implementation that offers a canvas for drawing > at the style of the old DOS QBasic ? I do'n't know about the QbAsic- method. >I don't want to have to access the windows API and > don't need to be able to add a GUI to my programs. > I just need to open an empty window Will be hard without using some kind of Windows API or a layer to the windows API > and set the color of pixels on it. That part can be done without the use of a windows API Only when you would like to show the content of the window you need to call some Windows API But that part can be done by using one existing Forth definition. > Does it exist? See the demo in ParallelPlotter.f which is in juliav442.zip juliav442.zip can be downloaded from: https://sites.google.com/site/win324th/sources Jos
[toc] | [prev] | [next] | [standalone]
| From | stephen@mpeforth.com |
|---|---|
| Date | 2014-06-17 08:15 -0700 |
| Message-ID | <077920ae-4c58-4a96-98c2-3bb6a8d2c0f3@googlegroups.com> |
| In reply to | #31591 |
> Is there any implementation that offers a canvas for drawing at the style of the old DOS QBasic ? It's more in the style of the Borland Turbo system, but the GTK+ interface for VFX Forth for Windows, Linux and Mac is present in all versions, has examples and is documented. See: http://www.mpeforth.com/vfxwin.htm Regards, Stephen
[toc] | [prev] | [next] | [standalone]
| From | Roger Levy <roger.levy@gmail.com> |
|---|---|
| Date | 2014-06-17 10:25 -0700 |
| Message-ID | <2256d9a1-a555-4df2-99ba-1a2f8ff32dba@googlegroups.com> |
| In reply to | #31611 |
I wrote the graphics wordset for that. :) On Tuesday, June 17, 2014 11:15:56 AM UTC-4, ste...@mpeforth.com wrote: > > Is there any implementation that offers a canvas for drawing at the style of the old DOS QBasic ? > > > > It's more in the style of the Borland Turbo system, but the GTK+ interface for VFX Forth for Windows, Linux and Mac is present in all versions, has examples and is documented. > > > > See: > > http://www.mpeforth.com/vfxwin.htm > > > > Regards, Stephen
[toc] | [prev] | [next] | [standalone]
| From | stephenXXX@mpeforth.com (Stephen Pelc) |
|---|---|
| Date | 2014-06-19 09:05 +0000 |
| Message-ID | <53a2a78b.24313395@news.demon.co.uk> |
| In reply to | #31614 |
On Tue, 17 Jun 2014 10:25:08 -0700 (PDT), Roger Levy <roger.levy@gmail.com> wrote: >I wrote the graphics wordset for that. :) Indeed you did, and very well too. Stephen -- Stephen Pelc, stephenXXX@mpeforth.com MicroProcessor Engineering Ltd - More Real, Less Time 133 Hill Lane, Southampton SO15 5AF, England tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691 web: http://www.mpeforth.com - free VFX Forth downloads
[toc] | [prev] | [next] | [standalone]
| From | Mark Wills <markwills1970@gmail.com> |
|---|---|
| Date | 2014-06-20 01:29 -0700 |
| Message-ID | <5e6f359f-21ea-401e-8eb3-5b2e5dc557cd@googlegroups.com> |
| In reply to | #31611 |
Where's the docs for the GTK+ interface? I have the evaluation version installed, and I haven't seen any docs. Are the docs only available in the full version? If so fair enough. A cross-platform graphics oriented system that isn't Java is very attractive, to me at least. Nothing against Java in particular, it's just that it's rather on the bloated side.
[toc] | [prev] | [next] | [standalone]
| From | Antoni Gual Via <antonigualvia@gmail.com> |
|---|---|
| Date | 2014-06-20 01:45 -0700 |
| Message-ID | <49b3afb7-42e0-44f1-abd4-b1b832bb1e93@googlegroups.com> |
| In reply to | #31688 |
El divendres 20 de juny de 2014 10:29:33 UTC+2, Mark Wills va escriure: > Where's the docs for the GTK+ interface? I have the evaluation version installed, and I haven't seen any docs. Are the docs only available in the full version? If so fair enough. A cross-platform graphics oriented system that isn't Java is very attractive, to me at least. Nothing against Java in particular, it's just that it's rather on the bloated side. Mark Is your answer to mine about Tinyptc? If yes tinyptc is just a wrapper to the windows GDI message loop. It was designed to ease the switch to Windows for graphical demo programmers used to DOS. Tinyptc has only three functions, open, close and doevents. If you want to draw to it you just set bits in a memory buffer. Antonio
[toc] | [prev] | [next] | [standalone]
| From | Mark Wills <markwills1970@gmail.com> |
|---|---|
| Date | 2014-06-20 02:07 -0700 |
| Message-ID | <41582443-6f59-41e2-ad16-ce02352abb7f@googlegroups.com> |
| In reply to | #31689 |
Hi Antonio No, I was referring to the VFX system :-) Mark
[toc] | [prev] | [next] | [standalone]
| From | stephenXXX@mpeforth.com (Stephen Pelc) |
|---|---|
| Date | 2014-06-20 09:19 +0000 |
| Message-ID | <53a3fc34.111521947@news.demon.co.uk> |
| In reply to | #31688 |
On Fri, 20 Jun 2014 01:29:33 -0700 (PDT), Mark Wills <markwills1970@gmail.com> wrote: >Where's the docs for the GTK+ interface? I have the evaluation version inst= >alled, and I haven't seen any docs. Are the docs only available in the full= > version? If so fair enough. A cross-platform graphics oriented system that= > isn't Java is very attractive, to me at least. Nothing against Java in par= >ticular, it's just that it's rather on the bloated side. The docs are in the source code! You could always build a DocGen control file to produce a nice PDF manual. Or you could just wait for us to do it. Stephen -- Stephen Pelc, stephenXXX@mpeforth.com MicroProcessor Engineering Ltd - More Real, Less Time 133 Hill Lane, Southampton SO15 5AF, England tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691 web: http://www.mpeforth.com - free VFX Forth downloads
[toc] | [prev] | [next] | [standalone]
| From | mhx@iae.nl |
|---|---|
| Date | 2014-06-17 12:19 -0700 |
| Message-ID | <38faec15-72b0-4643-9700-03b92e616aed@googlegroups.com> |
| In reply to | #31591 |
On Monday, June 16, 2014 1:07:24 PM UTC+2, Antoni Gual Via wrote: [..] > I don't want to have to access the windows API and don't need > to be able to add a GUI to my programs. I just need to open ane > empty window and set the color of pixels on it. (Puts on flameproof underwear) Here is the Forth way, which does EXACTLY what you asked. Learn a few postscript words, write your commands to a .ps file, and click on it with your mouse (outside Forth of course). It will open in a new window with very high quality :-) Or look up one of the bitmap binary formats (bmp, xbm, png, ...). It's simpler because you don't need to learn postscript (but it will look uglier). I think Anton Ertl once showed the ps trick for the travelling salesman problem (or something, maybe he'll tell you). Should be on his Forth repository. This is even simpler because you reuse existing code (oeps, burning oil, that hurt). -marcel
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2014-06-17 18:21 -0400 |
| Message-ID | <lnqf1e$tgt$1@dont-email.me> |
| In reply to | #31591 |
On 6/16/2014 7:07 AM, Antoni Gual Via wrote: I would be happy finding an easy way to send text to a second window as a scrolling display. This is to show two way comms and I need to have multiple colors to show the two directions and distinguish error conditions. I haven't figured out how to do this in Win32Forth as yet. I'd be happy to give Gforth a try if it has some built in words for this. I realize this is all done with Windows calls and I did windows programming many moons ago. But I haven't figured out the translation between windows programming and doing it under Forth as yet. -- Rick
[toc] | [prev] | [next] | [standalone]
| From | Howerd <howerdo@yahoo.co.uk> |
|---|---|
| Date | 2014-06-18 00:57 -0700 |
| Message-ID | <9e1b4728-616e-405a-a29e-31d3677e8e59@googlegroups.com> |
| In reply to | #31616 |
Hi Rick, I think I came across the same problem some time ago - how to emulate the old DOS text display ( even bytes data, odd bytes attribute ) under Windows. Its a strange type of "progress" when what used to be trivial under DOS is now extremely difficult under Windows... There is a similar problem with metadata in files : the Windows way is that Windows handles all metadata ( filename, data, read/write attributes etc... ), which effectively ties you in to Windows. I have been trying to find an elegant way to save two byte streams (i.e. colour metadata) in a file. It appears to be a non-trivial problem. Best regards, Howerd On Tuesday, 17 June 2014 23:21:25 UTC+1, rickman wrote: > On 6/16/2014 7:07 AM, Antoni Gual Via wrote: > > > > I would be happy finding an easy way to send text to a second window as > > a scrolling display. This is to show two way comms and I need to have > > multiple colors to show the two directions and distinguish error > > conditions. I haven't figured out how to do this in Win32Forth as yet. > > I'd be happy to give Gforth a try if it has some built in words for > > this. > > > > I realize this is all done with Windows calls and I did windows > > programming many moons ago. But I haven't figured out the translation > > between windows programming and doing it under Forth as yet. > > > > -- > > > > Rick
[toc] | [prev] | [next] | [standalone]
| From | Antoni Gual Via <antonigualvia@gmail.com> |
|---|---|
| Date | 2014-06-19 22:36 -0700 |
| Message-ID | <eab617f3-d648-48e4-8102-4eca1412e92d@googlegroups.com> |
| In reply to | #31591 |
El dilluns 16 de juny de 2014 13:07:24 UTC+2, Antoni Gual Via va escriure: > Hi > > I program for hobby and I'm just starting with Gforth. Forth is a different and interesting language! > > Is there any implementation that offers a canvas for drawing at the style of the old DOS QBasic ? > > I don't want to have to access the windows API and don't need to be able to add a GUI to my programs. I just need to open ane empty window and set the color of pixels on it. > > Does it exist? > > Kind regards > > Antonio About the drawing canvas in Windows perhaps a simple C library as TinyPTC could be linked in some way. http://sourceforge.net/projects/tinyptc/ Antonio
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.forth
csiph-web