Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
Hello, I have a customer who is migrating s/w to the X environment. They are programming in Xlib (rather than UIL) and have encountered a difficulty. The problem is they want to build a scoll widget in which to display up to 10,000 lines of text. Each row is displayed in 4 columns, with precise alignment. The text in each column is proportionally spaced. Creating 4 labels (1 per column) works but there's a large overhead every time the scroll widget is updated. Is there a better way of doing this? Ideally they'd like a single label with the ability to tab to column positions. Does anyone know if you can do this? Thanks for your help
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
3655.1 | try XDrawText | OXNARD::KLEE | Ken Lee | Tue Nov 13 1990 21:31 | 6 |
Look at XDrawText and XDrawText16. They allow you to do horizontal shifts and font changes within single X protocol requests. You do have to calculate the shifts yourself, however, tab stops are not supported. Ken | |||||
3655.2 | DSSDEV::BIBEAULT | Grizzly Bear | Wed Nov 14 1990 08:40 | 11 | |
> They are programming in Xlib ... > Creating 4 labels ... These two statements seem contradictory. How can they create labels if they are programming in Xlib? I suspect that you meant that they are not using UIL but creating toolkit widgets directly from program control? Any answers to your questions will be very differrent depending upon whether the customer is really using Xlib directly, or using the toolkit... -mike | |||||
3655.3 | try the VList widget | LOWELL::KLEIN | Wed Nov 14 1990 11:21 | 7 | |
The VList widget can handle your requirements (10,000 lines, 4 columns, proportional text, scrolling window). It is built on top of the XT toolkit intrinsics. If you are interested, send me mail for a pointer to the VToolkit sources. -steve- |