Re: [NTLK] Avi's Backdrop

From: Paul Guyot (pguyot_at_kallisys.net)
Date: Mon Dec 16 2002 - 13:35:27 EST


À (At) 15:26 -0300 16/12/02, Helvecio Mafra écrivait (wrote) :
>Is there any way to have birthdays that are added to Dates to appear on
>the backdrop, or it only shows birthdays that were added to Names' field
>dates?

It only processes birthdays that are in the card file.
You can revert to the old method (Avi's), i.e. reading the Dates
application by adding a slot 'useBirthdaysAviMethod and setting it at
true to the preferences.

If you don't have a soup editor, you can do that with this NewtonScript code.

begin
        local frame thePrefs := GetAppPrefs('|Avi's Backdrop:AviD|, nil);
        if (thePrefs) then
        begin
                thePrefs.useBirthdaysAviMethod := true;
                EntryChangeXmit(thePrefs, '|Little script|);
                PlaySound(@102);
        end else GetRoot():Notify(3, "Little script", "Avi's BD prefs
couldn't be found");
end;

You can revert to the previous method like this:
begin
        local frame thePrefs := GetAppPrefs('|Avi's Backdrop:AviD|, nil);
        if (thePrefs) then
        begin
                RemoveSlot(thePrefs, 'useBirthdaysAviMethod);
                EntryChangeXmit(thePrefs, '|Little script|);
                PlaySound(@102);
        end else GetRoot():Notify(3, "Little script", "Avi's BD prefs
couldn't be found");
end;

This is untested.

Paul

-- 
NPDS: http://newton.kallisys.net:8080/
Apache: http://www.kallisys.com/

-- This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html Official Newton FAQ: http://www.chuma.org/newton/faq/



This archive was generated by hypermail 2.1.2 : Wed Jan 01 2003 - 10:02:34 EST