GUI enabling/disabling of controls: Difference between revisions
m
→{{header|V (Vlang)}}
Line 2,998:
Graphical
Notes:
Note: For alternative UI toolkits, check github.com/vlang/awesome-v (Awesome V)▼
1) "v install ui" to get, also to locally check source and examples.
<syntaxhighlight lang="Zig">
import ui
Line 3,007 ⟶ 3,012:
win_height = 40
)
[heap]
struct App {
Line 3,055 ⟶ 3,061:
fn (mut app App) btn_click_inc(mut btn ui.Button) {
if app.counter.int() > 10 {
btn.disabled = true
return
}
|