* New post Constructor Destructor and Inheritance& Array , Virtual base class in c++ language

Saturday, 2 March 2013

0 BUTTON ,CHECKBOX, RADIO BUTTON,PANELS,GROUP BOXES

BUTTON,CHECKBOX,RADIO BUTTON,PANELS,GROUP BOXES

  1. BUTTON= Button are plain control that you simply click and release , the button you see everywhere in vb application _ usually just round rectangular ,gray button,with a caption ,as you see in the button.
                          The button provide the most  popular way of creating and handling an events in the code .Button can be clicked with the mouse or with the enter key if the mouse has focus.
            You can also change the button 's apperance ,giving it an image or alignment text and images in it as you like . you can even -make it look flat for a "web" look,stting the flatstyle property to flatstyle .flat. 
                                 BUTTON PROPERTIES 

  • DialogResult= Sets the value returned to the parents form when the button is clicked .Often used when you are creating dialog boxes
  • FLATSTYLE= Sets a flat style appearance.
  • IMAGE= Sets an image displayed in a button.
  • IMAGEALIGN=Sets the alignment of the image in a button.
  • IMAGE LIST= Sets the image list index value of an image displayed in the button.
  • TEXTALIGN= Sets the alignment of the text in the button.
                                         TO CREATE BUTTON FOR CODING 


SIZE= NEW SIZE(1000,1000)
LOCATION= New point(0,0)
button1.size= new size(50,50)
button2.size=new size(50,50)
button3.size=new size=(50,50)
button1.location=new point(100,100)
button2.location=new point(100,100)
button3.location= new point(100,100)
button1.text="1"
button2.text="2"
button3.text="3"
                                    CHECKBOXES CONTROL
Checkboxes control are familiar control ,you click a checkbox to select it, and click it again to deselect it,you can use a checkbox  to give an option ,such as true/false or yes/no.The checkbox control can display an image or text or both. you can use the apperance property to specify if the checkbox appears as a typical checkbox or as a button .And the flatstyle property determines the style and apperance of the control .If the flatstyle property is set to flatstyle.system, the user operating system sets the apperance of the control.
                                      CHECKBOX PROPERTIES 

  • APPEARANCE= The appearance of the checkbox.
  • CHECKALIGN= Sets , the horizontal and vertical alignment of a checkbox in a control.
  • CHECKED= Sets a value indicating if the checkbox is in the checked state.
  • FLAT STYLE= Sets the flat style appearance of the checkbox.
  • AUTOCHECK= Specifies if the checked or checkstate values and the checkbox 's appearance are automatically changed when the checkbox is clicked.
  • IMAGE= Sets the image i.e displayed in a checkbox.
  • IMAGEALIGN= Sets the alignment of the image on the chckbox.

                                     CHECKBOX EVENTS
  • APPEARANCE  CHANGED= Occurs , when the appearance property changed.
  • CHECKED CHANGED = Occurs ,when the checked property changed
  • CHECK STATE CHANGED=Occurs, when the checkstate property changed.
                       CREATING THREE -STATE CHECKBOXES

You can use the checkstate property to get the value of the three -state checkbox. The three states are:

  1. CHECKED=A check appearance in the checkbox.
  2. UNCHECKED=No check appears in the checkbox.
  3. INDETERMINATE= A check appears in the checkbox on a gray background .
                                            CODING FOR CHECKBOX

  • CHECKBOX1.CHECKED=TRUE
  • CHECKBOX2.CHECKED= FALSE


                                               RADIO BUTTON 
Radio button are also called option button ,are similar to the checkboxes ,we can select and deselect .Radio button are intended to work in group , when we select one radio button in a group , the other are automatically deselected them- expects for two thing : they are round where  checkbox are square ,and you usually use radio button together in groups.
In facts that's the functional difference between checkboxes and radio buttons- checkboxes can wark independently , but button are intended to work in group.When you selects one radio button in a group ,the other automatically deselected. 
                       RADIO BUTTON PROPERTIES
  • APPEARANCEThe appearance of the radiobutton.   
  • CHECKED= Sets a value indicating whether the checked value and the appearance of the /control automatically change when the radio button is clicked  
  • FLAT STYLESets the flat style appearance of the radio button.    
  • IMAGE= Sets an image displayed in a button.
  • IMAGEALIGN=Sets the alignment of the image in a button.
  • TEXTALIGN   = Sets the alignment of the text in a radio button.     
                   RADIOBUTTON  EVENTS
  • APPEARANCE  CHANGED= Occurs , when the appearance property changed.
  • CHECKED CHANGED = Occurs ,when the checked property changed
                             CODING USE FOR RADIO BUTTON


  • RADIOBUTTON1.CHECKED = TRUE
  • RADIOBUTTON2.CHECKED= FALSE

                          PANELS
You can also panels to group other controls , usually to divide a form region by function . By default , panels do not have borders ,You can set borderstyle to none , fixed single, or fixed 3D.
you can use grouping controls such as panels and group controls to make it clear which controls are associated _  and it makes it easier to handle group controls  at design time too, because when you move a panels , all the controls it contain are moved as well.The panels control is similar to the groups box controls ;however ,only the panels control can have scrolls bars , and only the groups box controls displays a caption . To display scroll bars , you set the autoscroll property to true . besides using the border style property to customize a panels , you also can use the back color and backgroundimage properties.

                             PANELS PROPERTIES

  • AUTOSCROLL= Specifies if the panels will display scroll bars if needed.
  • AUTOSCROLLMARGIN= Sets the size of the auto-scroll margin .
  • AUTOSCROLLSIZE= Sets the minimum size of the auto-scroll
  • AUTOSCROLLPOSITION=Sets the location of the auto-scroll position.
  • DOCKPADDING= Sets the dock padding setting for all edges of the control.



0 comments:

Post a Comment

 

PROGRAMMINGqueen Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates

Blogger Widgets