Sponsored Content
Special Forums UNIX Desktop Questions & Answers Xaw3d asciiTextWidget: how to scroll right without scrollbar Post 302545747 by Bibi Monash on Tuesday 9th of August 2011 11:07:03 AM
Old 08-09-2011
MySQL Xaw3d asciiTextWidget: how to scroll right without scrollbar

this is kinda solved
Hi


I need to program an ordinary text field which scrolls to the right when it gets filled. It must be in Xaw3d. I cannot get the asciiTextWidget to do it.

Which resource do you need to set in asciiTextWidget to allow the widget to scroll to the right when typing text in it (without showing the scrollbar: like in the address bar in firefox, or in any other text field in the world)?

In asciiTextWidget, when i fill a (one-line) text widget, the last typed characters become invisible. This is what also happens in eg. the xfig application,and is not what I want.
However,in the xfm file manager popups (like 'install' from the application window), the text scrolls to the right, hiding the letters on the left side. I cannot find anything in the app-defaults which causes this behavior. When I compile xfm myself, it does not allow this scrolling, but xfm from my (Linux abd BSD) distributions does, so I think it must be in the resources somewhere.

Looking it up, in xfm source code, the function call is in createPopupQuestions(). When I try this same function with the text_args from the same source, I still do not get the behavior I need
Code:
static Arg text_args[] = {
  { XtNfromHoriz, (XtArgVal) NULL },
  { XtNfromVert, (XtArgVal) NULL },
  { XtNstring, (XtArgVal) "Text which needs to be scrolled"},
  { XtNlength, (XtArgVal)15   },
  { XtNwidth, (XtArgVal) 200  },
  { XtNtop, XtChainTop },
  { XtNbottom, XtChainTop },
  { XtNleft, XtChainLeft },
  { XtNright, XtChainRight },
  { XtNeditType, XawtextEdit },
  { XtNtype, XawAsciiString },
};



 vert=XtCreateManagedWidget("text", \
       asciiTextWidgetClass, form_widget,text_args , XtNumber(text_args ));

Thanx for any tips

Last edited by Bibi Monash; 08-15-2011 at 07:49 PM.. Reason: solved
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

missing scrollbar

Hi, My tcsh window doesn't have a scrollbar, so I don't get a lot of history! Can you help to get scrollbar? Thanks (3 Replies)
Discussion started by: parisa_3456
3 Replies

2. Solaris

right scrollbar on xterm

I'm using exceed on a Windows PC to open a xterm to my SunOs 5.8 system. Everything works fine except for one thing, I can't have my scrollbar on the right side of the xterm windows. Here's a copy of my .Xdefaults file: # xterm xterm*loginShell: True xterm*background: black... (3 Replies)
Discussion started by: ce9888
3 Replies

3. AIX

aixterm scroll?

on a AIX sys i have been trying to get the mouse scroll wheel to page the terminal for about 2 yrs now on aixterm. any ideas. the below syntax does not work in aixterm but does work in xterm. ------------------------- this does not work in aixterm but does work in xterm,, with a cat Xdefult |... (2 Replies)
Discussion started by: nullwhat
2 Replies

4. UNIX for Advanced & Expert Users

xterm scrollbar issue

I have a xterm window opening from my Java code. This xterm is opened from the code in this manner: // to run shell command in a xterm window public synchronized void rshd(String title, String commd) { String xt = "xterm -sb -T "; String xtm = xt + title + " -e " + commd; Runtime run =... (0 Replies)
Discussion started by: vanz
0 Replies

5. UNIX for Dummies Questions & Answers

Problem with xterm scrollbar

I have a xterm window opening from my Java code. This xterm is opened from the code in this manner: // to run shell command in a xterm window public synchronized void rshd(String title, String commd) { String xt = "xterm -sb -T "; String xtm = xt + title + " -e " + commd; Runtime run =... (1 Reply)
Discussion started by: vanz
1 Replies

6. Shell Programming and Scripting

Scrollbar in email

Hi, I am sending a text file through email as email-body. This file is having records which have width more than a page. When i recieve the email, i can see no scrollbar in the email. So its not easy to read the mail as multiple pages are shrinked into one page. I want to have horizontal... (1 Reply)
Discussion started by: srilaxmi
1 Replies

7. AIX

Enable scrollbar on all aixterm windows ?

There is this workstations that I sometimes work on and it annoys me because it does not have any vertical scrollbar enabled. I did a Google on activating scroll bar but they talk about escape sequences that I have no clue on how to do this: CSI ? P m h DEC Private Mode Set... (2 Replies)
Discussion started by: Browser_ice
2 Replies

8. What is on Your Mind?

Man Pages - Removed Table Tags and Fixed Scrollbar Issue

OK. I fixed the horizonal scroll bar issues in the man pages pre format output for the man pages by removing all table tags and converting to divs: https://www.unix.com/members/1-albums220-picture876.png I still have some work to do on reformatting the deep search redirects and the... (0 Replies)
Discussion started by: Neo
0 Replies
NAME(1) 						      General Commands Manual							   NAME(1)

NAME
ticker - scroll messages across the screen SYNOPSIS
ticker [options] [message] DESCRIPTION
ticker is a program that continually scrolls a given message across the screen. There is also an interface to allow other programs to change the message. KEYS
+, [up arrow] Increase scroll speed. -, [down arrw] Decrease scroll speed. [space] Pause. Press any key to unpause. OPTIONS
-h, --help Show summary of options. -u, --upper Scroll text on the top line of the screen. (Default) -l, --lower Scroll text on the bottom line of the screen. -fcolor, --foreground=color Use the specified color as the forground color of the text that is scrolled. The colors that may be used are: black gray red brightred green brightgreen brown yellow blue brightblue magenta brightmagenta cyan brightcyan lightgray white -bcolor, --background=color Use the specified color as the background color of the text that is scrolled. On most terminals, the background color can only be one of the colors listed in the first column above. -dsecs, --delay=secs Number of seconds delay between updates of the display. This controls how fast the text scrolls. You may use decimals to specify faster scroll speeds. The default delay is 1 second; I find 0.1 more pleasing. -snum, --sysv=num Read messages to display from the sysv shared memory segment with an id of num. This is only for use by other programs that need to be able to change the text ticker displays. -Snum, --size=num Size of the shared memory segment to read, when using shared memory communication with another program. Default is 80 characters. -csecs, --check=secs Minimum time between checks of the shared memory segment for a new message. Default is every second. It may in fact check consider- ably less often, as it only checks for a new message once per time that the current message scrolls around the screen. message The message to scroll. Required unless -s is used, in which case it is optional. NOTES
To use the other 23 or so lines of your screen for something useful while the ticker is running, you might want to use splitvt(1) AUTHOR
Joey Hess <joey@kitenet.net> NAME(1)
All times are GMT -4. The time now is 07:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy