Order of the Butterfly
Posts: 306 from 2005/3/27
From: Poland, Zdzies...
I tried to make a simple digital clock using MUI window, but the result has a strange issue. The method SetAsString, which updates the text gadget displaying clock digits, stops updating right after I deactivate the window and remove the mouse pointer from over the window.
Below is part of the loop.
Code:
while (running)
{
time(&ptr_sec); //// gets data for digital clock
h = localtime(&ptr_sec)->tm_hour;
m = localtime(&ptr_sec)->tm_min;
s = localtime(&ptr_sec)->tm_sec;
DoMethod(tx_clock, MUIM_SetAsString, MUIA_Text_Contents, "%02d:%02d:%02d", h, m, s);
Mac mini G4@1,5GHz silent upgrade + Xerox Phaser 3140 + EPSON Perfection 1240U
Commodore C64C + 2 x 1541II + Datasette + SD-Box
I miss draggable screens... and do you? I know I'm in a minority unfortunately.