Jump to content

GUI enabling/disabling of controls: Difference between revisions

m
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.
 
Note:2) For alternative UI toolkits, check github.com/vlang/awesome-v (Awesome V).
 
<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
}
291

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.