A kiválasztott változat és az aktuális verzió közötti különbségek a következők.
Előző változat mindkét oldalon Előző változat Következő változat | Előző változat Utolsó változat Következő változat mindkét oldalon | ||
oktatas:programozas:wxwidgets:wxwidgets_kezikoenyv:widgets_i [2020/08/26 09:37] admin [wxToggleButton] |
oktatas:programozas:wxwidgets:wxwidgets_kezikoenyv:widgets_i [2020/08/26 09:50] admin [wxSlider] |
||
---|---|---|---|
Sor 458: | Sor 458: | ||
===== wxStaticLine ===== | ===== wxStaticLine ===== | ||
- | + | Ez a widget egy egyszerű vonalat jelenít meg az ablakon. | |
- | + | Ez lehet vízszintes és függőleges. | |
- | This widget displays a simple line on the window. It can be horizontal or vertical. | + | |
<code cpp staticline.h> | <code cpp staticline.h> | ||
Sor 567: | Sor 566: | ||
+ | Az előző példában, megjelenítettünk közép-európai országokat és népességüket. | ||
+ | A wxStaticLine használata vizuálisan vonzóbbá teszi. | ||
- | In the previous example, we show Centreal European countries and their populations. The use of wxStaticLine makes it more visually attractive. | ||
<code cpp> | <code cpp> | ||
wxStaticLine *sl1 = new wxStaticLine(this, wxID_ANY, wxPoint(25, 50), | wxStaticLine *sl1 = new wxStaticLine(this, wxID_ANY, wxPoint(25, 50), | ||
Sor 574: | Sor 574: | ||
</code> | </code> | ||
- | Here we create a horizontal static line. It is 300px wide. The height is 1px. | + | Itt készítettünk egy vízszintes statikus vonalat. 300 pixel széles. |
- | + | A magassága 1 pixel. | |
- | wxStaticLine | + | |
- | + | ||
- | Figure: wxStaticLine | + | |
Sor 586: | Sor 583: | ||
A wxStaticText widget displays one or more lines of read-only text. | A wxStaticText widget displays one or more lines of read-only text. | ||
+ | |||
+ | A wxStatiText widget, csak olvasható szöveget jelenít meg egy vagy több sorban. | ||
Sor 652: | Sor 651: | ||
</code> | </code> | ||
+ | A példánkban, az Eminem Till I Collapse dalszövegének egy részét jelenítjük meg. | ||
+ | |||
- | In our example, we display a part of the Eminem's Till I Collapse lyrics on the window. | ||
<code cpp> | <code cpp> | ||
wxStaticText *st = new wxStaticText(panel, wxID_ANY, text, | wxStaticText *st = new wxStaticText(panel, wxID_ANY, text, | ||
Sor 660: | Sor 660: | ||
</code> | </code> | ||
- | Here we create the wxStaticText widget. The static text is aligned to the cetre. | + | Itt készítünk egy wxStaticText widgetet. A statikus szöveg középre van igazítva. |
- | + | ||
- | wxStaticText | + | |
- | + | ||
- | Figure: wxStaticText | + | |
===== wxSlider ===== | ===== wxSlider ===== | ||
- | + | A wxSlider egy fogantyúval rendelkező widget. | |
- | + | A fogantyú oda-vissza húzható. Így válaszhatunk | |
- | wxSlider is a widget that has a simple handle. This handle can be pulled back and forth. This way we are choosing a value for a specific task. Sometimes using a slider is more natural, than simply providing a number or using a spin control. | + | egy értéket, valamilyen feladathoz. |
+ | A csúszka használata néha természetesebb, mint | ||
+ | egy számokat megadni, vagy spin kontrollt használni. | ||
<code cpp Slider.h> | <code cpp Slider.h> |