Thread View: news.software.readers
1 messages
1 total messages
Started by Antonio 'Gandalf' Favata
Sat, 22 May 2004 05:14
[Dialog] New version of the Date column formatting script
Author: Antonio 'Gandalf' Favata
Date: Sat, 22 May 2004 05:14
Date: Sat, 22 May 2004 05:14
48 lines
2682 bytes
2682 bytes
New! Now even more customizable! :)
program OnArticleListPaint;
const
colDate = 3; //count your columns from left to right starting from 0
//and write here the number of the column with the date
dateFmt = 'dd/mm'; // refer to dialog.chm::/date_timeformatstrings.htm
timeFmt = 'hh:mm'; // refer to dialog.chm::/date_timeformatstrings.htm
todayStr = '(oggi)'; // "today" in your language and with your favourite formatting
invert = true; // set this to false if you don't want to invert date and time
function OnArticleListPaint(PaintString:widestring; ColumnIndex:integer):widestring;
var
fmt : String;
begin
if ColumnIndex = colDate then
begin
if DateToStr(StrToDateTime(PaintString)) = DateToStr(Now) then
fmt := '"'+todayStr+'"'
else
fmt := dateFmt;
if invert then
fmt := timeFmt + ' ' + fmt
else
fmt := fmt + ' ' + timeFmt;
PaintString := FormatDateTime(fmt, StrToDateTime(PaintString));
end;
result := PaintString;
end;
begin
end.
Feel free to use and/or put in Wiki [the older version is already there]
--
Fare Well! FIAG member | Free mail & news | 40tude Dialog v2.0.12.1
G www.fiag.it | www.x-planet.org | http://snurl.com/dialog
Mozilla (Suite, Firefox, Thunderbird): news:it-alt.comp.software.mozilla
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads