Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

I am trying to create a form with embedded Grid widget. To do so I followed the steps mentioned in 'IGridContainer' documentation. I could build the example but nothing was shown on my screen. Then I tried to set the GridContainer widget to the IForm object. Then also I could not see the grid.

Can anyone please help me creating and displaying grid widget/container?

Thanks,
Abhijit

Hi abhi
Grid and list widget are almost same, in grid u have to create instance of grid widget, then u need to arrange th icons in row&colom. u nee to give the each item width and height,then u have to add a listener for that grid wiget as like in list....
that it.index of grid item start with 0 ithink(not sure).....
vasuki

Hi abhi
Grid and list widget are almost same, in grid u have to create instance of grid widget, then u need to arrange th icons in row&colom. u nee to give the each item width and height,then u have to add a listener for that grid wiget as like in list....
that it.index of grid item start with 0 ithink(not sure).....
vasuki

Thanks for the reply Vasuki.
The problem I am facing is that I can see only white screen after doing all this excercise. I followed the procedure to create grid mentioned in AEEGridContainer.h and BREW_UI_Widgets_API_Reference.chm.
Does anyone have working example of Grid Container?
Thanks,
Abhijit

Thanks for the reply Vasuki.
The problem I am facing is that I can see only white screen after doing all this excercise. I followed the procedure to create grid mentioned in AEEGridContainer.h and BREW_UI_Widgets_API_Reference.chm.
Does anyone have working example of Grid Container?
Thanks,
Abhijit

HI abhi
I worked on BREW 2.x and i can able to show the icons(images )on the screen....
By pressing the avk_up r down r left r r right is the selection focus of the image is changing....if so check this
If u r using 3.x make sure that ur res file name is all small letter r not i think it does 't show the icons if the res file is having cap letters...
vasuki

HI abhi
I worked on BREW 2.x and i can able to show the icons(images )on the screen....
By pressing the avk_up r down r left r r right is the selection focus of the image is changing....if so check this
If u r using 3.x make sure that ur res file name is all small letter r not i think it does 't show the icons if the res file is having cap letters...
vasuki

No. I dont think it is related to CAPS or small letters. All letters are small. I think the IROOTCONTAINER or IGRIDCONTAINER is not getting displayed. Even I tried to have a canvas and then insert the GRIDCONTAINER widget. No luck.

No. I dont think it is related to CAPS or small letters. All letters are small. I think the IROOTCONTAINER or IGRIDCONTAINER is not getting displayed. Even I tried to have a canvas and then insert the GRIDCONTAINER widget. No luck.

Hi abhi :)
You must follow this steps in your program
1. Create IFORM instance
ISHELL_CreateInstance( pIShell, AEECLSID_FORM,
(void**)&pIFormInput );
2. Create IGridContainer instance
ISHELL_CreateInstance(piMyShell, AEECLSID_GRIDCONTAINER, &picMyGridContainer)
3. add widget into it what you need
4. get GridContainer widget.
IGRIDCONTAINER_QueryInterface(picMyGridContainer, AEEIID_WIDGET, (void**)& picMyGridContainerwidget );
5. and then set it in to IFORM you must use WID_FORM for this.
IFORM_SetWidget(pIFormInput,WID_FORM,
pIConstraintContainerWidget);
now I thinks your problem get solved. ;)

Hi abhi :)
You must follow this steps in your program
1. Create IFORM instance
ISHELL_CreateInstance( pIShell, AEECLSID_FORM,
(void**)&pIFormInput );
2. Create IGridContainer instance
ISHELL_CreateInstance(piMyShell, AEECLSID_GRIDCONTAINER, &picMyGridContainer)
3. add widget into it what you need
4. get GridContainer widget.
IGRIDCONTAINER_QueryInterface(picMyGridContainer, AEEIID_WIDGET, (void**)& picMyGridContainerwidget );
5. and then set it in to IFORM you must use WID_FORM for this.
IFORM_SetWidget(pIFormInput,WID_FORM,
pIConstraintContainerWidget);
now I thinks your problem get solved. ;)

Thanks Vishal :) ,
I did try this as well. I think I am seriously doing something wrong. Is it related to the way I add GridDescriptor objects in IGridContainer using IGRIDCONTAINER_SetGridDescriptors function.
Any idea?
Thanks again

Thanks Vishal :) ,
I did try this as well. I think I am seriously doing something wrong. Is it related to the way I add GridDescriptor objects in IGridContainer using IGRIDCONTAINER_SetGridDescriptors function.
Any idea?
Thanks again

Hi onlyabhi!!
I m also facing the same props in GRIDCONTAINER.
I cant able to see my images.
Its displaying the title widget and softkeys..
But, it vent dicpalyed the icon grid.
Ve u solved ur probs?
Could u tell me how did u solve this.
If nayone knows , please tell me...
Thanks in Advance!!!
By,
Karthikeyan.b

Hi onlyabhi!!
I m also facing the same props in GRIDCONTAINER.
I cant able to see my images.
Its displaying the title widget and softkeys..
But, it vent dicpalyed the icon grid.
Ve u solved ur probs?
Could u tell me how did u solve this.
If nayone knows , please tell me...
Thanks in Advance!!!
By,
Karthikeyan.b

Set the extent for the image widgets.. this should give you the desired output..

Set the extent for the image widgets.. this should give you the desired output..

Can some one provide me the sample code for a grid widget

Can some one provide me the sample code for a grid widget

See "sampletouchapp" example shipped with the BUIW installation.

See "sampletouchapp" example shipped with the BUIW installation.