🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #135321

Re: [Dialog] Beta 29 scripting changes?

#135321
From: Malu'
Date: Sun, 12 Oct 2003 18:42
50 lines
2618 bytes
Sun, 12 Oct 2003 18:04:09 GMT
 foxidrive ha scritto:

> All's well now, except for FormTest.ds under custom scripts which I don't recall adding,
> and as I know bugger all about dialog scripting I don't even know what it does!
> I receive "Failed when compiling [Error] (2:11): Unknown type 'Tform'

> Can someone enlighten me please?

It is an example script that shows in a little window if you have the
headers on or off.
I didn't get any compile error, but it didn't work well because the result
was always "Header are off!" even if they were on.
Then I found that "ShowHeadersAction" should be "ShowHeaders" and now it
works.
(BTW in English wouldn't be better to say "header_s_ are on" ?

Try to copy, paste and compile this: 

Program FormTest;
uses Forms, stdctrls;
var aform:TForm;
  aedit:TEdit;
  i:integer;
Begin
aform:=TForm.create(nil);
aedit:=TEdit.create(aform);
try
aedit.parent:=aform;
aedit.left:=(aform.width-aedit.width) div 2;
aedit.top:=(aform.height-aedit.height) div 2;
if achecked('ShowHeaders')then 
  aedit.text:='Header are on!'
else 
  aedit.text:='Header are off!';
aform.showmodal;
finally
aedit.free;
aform.free;
end;
End.

Ciao,
-- 
Maria Luisa - 12/10/2003 20.29.50, here.
Good morning, doctors. I have taken the liberty
of removing Windows 95 from my hard drive.
HAL's first words contest winner, judged by A.C.Clarke.
Now playing: nothing
Technical Details
Message-ID: <1qx79je1otsjv$.dlg@ID-187316.user.uni-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!ppp-11-201.26-151.libero.IT!not-for-mail
References: <1h4gzg1fgh9sa$.qsmhxgdleefs.dlg@40tude.net> <1d31xd8eoxvh$.dlg@40tude.com> <1gdivln1orrm7.1jtcf60wi3j0g.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <1qx79je1otsjv$.dlg@ID-187316.user.uni-berlin.de>
Subject: Re: [Dialog] Beta 29 scripting changes?
Date: Sun, 12 Oct 2003 20:42:40 +0200
From: Malu' <maluc52@yahoo.it>
References: <1h4gzg1fgh9sa$.qsmhxgdleefs.dlg@40tude.net> <1d31xd8eoxvh$.dlg@40tude.com> <1gdivln1orrm7.1jtcf60wi3j0g.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!ppp-11-201.26-151.libero.IT!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 49
NNTP-Posting-Host: ppp-11-201.26-151.libero.it (151.26.201.11)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1065984166 21766971 151.26.201.11 (16 [187316])
X-Now-Playing: nothing
User-Agent: 40tude_Dialog/2.0.6.1 (b86b78b0.211.318)
X-Face: (O6iue.kQNT|`uU@vD|.WKC^TF~T<TIA,\;B'27kz>*1Mk|Z6U!2EKSFc')'xVk]t'/3<,# #L+5&I{L<!Q%p[k|+%mSCT"e2\4JnDJhbQ,`EA4fu$q0q>{7W?\gQeqD@*lzcR0~:9Zzn!1yCRb