Hello everyone,
I have started the study of the box_lib library. I have understood how to work with the text box and the checkbox, but I have a question with the optionbox component. In an optionbox group how can I determine which option is selected? That is, in the optionbox structure there is a dd flags field, which I do not know if I have to initialize, and which always has a value of 0. However visually the optionbox are painted correctly, I just need to know how I check if optionbox1 is active / checked or not. Greetings and thanks in advance.
[!] this was a bot that edited the message and inserted a spam link, dunkaist
Help with box_lib
-
Last edited by Ralph635 on Wed Jun 03, 2020 1:36 pm, edited 1 time in total.
Code: Select all
opt_gr1 dd opt1 ;opt1 - is checked
opt1 option_box opt_gr1, 115,28,6,12,0xd0d0ff, 0xff, 0x80ff,txt_circle,txt_circle.end-txt_circle
opt2 option_box opt_gr1, 115,46,6,12,0xd0d0ff, 0xff, 0x80ff,txt_rect,txt_rect.end-txt_rect
txt_circle: db 'Circle'
.end: db 0
txt_rect: db 'Rectangle'
.end: db 0
Who is online
Users browsing this forum: No registered users and 41 guests