Search found 6 matches

by platy
Sun Jun 20, 2021 2:06 am
Forum: Coding Questions
Topic: How to refresh?
Replies: 14
Views: 2246

Re: How to refresh?

Thank you all for your contributions - much appreciated.
by platy
Thu Jun 17, 2021 9:05 pm
Forum: Coding Questions
Topic: How to refresh?
Replies: 14
Views: 2246

Re: How to refresh?

@Marcus:

Hmm - not so sure about your solution. As it stands, it works flawlessly or so it seems. The moment I add a WaitThread(), it hangs.

However, if I remove the GUI calls it works with WaitThread().
by platy
Thu Jun 17, 2021 5:33 pm
Forum: Coding Questions
Topic: How to refresh?
Replies: 14
Views: 2246

Re: How to refresh?

Like so:

EnableExplicit

Enumeration Gadgets
#CurWindow
#ButtonStart
#ListviewLog
EndEnumeration

#DateTimeFormat = "%yyyy-%mm-%dd %hh:%ii:%ss" ; ISO 8601

Procedure LogMessage(Msg.s)
AddGadgetItem(#ListviewLog, -1, FormatDate(#DateTimeFormat, Date()) + " " + Msg)
EndProcedure

Procedure ...
by platy
Wed Jun 16, 2021 8:05 pm
Forum: Coding Questions
Topic: How to refresh?
Replies: 14
Views: 2246

Re: How to refresh?

Oops, forgot to mention that my code runs in a callback proc (after a button click) so I cannot call WaitEvent/WaitWindowEvent in there ...
by platy
Wed Jun 16, 2021 7:13 pm
Forum: Coding Questions
Topic: How to refresh?
Replies: 14
Views: 2246

How to refresh?

Hi all,

I log messages to a listview gadget via AddItem(). When a time-consuming command immediately follows my log command (such as deleting a large dir tree via DeleteDirectory), the message(s) show up in the listview AFTER the time-consuming command finishes.

How do I get them to show up ...