I faced this problem & made up a kludgy solution that worked OK.
It's like this:

I developed my app on a 1280x1024 screen.  There was a little problem
that if I just displayed the windows on a smaller screen, they would be
chopped off on the right, in such a way that resizing the window wouldn't help.
So, the first step was to shrink the window from its designed size to
some smaller size that avoids truncation:
NB. Scale down to fit of RCHS 1024x768 screen
wd ; <@(<.@:(0.8&*)&.".^:([: *./ '0123456789 ' e.~ ])&.>&.;:);.2 STATUSMON

Next, find out how big the screen really is:
screensize =. _2 {.". wd'qm'

Now, a verb to scale font sizes according to the ratio between the actual 
screensize
and my 1280x1024 design size:
scalefont =: [ , ' ' , ';' ,~ [: ":  8 10 12 14 18 20 24 36 48 60 128 (I. { [) 
(1280 1024
<./@:%~ screensize) * ]

I set the font in every field, using a command like:
wd ; ([: < 'setfont ' , (' "Arial"' scalefont 24) ,~ >)"0 
'fmprevround';'fmcurrround' 

I think there's some way to set the form's default font and if someone knows it,
please say how.  You could use the method above to set that in a scaled version

Finally, I expand the (shrunken) form to the size I want, which is
almost full-screen:

wd'pmovex ',": , <. 0.02 0.96 */ screensize


Henry Rich


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of David Porter
> Sent: Thursday, January 31, 2008 8:19 PM
> To: J programming list
> Subject: [Jprogramming] Display resolution vs. GUI readability
> 
> Some time ago, I standardized on a screen of 1024 by 768 as a good 
> compromise between being my being able to read the type on the screen 
> and experiencing the highest resolution the monitor / video card was 
> capable of.  I am able to produce GUI applications using the J form 
> editor just fine. 
> 
> However, my client wants to put this on a laptop with a much higher 
> resolution.  This makes my form look tiny,  the type is almost 
> illegible, and the graphics cross hair cursor is easily overlooked.  
> I've checked out the info on Fontspec and the sentence:"You 
> may have to 
> experiment to find the best font for J boxes with your 
> particular host, 
> fonts, screen, and printer." 
> 
> I was just wondering if there were some general guidelines or general 
> procedures that make this experimentation less time consuming.
> 
> David Porter
> ----------------------------------------------------------------------
> For information about J forums see 
> http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to