Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Need scrollable window in X11

Need scrollable window in X11
Thread Tools
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jan 25, 2004, 12:10 AM
 
I've got an X11 application the runs on the host at 1280 x 1024 resolution.

My problem is that I need to access it from a 15" G4 iMac and the maximum resolution on the system is 1024 x 768.

The X11 program will launch, but there are no scroll bars allowing me to get to the entire screen and the window itself doesn't scroll when I hit the edge of the screen.

Is there anything out there (for X11 or OS X itself), that will either put scroll bars on an X11 session or to allow a virtual window to emulate a 1280 x 1024 on a 1024 x 769 monitor. (I was thinking of something that works the same as if you zoomed in a Mac window [CMD-OPT-+] and then move your mouse to the edge of the screen....everything scrolls automatically if you are at any zoomed resolution). I remember old DOS/Windows programs that use to emulate a larger monitor display.

Can anyone help me out here?

Thanks!
     
PubGuy  (op)
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jan 28, 2004, 08:34 AM
 
Wow -- I thought for sure there would be a unix trick for doing this -- adding scroll bars to X11 when the server is generating pages larger than your remote display. -- Anybody know of such a thing?

     
PubGuy  (op)
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jan 29, 2004, 11:39 AM
 
Ok, maybe I didn't ask the question correctly.

I've been researching and it looks as if XFree86 contains a Section called "Section Screen" --> "SubSection Display" and that contains two entries: ViewPort and Virtual.

Seems as if the ViewPort can be set to 1024 x 768 and the Virtual be set to 1280 x 1024.

Does anyone know where to locate Apple's X11 config file? Can I just edit that directly to have the functionality added or does something need to be recompiled? If so, what do I need to do?
     
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Jan 30, 2004, 04:52 PM
 
Originally posted by PubGuy:
Ok, maybe I didn't ask the question correctly.

I've been researching and it looks as if XFree86 contains a Section called "Section Screen" --> "SubSection Display" and that contains two entries: ViewPort and Virtual.

Seems as if the ViewPort can be set to 1024 x 768 and the Virtual be set to 1280 x 1024.

Does anyone know where to locate Apple's X11 config file? Can I just edit that directly to have the functionality added or does something need to be recompiled? If so, what do I need to do?
Sorry getting back so late but I was part way through a reply before when I did and update and rebooted before sending :-(

Anyhow...
There are several ways to get your application to behave in X11. Most (if not all) X11 apps "obey" certain preferences. These prefs can be set on a per application basis. The prefs can define the app windows initial size and placement AND whether or not it uses scroll bars and where those scroll bars are placed and so on. Most of this is handled pretty much automatically by the window manager and the application. These options are usually set in the users .Xresources file (which may not exist in your home folder).

If you want to find out how the Xserver is configured on your system you can start the Xserver which should open an xterm. In the xterm type the command:

Code:
xdpyinfo | less
The output of that command will tell you all you need to know about how you Xserver is configured... and more.

On most Unix/Linux systems that use XFree86 that I have used the systemwide config file for the Xserver is in /etc/X11/XF86Config. On the system I am typing this reply on, a 17" iMac 1.25GHz G4 1G RAM Mac OS X v10.3.2, I installed the X package that came with 10.3.2. Apple appears not to use the config file I am used to. They DO have a file (/etc/X11/xserver/Xquartz.plist) but that may not be helpful.

After some digging around I found that there are quite a few manpages on X11. After reading some of those and digging around the system I am really no closer to helping you with your problem. However....
in /usr/X11R6 there is a README file with some links of where to get help specific to the Xserver. You might try looking in there.
-DU-...etc...
     
PubGuy  (op)
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Feb 1, 2004, 03:29 PM
 
utidjian:

Thanks for the reply. I'm not really sure what I'm doing here with X11, but it does look like the XF86config would contain the info, but Apple's X11 manager doesn't seem to use this file. I'm wondering if I installed something like OroborOSX (http://oroborosx.sourceforge.net/) if that would help any. I don't wnat to hose the machine with installing large system apps like that without knowing what I'm doing, but this X11 app I'm trying to run is designed explicitly for 1280 x 1024 and I can't get it to work on either the 1024 x 768 flat screen iMac G4 or the 1152 x 870 Powerbook screen. The main app will launch, but i can't scroll the window to get to the controls.

Like I said, I'm not realy sure what I'm doing here, so I need some wisdom from people that have a deeper understanding of this stuff than I do.

I appreciate your reply!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:51 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2