How to Create a Grid Layout with Icons

Login to reply to this topic.
Wed, 2007-11-14 06:18
Joined: 2007-06-16
Forum posts: 52

Hi,

I am new to UIQ platform I have already created Listbox with row layout.But i am unable to create Grid lay out.

RESOURCE QIK_VIEW r_listbox_gridview_layout
        {
        pages = r_listbox_gridview_layout_pages;
        }

RESOURCE QIK_VIEW_PAGES r_listbox_gridview_layout_pages
{
        pages =
        {
                QIK_VIEW_PAGE
                {
                page_id = EListBoxGridViewPage;
                page_content = r_listbox_gridview_page_control;
                }
        };
}

RESOURCE QIK_CONTAINER_SETTINGS r_listbox_gridview_page_control
        {
        layout_manager_type = EQikGridLayoutManager;
        layout_manager = r_listbox_grid_layout_manager_default;
        controls =
                {
                QIK_CONTAINER_ITEM_CI_LI
                        {
                        unique_handle = EListBoxGridViewListCtrl;
                        type = EQikCtListBox;
                        control = r_listbox_gridview_listbox;
                        layout_data = r_listbox_grid_layout_data_fill;
                        }
                };
        }


RESOURCE QIK_LISTBOX r_listbox_gridview_listbox
        {
        layouts = { r_listbox_gridview_normal_layout_pair };
        }


RESOURCE QIK_LISTBOX_LAYOUT_PAIR r_listbox_gridview_normal_layout_pair
        {
        standard_normal_layout = EQikListBoxIconLine;
        }

//----------------------------------------------------
//--------------- GRID LAYOUT MANAGER -----------------
//----------------------------------------------------
RESOURCE QIK_GRID_LAYOUT_MANAGER r_listbox_grid_layout_manager_default
        {
       
        default_layout_data = QIK_GRID_LAYOUT_DATA {};
        }

//----------------------------------------------------
//----------------- GRID LAYOUT DATA ------------------
//----------------------------------------------------
RESOURCE QIK_GRID_LAYOUT_DATA r_listbox_grid_layout_data_fill
        {
       
        vertical_alignment = EQikLayoutVAlignFill;
        vertical_excess_grab_weight =1;
        }

This is the code which i am using in resource file.

I want to load the listbox items dynamically.For that which class i have to use in viewconstructL(). CQikListBox? or CQikListBoxGridView?

can u please help me If anybody knows about that and how to create grid view by using the class.

Thanks&Regards
vijay


ready to face

  • Login to reply to this topic.