Lib_displaysize -       .

            .

  getWidth  getHeight    ,     .          .
  ,  ,  nokia: n82, 5800, n97, n95 8gb, e66    -        . ..  ""  .    getWidth  getHeight            ,      .
    ,   .
       .

  4 :
init -  .      .  -    .
integer lastwidth -         is_resized( init,  is_resized   ).
integer lastheight -         is_resized( init,  is_resized   ).
integer is_resized - ,          is_resized(  ).  -   -  1.   0.

is_resized        200 .   - ,  ""        ,   ,  , "".        .



 nokia 5800, N97      S60 5-     ,    .         
Nokia-MIDlet-On-Screen-Keypad: no
  manifest.mf  jad-    .
         .



  :

Program testsize;
Uses displaysize;
Begin
	displaysize.init;    
	repeat
    setColor(255,255,255);
    FillRect(0, 0, lastwidth, lastheight); 
    setColor(0,0,0);
		DrawText('w '+lastwidth,20,20);
		DrawText('h '+lastheight,20,60);
		DrawRect(15,15,lastwidth-30,lastheight-30);
		if is_resized=1 then
		begin
			DrawText(' , 2 ',20,100);
			Repaint;
			delay(2000);
		end;		
		delay(100);
    Repaint;
  until false;
End.

http://forum.boolean.name/showthread.php?p=123189
:  (Bruteo)