comparison gui/app.c @ 32761:3ceeb62a1125

Improve the readability of dynamic labels which scroll. If the text of a dynamic label to be displayed is wider than the given length, it will be scrolled. Currently such a label starts scrolling immediately after it is placed and - even more unpleasant - the start of the text is randomly somewhere within the specified space of the label. Both makes it hard to track and to read. Now such a dynamic label starts left-aligned and begins scrolling through the specified space only after a short delay (2.5 seconds). Every time the start of the text nears the left margin again during the scrolling process it will stop and everything starts all over again, i.e. scrolling after a short delay.
author ib
date Thu, 03 Feb 2011 14:44:46 +0000
parents 8fa2f43cb760
children 12ae3b893c59
comparison
equal deleted inserted replaced
32760:6b394b24f81c 32761:3ceeb62a1125
112 item->Bitmap.Image=NULL; 112 item->Bitmap.Image=NULL;
113 // --- 113 // ---
114 item->fontid=0; 114 item->fontid=0;
115 free(item->label); 115 free(item->label);
116 item->label=NULL; 116 item->label=NULL;
117 free(item->text);
118 item->text=NULL;
119 item->textwidth=0;
120 item->starttime=0;
121 item->last_x=0;
117 item->event=0; 122 item->event=0;
118 } 123 }
119 124
120 void appCopy( listItems * dest,listItems * source ) 125 void appCopy( listItems * dest,listItems * source )
121 { 126 {