| Electronic Components Datasheet Search |
|
AN3128 Datasheet(PDF) 31 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3128 Datasheet(HTML) 31 Page - STMicroelectronics |
|
31 / 105 page ![]() AN3128 Multi-input embedded GUI library firmware Doc ID 16918 Rev 5 31/105 Example: GL_ErrStatus errStatus; /* Declares and initiates a Page Object */ GL_Page_TypeDef page1; Create_PageObj( &page1 ); /* Declare and initiate a ComboBoxGroup with its ComboOptions Object and add it with specified coordinates to a Page Object */ GL_PageControls _TypeDef* MyComboGrp = NewComboBoxGrp("MyComboGrp"); AddComboOption (MyComboGrp ->objPTR, "Option1", MyComboboxFunc); AddComboOption (MyComboGrp ->objPTR, "Option2", MyComboboxFunc); AddComboOption (MyComboGrp ->objPTR, "Option3", MyComboboxFunc); AddComboOption (MyComboGrp ->objPTR, "Option4", MyComboboxFunc); AddPageControlObj((uint16_t)((LCD_Width/10)*8),(uint8_t)(LCD_Height/2),MyComboGrp, &page1); Once a ComboBoxGrp object and its combo option instances are created using the NewComboBoxGrp and AddComboOption functions, ComboBoxGrp and combo option objects themselves provide all their features through their internal function pointers. Figure 14, 15, 16, show, in detail, the ComboBoxOption object properties and methods which the final application can use to interact with. 4.1.10 NewSlidebar API global function This kind of object is composed of a rectangular shaped 3D image and a thin cursor that can be moved using the joystick or touchscreen pressing the cursor itself laterally. The variance is established in a percentage from 0 to 100, and the minimum step is fixed at 5%. A typical example of the application of this object could be the volume variation of the audio output in an MP3 player. It is possible to read the current value of the cursor position through the function “Get_SlidebarValue” defined in the following pages, therefore easily integrating such an object in the application. The slidebar can be chosen to be printed horizontally or vertically, as shown in Figure 11. Figure 11. Slidebar graphical object Required preconditions NewComboBoxGrp must have been called before Called functions No API/HAL layer functions Table 14. AddComboOption API function (continued) Name Description |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |