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

Developer

Forums

Forums:

Hi,

From my understanding on WindowsManager supported by BREW , it is multiple windows from an application share the display.
Was trying to create an application which has widgets involved.

1. Create an application with the help of BMP wizard.
2. Add widgets( in this case to start off with , a single static widget ).
3. Create an instance of root container, creat the static widget , add the widget on to the container.
Handling the EVT_APP_START_WINDOW event.
4. Create a WindowManager
5. Ensure the window manager supports the standard windowing capabilities
(IWindowMgr_CheckCapabilities)
6. IWindowMgr_CreateWindow API is used and i pass the widget as a parameter to it.

I dont see any thing on the display.
Please let me know if i am missing out on anything and my understanding on WindowsManager is correct.

Thanks,
Thakur.

Did you go through our How-To doc for "Creating a Windowed Application" and it's sample code yet?
-Tony

Did you go through our How-To doc for "Creating a Windowed Application" and it's sample code yet?
-Tony

Hi Tony,
I have looked into the document provided and also the sample app. To add on to the steps that i carried out yesterday,
1. Create an application with the help of BMP wizard.
2. Add widgets( in this case to start off with , a single static widget ).
3. Create an instance of root container, creat the static widget , add the widget on to the container.
Handling the EVT_APP_START_WINDOW event.
4. Create a WindowManager
5. Ensure the window manager supports the standard windowing capabilities
(IWindowMgr_CheckCapabilities)
6. IWindowMgr_CreateWindow API is used and i pass the widget as a parameter to it.
7. Conceptually speaking, when i debug the application i see the windowmanager created successfully.
8. I see the static widget displayed on the screen, but occupies the whole screen. This is because i am using the proporty(AEEWindowMgrExt_CLASS_Fullscreen)
9. Just to cross-check, what i have done at this point is,
I have created another static widget and created another window.
10. When i run the application, now i see only the second static widget occupying the whole screen.
What i want to know here is that, was i able to create two windows with one overlapping over the other ??
Thanks,
Thakur.

Hi Tony,
I have looked into the document provided and also the sample app. To add on to the steps that i carried out yesterday,
1. Create an application with the help of BMP wizard.
2. Add widgets( in this case to start off with , a single static widget ).
3. Create an instance of root container, creat the static widget , add the widget on to the container.
Handling the EVT_APP_START_WINDOW event.
4. Create a WindowManager
5. Ensure the window manager supports the standard windowing capabilities
(IWindowMgr_CheckCapabilities)
6. IWindowMgr_CreateWindow API is used and i pass the widget as a parameter to it.
7. Conceptually speaking, when i debug the application i see the windowmanager created successfully.
8. I see the static widget displayed on the screen, but occupies the whole screen. This is because i am using the proporty(AEEWindowMgrExt_CLASS_Fullscreen)
9. Just to cross-check, what i have done at this point is,
I have created another static widget and created another window.
10. When i run the application, now i see only the second static widget occupying the whole screen.
What i want to know here is that, was i able to create two windows with one overlapping over the other ??
Thanks,
Thakur.

If you created a full-screen window, it obviously will cover up the full display and you won't see other windows. you can try changing the window property to AEEWindowMgrExt_CLASS_Popup via IWindowMgr_SetWindowProps().
In the sample code, there are two windows. One is the softkey and the other is the popup. if you set the popup to the fullscreen, you won't see the app manager in the background anymore.
-Tony

If you created a full-screen window, it obviously will cover up the full display and you won't see other windows. you can try changing the window property to AEEWindowMgrExt_CLASS_Popup via IWindowMgr_SetWindowProps().
In the sample code, there are two windows. One is the softkey and the other is the popup. if you set the popup to the fullscreen, you won't see the app manager in the background anymore.
-Tony

Hi Tony,
I have tried with a fullscreen window(static widget) and then a popup window(static widget).
I am able to see the two windows created.
My concern would be, when we create a popup window , can we set the coordinates where the popup window should be drawn ?
In my case, the popup window is drawn at the center of the screen ?
I am using the "WExtent" structure and APIs "GetPreferred/SetExtent" to set the widget properties, on the same lines can i use the "WidgetPos" to position the popup window at (x,y) on the screen ?
Thanks,
Thakur.

Hi Tony,
I have tried with a fullscreen window(static widget) and then a popup window(static widget).
I am able to see the two windows created.
My concern would be, when we create a popup window , can we set the coordinates where the popup window should be drawn ?
In my case, the popup window is drawn at the center of the screen ?
I am using the "WExtent" structure and APIs "GetPreferred/SetExtent" to set the widget properties, on the same lines can i use the "WidgetPos" to position the popup window at (x,y) on the screen ?
Thanks,
Thakur.

Used the API "WindowMgrExt_SetPositionHint" provided by the Windows Manager to position the windows created.
Thakur.

Used the API "WindowMgrExt_SetPositionHint" provided by the Windows Manager to position the windows created.
Thakur.

Hi Tony,
I have a windowed application with multiple windows and i am able to switch between the windows and the windows have their own processing being done.
My question here is, how do we visualize when we say, "Window Manager" is capable of handling multiple Windowed Applications ?
How will we launch multiple windowed applications ?
Thanks,
Thakur.

Hi Tony,
I have a windowed application with multiple windows and i am able to switch between the windows and the windows have their own processing being done.
My question here is, how do we visualize when we say, "Window Manager" is capable of handling multiple Windowed Applications ?
How will we launch multiple windowed applications ?
Thanks,
Thakur.

Hi,
I have two windowed applications up and running.
I am able to toggle between the windows of the same application. When i talk about the inter applet communication , what if i create a conventional BREW application(non-windowed) and launch the windowed aplications ?
The behavior what i see is , i am able to see the windows of both the applications but only the second application is in focus and is receiveing the keypad events ?
How can i switch over to the first application from this stage ?
Thanks,
Thakur.

Hi,
I have two windowed applications up and running.
I am able to toggle between the windows of the same application. When i talk about the inter applet communication , what if i create a conventional BREW application(non-windowed) and launch the windowed aplications ?
The behavior what i see is , i am able to see the windows of both the applications but only the second application is in focus and is receiveing the keypad events ?
How can i switch over to the first application from this stage ?
Thanks,
Thakur.

Used the IShell API's to switch over between the windows of different applications.
Thakur.

Used the IShell API's to switch over between the windows of different applications.
Thakur.