Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bbn!bbn.com!fkittred From: fkittred@bbn.com (Fletcher Kittredge) Newsgroups: comp.sys.hp Subject: Starbase Question Keywords: Starbase, Scrolling dialog region Message-ID: <40983@bbn.COM> Date: 6 Jun 89 14:31:40 GMT Sender: news@bbn.COM Reply-To: fkittred@BBN.COM (Fletcher Kittredge) Followup-To: comp.sys.hp Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 65 I would like to write a Starbase application which works on hp2393a, hp2397a, hp2623a and hp2627a terminals. This application needs to have two screen regions: a graphics region and a scrolling dialog region The screen layout looks like this: ------------------------------------------- | | | Graphics Region | | | | | | | |-----------------------------------------| | Scrolling Dialog Region | | | ------------------------------------------- I have tried to set this up by calling gopen() on the device twice, each time storing the file descriptors. I then call set_p1_p2(), view_port(), and view_window() on each of the file descriptors, setting up two seperate windows, one with the coordinates of the graphics region, and one with the coordinates of the scrolling region. An outline of the code follows: if((graphics = gopen("/dev/screen/HP2397a", OUTDEV, "sox11", INIT |RESET_DEVICE)) == -1) ... if((scroll = gopen("/dev/screen/HP2397a", OUTDEV, "sox11", INIT |RESET_DEVICE)) == -1) { ... set_p1_p2(graphics, FRACTIONAL, 0.0, 0.5, 0.0, 1.0, 1.0, 0.0); view_port(graphics, ...); view_window(graphics, ...); ... set_p1_p2(scroll, FRACTIONAL, 0.0, 0.0, 0.0, 1.0, 0.5, 0.0); view_port(scroll, ...); view_window(scroll, ...); ... while(some_condition) append_text(scroll,....); I had hoped by setting up the two windows, I would get a scrolling region in the bottom window. However, text printed there does not seem to scroll. Is there any way to do this using Starbase? In general, Starbase text functions seem to be oriented towards labeling axes, etc. Are there any set of Starbase text i/o methods for dealing with applications which intermix graphics and text, similar to the C stdio functions? Does anyone out there know a solution to my problem? In general, are there any Starbase programming conventions on handling applications which use both dialog and graphics? thanks for any info, regards, fletcher Fletcher E. Kittredge fkittred@bbn.com