.


:




:

































 

 

 

 





Label1, Edit, Label2, Button1 Button2 Standard .4.

Label Word Wrap , , . , WordWrap true, AutoSize false ( ) , . WordWrap true AutoSize false, , , .

OnClick Buttonl .

StrToInt(s) - s StrToFloat(s) s ( ). 4 .

: = (5: 9) * (F 32), - , a F -- .

, . FloatToStrF(n) IntToStr(k), n k . FloatToStrF(n,f,k,m) : f ; k ; m . : ffGeneral ; ffExponent ; ffFixed ; ffNumber ; ffCurrency . .

, , +, ().

.4

, TEdit .

OnKeyPress TEdit':

// Key

//

if ((Key >= '0') && (Key <= '9'))//

return;

else if ((Key == '.') || (Key == ','))

{

// DecimalSeparator - - , , .

if ((Edit1->Text).Pos(DecimalSeparator)!= 0)

Key = 0; //

else //

Key = DecimalSeparator;

return;

}

if (Key == VK_BACK)// <Backspace>

return;

if (Key == VK_RETURN)// <Enter>

{

Edit1->SetFocus();// : ;

return;

}

//

Key = 0;// ,

, Close(), .

VI





:


: 2016-03-27; !; : 608 |


:

:

! . .
==> ...

1678 - | 1466 -


© 2015-2024 lektsii.org - -

: 0.014 .