[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

3655.0. "Scroll Widgets, tabs and proportional spacing" by WEODGE::TOMBLIN (Chris T. - NZO Ultrix Sales Support) Tue Nov 13 1990 21:11

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.RTitleUserPersonal
Name
DateLines
3655.1try XDrawTextOXNARD::KLEEKen LeeTue Nov 13 1990 21:316
    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.2DSSDEV::BIBEAULTGrizzly BearWed Nov 14 1990 08:4011
> 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.3try the VList widgetLOWELL::KLEINWed Nov 14 1990 11:217
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-