Here everyone.
So in the last video we are done with the canvas.
And in this video we are going to do check button and radio button.
So most of you have seen these kind of buttons where you need to click on that one and that particular
value that check.
This is known as a check button.
Most of the time you will click way by preparing your applications and the radio button is similar to
that one.
It is
maybe I have no need.
There it is.
So this is a radio button in radio button.
This is similar to the check button but you have multiple options and in check within you can select
as many number as you want but in radio button you can select only one at a time.
So that's the check with an Ontario button.
So that begin to learn that how we can create them.
So first of all we will begin with creating a check button creating a check button is very easy say
ACB is a check button.
You can simply create this one by adding the widget name check button.
And in that one you need to pass two variables.
First one is the common one that is where it is like this is going to be number window.
After that the text you want to display on that and say music.
And after that one.
And let me create two of this kind but just copy that one.
So after that one you require some own and all values like how the program can sense whether they put
on his ticket or not.
So Wendy Button is did you need to specify that the product is on on and you need to specify a value
for that for like 1 4 1 and 0 4 of these are the basic standard values we General Day for example and
you can provide any value to that one so all value.
You can also provide all value one and own value 0.
That is the inverse of that one but we will do the simple one that is all value zero and own value one
after that height and weight to Dedmon say height is equal to five and we're equal to in after that
one.
Here this one is created.
Now you do just need to do CB Dot.
Back
say this one and there's the terminal and I've done this one.
I will get this button.
Hey you can notice this one when I click this one and get it here.
You can add many number of buttons here as we have seen in the example the
there's only one in that one name.
This one do this one to and say next is equal to when you rested things we'll be seeing a food on that
one again here
David get it data.
Now why wouldn't I have it added here.
I need to show you something like when you click these buttons.
Hey I have this one and this one then this value either 0 or 1 need to be stored in a wedding but otherwise
how will program take that value.
So the previous ones are just only the buttons and the canvas in which we just create the figure on
defender.
But here we are taking an input.
The program will work on based on this input lag when the music is on it will show music when the video
is on it this will show videos.
But this is value so in the check button and radio buttons or we consistently did things in which we
are putting an input end of a program depends on that input.
So in that case is we required of red here.
So we create variable sets even for button fun and see to before but until in this case the value of
0 and 1.
So define these variables as input variable.
There we have this one.
Also this one is the into variable and now add another parameter here that is very able and passed the
value of that particular variable like I want to store my CB value in C1 and the same in this one.
Just seat so injured.
Button for every single button you need to have a different variable a device the values will be mixed
up.
So this is all about the check button.
That's how you can create a check button.
How you can put the 0 and 1 values and how you can provide that value to your variable.
So the dual program can create that value after that one.
We have did radio button so this one is also very easy and just like this one you need to do same things
like first.
I'm creating a variable so bad here.
Only one variable because only one value get ticked at a time so variable and provide this one of value
in red because this one is also going to be an integer.
And then the same thing.
So say our piece of a radio button at Arthur and that one just radio button knowing that one as usual
provide first division and the text.
So here Vin and text say option but they have this one after that provided variable because the value
is also needed to be stored of a variable is that after that one has only a one parameter that will
separate the radio buttons.
That is the.
Well you better.
You need to provide a well you said this one is option one.
So one after that one arm and or back to show this one.
And if you done this one right now
we have this one.
Here we go.
This option of picking the button but right now we have only one option.
So let us add some few more button so that you can see that change.
We had this one and change these into our two are two three and three option to Option Three variable
will remain same but not to value because the values defining them.
And David go with that.
Now if you run this one shift don't go.
So here we have the options the check returns.
You can check all of them at once if you want to but in radio button if you click one you can select
other two.
So as you can see of an isolated this one this disappear.
Now option 3 one disappear.
So this is a radio button.
One more thing.
If you do the value one or you can see all the values seen then in that case this can also be useful
when you are doing something in which only one command is required but there are no buttons in that
case if you select one value all the values will be selected at a time.
And the joke button is also same.
So this is a radio button and check button.
So thanks for watching.
This is all about this mode you can learn about this in the notes you will get all the options available
with Dedmon.
So things are watching soon the next video.