regarding displaying multiple controls | developer.brewmp.com regarding displaying multiple controls | developer.brewmp.com

Developer

regarding displaying multiple controls

hi all
i am working on 3.1.4
i want to display the control one by one something like setting list in symbian.
i managed to display the control upto the device screen width.
but after that the control goes out of screen.

how i could create such control list

any suggestion

thanks
ketan

Hi, ketan
if you are using a ListWidget for displaying the controls then wrap the ListWidget with ScrollWidget with the help of IDecorator.

Hi, ketan
if you are using a ListWidget for displaying the controls then wrap the ListWidget with ScrollWidget with the help of IDecorator.

Prayag wrote:Hi, ketan
if you are using a ListWidget for displaying the controls then wrap the ListWidget with ScrollWidget with the help of IDecorator.
hellow Prayag
thanks for reply
see i am not using ListWidget/ ScrollWidget .
i want to display the 8 controls & they all should appear like menu control ie one by one manner. the problem is that i couldn't manage all these control inside screen width.
as i led all these control over applet screen.
Is there any facility to make these applet screen scrollable.........
& i also want to know whether i use ListWidget/ ScrollWidget interface with
BREW 3.1.4
wait ing for reply
thanks
anand

Prayag wrote:Hi, ketan
if you are using a ListWidget for displaying the controls then wrap the ListWidget with ScrollWidget with the help of IDecorator.
hellow Prayag
thanks for reply
see i am not using ListWidget/ ScrollWidget .
i want to display the 8 controls & they all should appear like menu control ie one by one manner. the problem is that i couldn't manage all these control inside screen width.
as i led all these control over applet screen.
Is there any facility to make these applet screen scrollable.........
& i also want to know whether i use ListWidget/ ScrollWidget interface with
BREW 3.1.4
wait ing for reply
thanks
anand

Hi ,ketan
Quote:also want to know whether i use ListWidget/ ScrollWidget interface with
BREW 3.1.4
Are you working with BREW UI Widget and Forms extension or not?I am a lititle bit confused about your same post as posted in brew3.x and also in BREW UI Widget and Forms.
If you are working with BREW UI Widget and Forms then you can use ListWidget/ScrollWidget, otherwise you can use MenuControl with
class id AEECLSID_ICONVIEWCTL.
hope it help you..

Hi ,ketan
Quote:also want to know whether i use ListWidget/ ScrollWidget interface with
BREW 3.1.4
Are you working with BREW UI Widget and Forms extension or not?I am a lititle bit confused about your same post as posted in brew3.x and also in BREW UI Widget and Forms.
If you are working with BREW UI Widget and Forms then you can use ListWidget/ScrollWidget, otherwise you can use MenuControl with
class id AEECLSID_ICONVIEWCTL.
hope it help you..

Prayag wrote:Hi ,ketan
Are you working with BREW UI Widget and Forms extension or not?I am a lititle bit confused about your same post as posted in brew3.x and also in BREW UI Widget and Forms.
If you are working with BREW UI Widget and Forms then you can use ListWidget/ScrollWidget, otherwise you can use MenuControl with
class id AEECLSID_ICONVIEWCTL.
hope it help you..
hi Prayag
thanks for reply
can u send code snipet for AEECLSID_ICONVIEWCTL.
so that i can get the things...
ketan

Prayag wrote:Hi ,ketan
Are you working with BREW UI Widget and Forms extension or not?I am a lititle bit confused about your same post as posted in brew3.x and also in BREW UI Widget and Forms.
If you are working with BREW UI Widget and Forms then you can use ListWidget/ScrollWidget, otherwise you can use MenuControl with
class id AEECLSID_ICONVIEWCTL.
hope it help you..
hi Prayag
thanks for reply
can u send code snipet for AEECLSID_ICONVIEWCTL.
so that i can get the things...
ketan

You can write yours own custom control rather in the form of widget also you can write.
In that you got to manage all the stuff at yours end.
Thanks,
Deepak

You can write yours own custom control rather in the form of widget also you can write.
In that you got to manage all the stuff at yours end.
Thanks,
Deepak

dongre_mech wrote:You can write yours own custom control rather in the form of widget also you can write.
In that you got to manage all the stuff at yours end.
Thanks,
Deepak
hi deepak
can you tell me how to write custom control b'coz i am not using form/widget.
waiting for reply
thanks in advance
ketan

dongre_mech wrote:You can write yours own custom control rather in the form of widget also you can write.
In that you got to manage all the stuff at yours end.
Thanks,
Deepak
hi deepak
can you tell me how to write custom control b'coz i am not using form/widget.
waiting for reply
thanks in advance
ketan

ketan wrote:
can you tell me how to write custom control b'coz i am not using form/widget.
Hi Ketan,
If i understand your problem, you need a custom control which can contain several other controls and can hanle events properly passed to that custom control.
Such a custom control can include the following methods (The following list can be taken as a guide only, the method names can vary):
//Adds an item to (x,y) position w.r.t the custom control
1) addItem(Control *pCtl, int nX, int nY)
//Sets the rectangle of the Custom Control
2) setRect(const AEERect *pRect);
//Makes a Custom Control active or inactive
3) setActive(bool bActive);
//Changes the focus from current control to previous control on 'wParamPrev' key
//press and to next control on 'wParamNext' key press
4) void channgeCtlFocus(int nCtlIndex, uint16 wParamPrev, uint16 wParamNext);
//Handle Event of Custom Control
boolean handleEvent(AEEEvent eCode, uint16 wParam, uint32 dwParam );
//Redraws the custom control and its contents on the screen
5) void redraw();
Hope this may help you.

ketan wrote:
can you tell me how to write custom control b'coz i am not using form/widget.
Hi Ketan,
If i understand your problem, you need a custom control which can contain several other controls and can hanle events properly passed to that custom control.
Such a custom control can include the following methods (The following list can be taken as a guide only, the method names can vary):
//Adds an item to (x,y) position w.r.t the custom control
1) addItem(Control *pCtl, int nX, int nY)
//Sets the rectangle of the Custom Control
2) setRect(const AEERect *pRect);
//Makes a Custom Control active or inactive
3) setActive(bool bActive);
//Changes the focus from current control to previous control on 'wParamPrev' key
//press and to next control on 'wParamNext' key press
4) void channgeCtlFocus(int nCtlIndex, uint16 wParamPrev, uint16 wParamNext);
//Handle Event of Custom Control
boolean handleEvent(AEEEvent eCode, uint16 wParam, uint32 dwParam );
//Redraws the custom control and its contents on the screen
5) void redraw();
Hope this may help you.

sambitsoft wrote:Hi Ketan,
If i understand your problem, you need a custom control which can contain several other controls and can hanle events properly passed to that custom control.
Such a custom control can include the following methods (The following list can be taken as a guide only, the method names can vary):
//Adds an item to (x,y) position w.r.t the custom control
1) addItem(Control *pCtl, int nX, int nY)
//Sets the rectangle of the Custom Control
2) setRect(const AEERect *pRect);
//Makes a Custom Control active or inactive
3) setActive(bool bActive);
//Changes the focus from current control to previous control on 'wParamPrev' key
//press and to next control on 'wParamNext' key press
4) void channgeCtlFocus(int nCtlIndex, uint16 wParamPrev, uint16 wParamNext);
//Handle Event of Custom Control
boolean handleEvent(AEEEvent eCode, uint16 wParam, uint32 dwParam );
//Redraws the custom control and its contents on the screen
5) void redraw();
Hope this may help you.
thanks sambitsoft
i have followed all the steps above.
now i can create control & draws over screen but i think u dont get problem..
see i want 8 control to display in one by one manner. i managed to draw 4 control
1 some text & then
control
2 text
control
3 text
control
4 text
control
but when i add 5th control it goes out of screen.
upon searching in forum i found the soution window redrawing.
but i dont know how to redraw window.
if u have some idea then share it..
ketan

sambitsoft wrote:Hi Ketan,
If i understand your problem, you need a custom control which can contain several other controls and can hanle events properly passed to that custom control.
Such a custom control can include the following methods (The following list can be taken as a guide only, the method names can vary):
//Adds an item to (x,y) position w.r.t the custom control
1) addItem(Control *pCtl, int nX, int nY)
//Sets the rectangle of the Custom Control
2) setRect(const AEERect *pRect);
//Makes a Custom Control active or inactive
3) setActive(bool bActive);
//Changes the focus from current control to previous control on 'wParamPrev' key
//press and to next control on 'wParamNext' key press
4) void channgeCtlFocus(int nCtlIndex, uint16 wParamPrev, uint16 wParamNext);
//Handle Event of Custom Control
boolean handleEvent(AEEEvent eCode, uint16 wParam, uint32 dwParam );
//Redraws the custom control and its contents on the screen
5) void redraw();
Hope this may help you.
thanks sambitsoft
i have followed all the steps above.
now i can create control & draws over screen but i think u dont get problem..
see i want 8 control to display in one by one manner. i managed to draw 4 control
1 some text & then
control
2 text
control
3 text
control
4 text
control
but when i add 5th control it goes out of screen.
upon searching in forum i found the soution window redrawing.
but i dont know how to redraw window.
if u have some idea then share it..
ketan

hi all
waiting for reply
thanks
ketan

hi all
waiting for reply
thanks
ketan

ketan wrote:thanks sambitsoft
i have followed all the steps above.
now i can create control & draws over screen but i think u dont get problem..
see i want 8 control to display in one by one manner. i managed to draw 4 control
1 some text & then
control
2 text
control
3 text
control
4 text
control
but when i add 5th control it goes out of screen.
upon searching in forum i found the soution window redrawing.
but i dont know how to redraw window.
if u have some idea then share it..
ketan
if i understand u correctly this may help you,
after drawing 4 control in a screen 5th goes out of screen?
So wat u have to do is simple, u need not wory of showing all in a one go, handle based on key events.
ie up/down key, when initially u show 4 controls, wat u have to do is just redraw ur screen with controls u want to show next based on key events, i think for ur case UP/DOWN
2 text
control
3 text
control
4 text
control
5 text
control
or
5 text
control
6 text
control
7 text
control
8 text
control
the same way u can handle for rest and also up/down scrolling..
Please correct me if i'm overlooking? ;)

ketan wrote:thanks sambitsoft
i have followed all the steps above.
now i can create control & draws over screen but i think u dont get problem..
see i want 8 control to display in one by one manner. i managed to draw 4 control
1 some text & then
control
2 text
control
3 text
control
4 text
control
but when i add 5th control it goes out of screen.
upon searching in forum i found the soution window redrawing.
but i dont know how to redraw window.
if u have some idea then share it..
ketan
if i understand u correctly this may help you,
after drawing 4 control in a screen 5th goes out of screen?
So wat u have to do is simple, u need not wory of showing all in a one go, handle based on key events.
ie up/down key, when initially u show 4 controls, wat u have to do is just redraw ur screen with controls u want to show next based on key events, i think for ur case UP/DOWN
2 text
control
3 text
control
4 text
control
5 text
control
or
5 text
control
6 text
control
7 text
control
8 text
control
the same way u can handle for rest and also up/down scrolling..
Please correct me if i'm overlooking? ;)

THanks a lot
its working now...
ketan

THanks a lot
its working now...
ketan