SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
SI - Site Forums : Silicon Investor - Welcome New SI Members!

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Jeff Dryer who started this subject3/26/2003 2:34:52 PM
From: Joe Lyddon   of 32917
 
John, can you answer this question?

At the following site, the length of the Message Preview was nice and wide even forcing the line to wrap on my display (800x600)


Subject 7983

Reply . . Message Preview
27346 . . IRAQ BROADCASTS HALF-EATEN SANDWICH TO PROVE SADDAM IS STILL


Now, I come back to this Subject to find the Message Preview descriptions to be a lot shorter, no line word-wrap, and it appears that there's plenty of room to have a longer description.

Why?

I just noticed what could be a hint. . . The FROM column is as wide as the longest name and varies in length from screen to screen depending what is there. The Date/time string could also change ever so slightly in length depending on 1 or 2 digit Months, days, hours, minutes, or seconds.

It appears that the line should be built by:
(analyzing the longest of each of the following items for a given screen)

First, determine the total length of everything except the MsgPreview description; ie wrklen=len(reply#)+1+len(FROM)+1+len(DateTime)

Calculate the length that can be used for the MsgPreview data; ie
[LineMax = maximum of a line based on users' screen resolution setting]

MsgPreviewLen=LineMax-wrklen

Build the lines for the screen: ie
DispLine = reply#+" "+left(MsgPreview[MsgPreviewLen])+" "+FROM+" "+DateTime

Then display the data (DispLine).

Wouldn't that handle the problem and make everything more uniform?

I'm sorry to have written a pseudo-type program, but it was the easiest way I could think of and I think you can understand it. If you can't understand what I'm trying to say, I'm sorry.

Thank you,
Joe

Edit: I used a single space between data items. . . it should really be more like 3!
Joe
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext