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

Tuesday, 12 March 2013

0 SPLITTERES,TRACKBARS, PICKERS

SPLITTERS, TRACKBARS,PICKERS

  • SPLITTERS=Splitters can be used to resizw the controls. splitters can wark easily . you can add a control to form and then dock it,next ,you add a splitters and dock it to the same side of the same container , that places the controls just before the splitters in the dockin order . when you run the program , the splitters as invisible until the mouse passes over it .As soon as  the mouse cursor passes over the splitters it changes , indicating that the controls can be resized .

SPLITTERS PROPERTIES

  1. BORDERSTYLE=Sets the splitters border type.
  2. MINEXTRA= Sets the minimum size of the container that does not display controls docked to the edge.
  3. MINSIZE= Sets the minimum size of the splitters target.
  4. SPLITPOSITION= Sets the current position of the splitters. 


SPLITTERS EVENT

  • SPLITTERSMOVED= Occurs , when the splitters has moved.
  • SPLITTERSMOVING= OCCURS AS THE SPLITTERS IS MOVING .

CREATING SPLITTERS CONTROLS
Splitters are simple controls and it can be easily to create . you can easily create a splitters . you can enable or disable the splitters with the enabled property ,set the cursor that apears with the splitters with the cursor property .you can also set the border  style to none (the default) ,fixed or fixed3d. also note that the minsize property specifies the minimum size of the control's.
when you run the splitters :example , you can use the splitters to resize the text box, note the cursor that is the vsplit cursor ,indicates that you can resize the related controls.

PICKERS 
Pickers are two types such as date -time pickers and month calendar controls. The date -time picker is the drop down list box at the top, and the month calender controls appears beneath it.

  1. DATE - TIME PICKERS = The date -time pickers is the drop down list box at the top. you can set a date -time pickers just by editing the displayed values in the controls ; If you click the arrow in the date -time pickers , it displays a month calender , just as a combo box would display a drop-down list ,you can make selection just by clicking the calender.You can limit the date - times that can be selected in a date- time pickers by setting the mindate and maxdate properties .And you can change the look of the calender part of the control by setting the calenderforecolor,calenderfont,        calendertitlebackcolor,calendertitle  forecolor etc and so on. 
  2. MONTH CALENDER CONTROLS= The month calender controls allows to select a date and time visually.You can limit the date and time that can be selected by setting the mindate and maxdate properties .When a new date is selected ,a dateselected events occur, and when the date is changed ,a datechanged events occur.because the user can use the mouse to select a range of dates ,you can use the month calender controls 's selectionrange property to determine that date or dates have been selected.The selectionRange  property return a selectionRange objects.This has two useful properties _ start and end that return DATETIME  objects corresponding to the start and end of the selected date . If you only one date has been selected , bith start and end will  points to that date .EXAMPLE ,The currently selected starting day in a month calender controls would be MONTHCALENDER1.SELECTIONRANGE.START.DAY
TRACK BARS= Track bar are very much like scroll bars but differ in apperance .Track bars look more like controls you might see on stereos_ you can see one at work .You can also configure trackbars with the TICKSTYLE property , that lets you determine how ticks are displayed ; this property can take values from the TICKSTYLE enumeration:

  • BOTH= Tick marks are located on both sides of the controls.
  • BOTTOMRIGHT= Tick marks are located on the bottom of a horizontal controls or on the right side of a vertical controls
  • NONE= No tick marks appear in the control.
  • TOPLEFT= Tick marks are located on the top of a horizontal controls or on the left of a vertical controls.
You can also set the tick frequency , that set the distance between ticks , with the TICKFREQUENCY property (the default is 1).















0 comments:

Post a Comment

 

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

Blogger Widgets