Page 1 of 1

Help with box_lib

Posted: Mon May 25, 2020 10:22 am
by Ralph635
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

Re: Help with box_lib

Posted: Mon May 25, 2020 5:07 pm
by IgorA

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