Path: IIGS Toolbox/Hard to Believe!!!!!!!!!!!!!!!! Subj: Hard to Believe!!!!!!!!!!!!!!!!! 91-06-29 17:03:24 EST From: CecilFret Posted on: America Online I find it hard to believe that after I set up a window, it is difficult to perform the following simple operation. I want to send a simple string to the display. This string is text followed by whatever turns you on \r or \n in C language. Basically, I want to display the catalog of a disk in a window so once the display is done, I can scroll through it, find text, etc. The TEACH module on the CD ROM is practically worthless. There is another problem. All I have seen is proportional spacing, I need non-proporational so I can obtain a nice columnar display. Why does a powerful machine like the IIgs be lacking in this very fundamental operation!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Cecil Path: IIGS Toolbox/Hard to Believe!!!!!!!!!!!!!!!! Subj: Proportional Fonts 91-06-29 18:40:10 EST From: Damien9 Posted on: America Online Cecil, The only things the GS is lacking is support and speed. To set a font to be used as mono or proportional you need to set the font flags. An example of this is in the HodgePodge program in Programmer's Intro to the GS. If you don't have this, let me know, I'll look it up for you (I just moved, books are still boxed.) Jeff Path: IIGS Toolbox/Hard to Believe!!!!!!!!!!!!!!!! Subj: Perhaps..... 91-06-30 09:21:40 EST From: CecilFret Posted on: America Online I tried the set font flags in several places in my program. No luck. Hodge Podge, I will look at as a last resort. It was obviously written without debugging. I found places where a name had a lower case letter, in other places, upper case. I also have the DTS samples on ROM disk. Some of them don't work. One, I forget, calls saveDB and restoreDB. Not in the source code so I couldn't completely compile it. Cecil Path: IIGS Toolbox/Hard to Believe!!!!!!!!!!!!!!!! Subj: Use a different font... 91-07-01 23:56:39 EST From: A2Pro Tim Posted on: America Online Why not just use a mono-spaced font like Courier or Monaco instead of futzing with the font flags? It's a LOT easier... Set the current font for the window to the desired font (and size/style) and away you go. Details on how to do that from Pascal are part of the NDAs 102 or 201 (don't remember which off hand) article I did long ago for Call-A.P.P.L.E. Teach is of little value because it's designed to use a text edit field. HodgePodge is a much better choice for what you're trying to do and source for it comes with APW C (as well as with Programmers Intro). SaveDB and RestoreDB should be in the source for Hodge Podge that comes with APW C - if not, I'll see if I can find it laying around here. Those are old samples and the interfaces have changed many times since they were created. Nevertheless, I thought DTS updated the ones on the CD to work with the current interfaces. If the ones off of "Gorillas in the Disc" don't compile (using the interfaces found on that same CD), then let DTS know via AppleLink (i.e.: official channels and all that...). Tim S. Path: IIGS Toolbox/Hard to Believe!!!!!!!!!!!!!!!! Subj: Thanks, Tim. 91-07-02 19:26:40 EST From: CecilFret Posted on: America Online Thanks for your help Tim. Did I mention I was using ORCA/C? When I get a chance, I will look at your message in more detail. Perhaps next week, going out of town for the 4th. Cecil Path: IIGS Toolbox/Hard to Believe!!!!!!!!!!!!!!!! Subj: And Don't Forget ORCA's printf() 91-07-05 20:24:36 EST From: PatrickC19 Posted on: America Online Cecil... Don't forget that Mike route's his "stdin" and "stdout" to a window -- if you use his "startxxxx()" function calls. That way you can use printf() or puts() and write your text strings to the hi-res screen without much pain. I *was* able to kick the system font in mono-spaced (albeit a long time ago) so I know it works. Looked pretty awful. A nice alternative is a font called the "Programmer's Font", written by a friend of mine, R.Hess. It's almost identical to Shaston 8 but is mono-spaced and aestheticaly pleasing. Not sure where it is on AOL, but it's here somewhere. Oh yea -- it may also be in the SSSi library since it's the font they ship with Genesys -- with a *new* name. (ahem!) Patrick Path: IIGS Toolbox/Hard to Believe!!!!!!!!!!!!!!!! Subj: Thanks Patrick 91-07-06 13:18:20 EST From: CecilFret Posted on: America Online Mike Westerfield told me about the printf thing. For some reason, it did not work. It did not respect my widow and started writting on the top line of the screen. I also got the Programmers Font before I left to see my mother over the 4th. I have a back log of inCider/A+ stuff to do so it will be a couple of days before I can go back to my project. Thanx Cecil Path: IIGS Toolbox/Hard to Believe!!!!!!!!!!!!!!!! Subj: Cecil 91-07-06 16:16:59 EST From: AFL Floyd Posted on: America Online It sounds like you didn't set the port to point to your window before writing to it. Floyd Path: IIGS Toolbox/Hard to Believe!!!!!!!!!!!!!!!! Subj: Call SetPort() 91-07-11 20:41:58 EST From: PatrickC19 Posted on: America Online Cecil, I'll second Floyd's suggestion... I always sprinkle "SetPort()" calls liberally thru-out my code. Beat's looking in the Reference Manuals! :) Patrick