mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponents: implement scroll functionality into CComponentsForm
CComponentsForm provides page scroll if found more than one pre defined page and is working with all derivated sub classes from CComponentsForm . Pages are defined with setPageNumber(0...n) in items (1st page = 0). The item page number property is defined in variable cc_page_number. The highest page number sets the count of pages inside container to required value. Thats compellingly! To show a page, we can use setCurrentPage(0...n ) and paintCurPage() or use directly paintPage(0...n). Note: global paint() will show the current page. Default page is 0 (as first). Use setCurrentPage(0...n) to change this before first call of paint(). Note: In CComponentsWindow class, these methods are applied to window body. For examples, take a look into CTestMenu
This commit is contained in:
@@ -42,9 +42,10 @@ Basic attributes and member functions for component sub classes
|
||||
|
||||
#include "cc_detailsline.h"
|
||||
|
||||
#include "cc_frm_scrollbar.h"
|
||||
#include "cc_frm.h"
|
||||
#include "cc_frm_button.h"
|
||||
#include "cc_frm_chain.h"
|
||||
#include "cc_frm_button.h"
|
||||
#include "cc_frm_clock.h"
|
||||
#include "cc_frm_ext_text.h"
|
||||
#include "cc_frm_header.h"
|
||||
|
Reference in New Issue
Block a user