.


:




:

































 

 

 

 


(Button)




, . Windows- (, ). ++Builder Click (), . , .

 

Button

Cancel . True. , Cancel (). Cancel = True <Esc> Click , .
Caption .
Default . Cancel, ( Enter).
Enabled . , , () . Enabled = False .

(Edit)

. Windows , , , , .

 

Edit

AutoSelect True, , , False .
AutoSize
BorderStyle Edit
CharCase , . ecNormal . ecLowerCase , ecUpperCase .
Color , Edit .
Enabled . , , Edit.
MaxLength ( )
ReadOnly , True ( False).
Text , Edit . Edit.

 

. : , . . (drag-and-drop) : , , . [3]:

 

Standard.

TListBox .

TEditBox.

TButton.

. Items ListBox1 (TStrings) . Caption Form1 Button1 (, , ). Text Edit1 ( ).

, .

.3. ListBox1 . .

 

 

 

3.

 

, true Sorted ListBox1 .

(Events), , .

. OnClick, Button1.

.4 , prev next .

 

 

.4.

 

ListBox1->Items->Append(prev) Append prev ListBox1. Edit1->Text = next next Edit1. count static, ButtonClick OnClick.

Run | Run , .

.

.5 . , if (i == 9).

 

 

 

.5.

 

, Open Source/Header File Unit1.h.

, Unit1.h .

Tutton . Caption .

 


.6. C++Builder

 

, , , TButton2 Unit1.h, OnClick Button2Click (.6). ++, .

. OnClick, .

 


.7. Unit1.cpp

 

.7 , , prev. , public ( .6 ). [3].

 

 

.8.

 

.8 . , .

 

 

 

1. Name Caption .

2. Button?

3. ?

4. ?

5. ?

6. Close().

7. ?

8. ?

9. , Windows Edit?

 





:


: 2015-10-01; !; : 2099 |


:

:

, , .
==> ...

1711 - | 1384 -


© 2015-2024 lektsii.org - -

: 0.018 .