Re: Progress Bar status indicator
Posted: 16 Oct 2019 7:00
Martin,
I have changed a few things as I wanted to output a text message rather than, for example, the current time.
The first 10 characters of my message shows on the bottom toolbar where the timer used to show.
To achieve this I created a fact to store my message at a time that was convenient for my code, and then modified your "OnTimer" code as follows to retrieve the text message for display:
So, everything is ready except that the display area for the message is restricted to the length of the original timer display.
I have tried implicitly nominating the length of the text value and get a compile error:
e504 The expression has type '::string', which is incompatible with the type 'object' TaskWindow.pro TaskWindow\
Any hints to make the toolbar accept any text up to say 80 characters in length?
Regards,
Loffy
I have changed a few things as I wanted to output a text message rather than, for example, the current time.
The first 10 characters of my message shows on the bottom toolbar where the timer used to show.
To achieve this I created a fact to store my message at a time that was convenient for my code, and then modified your "OnTimer" code as follows to retrieve the text message for display:
Code: Select all
predicates
onTimer : window::timerListener.
clauses
onTimer(_Source, _TimerID) :-
% Now = time::now(),
getmessage(Text),
vpiToolbar::setValue(getVpiWindow(), resourceIdentifiers::idt_1, vpiToolbar::text_value(Text)),
!.
I have tried implicitly nominating the length of the text value and get a compile error:
e504 The expression has type '::string', which is incompatible with the type 'object' TaskWindow.pro TaskWindow\
Any hints to make the toolbar accept any text up to say 80 characters in length?
Regards,
Loffy