Lib_displaysize -       .

            .

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

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

  :

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)