Jump to content

Recommended Posts

Posted

HI, Frarshad,

FIRST,My Englishis very pool,

I want to implement Autoscroll with UniMemo in WEB MODE,FOR example,show announcement to user,

i have test case: use a timmer,

-----------------------------------------------------------------------------

procedure TMainForm.UniTimer1Timer(Sender: TObject);

var

i:integer;

begin

i:=0;

if uniMemo_announce.Lines.Count=0 then uniMemo_announce.Lines:=Announce_str;

repeat

if uniMemo_announce.Lines.Count=1 then exit;

uniMemo_announce.Lines.Strings:=uniMemo_announce.Lines.Strings[i+1];

inc(i);

until i=uniMemo_announce.Lines.Count-1;

uniMemo_announce.Lines.Delete(i);

uniMemo_announce.Refresh;

end;

// PS:Announce_str IS A GLOBAL VARIABLE

-----------------------------------------------------------------------------------

COMPILE IS CORRECT;but no anything effect in runtime;

in the other case:

procedure TMainForm.UniTimer1Timer(Sender: TObject);

begin

unilabel1.caption:=datetimetostr(now);

end;

in runtime,this is effect that i need;

why?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...