How to change form extent after the rotation??? | developer.brewmp.com How to change form extent after the rotation??? | developer.brewmp.com

Developer

How to change form extent after the rotation???

Forums:

HI all, i have problem that is driving me crazy for couple of weeks. After the rotation, which passes ok, the rootform is not resized correctly...

I figured out this could be the problem of using the IrootForm and window manager together, but I couldn't find anything to support this.

How does this work, i create RootForm, query widget -  WID_FORM from rootform, and then I create window with widget( that Is WID_FORM of rootForm) as parameter. And then i just add other forms to rootForm(every form represents screen). Everything works prefecty but rotation...

I also tried to resize WID_CONTAINER and WID_FORM of the IRootForm, but result is the same -- nothing happens...well i did find a way to get full landscape extent, but when I go back to portrait mode screen is shifted, and empty grey space appears.:S (this happend using IWidget_SetSizeToFit(), on WID_FORM of IRootForm)

I really really need HELP, so please respond if you have any clue what is going on...TNX

Please see window manager tech guide for details on rotating a window:
https://developer.brewmp.com/resources/tech-guides/window-manager-techno...
 

Please see window manager tech guide for details on rotating a window:
https://developer.brewmp.com/resources/tech-guides/window-manager-techno...
 

hi adhudase,
thx for responding. I've read that tech guide, and probably everything about rotation on
this site,but as i wrote, problem is resizing. After the rotation
screen is not resized accordingly, and I was unable to find any
concreate answer about it. One more thing,  after the screen is rotated (to landscape mode) I called IRootForm_GetClientRect func and rect is not resized (still in portrait mode). How is this possible if the window mgr handles rotation and resizing automatically?
tnx in advance.

hi adhudase,
thx for responding. I've read that tech guide, and probably everything about rotation on
this site,but as i wrote, problem is resizing. After the rotation
screen is not resized accordingly, and I was unable to find any
concreate answer about it. One more thing,  after the screen is rotated (to landscape mode) I called IRootForm_GetClientRect func and rect is not resized (still in portrait mode). How is this possible if the window mgr handles rotation and resizing automatically?
tnx in advance.

Did you try sample app available on link above? I was able to rotate window with extent adjusted automatically.

Did you try sample app available on link above? I was able to rotate window with extent adjusted automatically.

Hi,
thx for rspn,
 I've seen that too. And I've do it just like it's shown in the example above.
Could using window and IrootForm together cause this problem? After the rotation IRootForm_GetClientRect() shows that the client rectangle has a portrait extent.
 
tnx

Hi,
thx for rspn,
 I've seen that too. And I've do it just like it's shown in the example above.
Could using window and IrootForm together cause this problem? After the rotation IRootForm_GetClientRect() shows that the client rectangle has a portrait extent.
 
tnx

Looks so, not sure if we can use forms with windows. Trying to get more info on this...

Looks so, not sure if we can use forms with windows. Trying to get more info on this...

any news?:), I would appreciate if you can get me any info on this issue. tnx

any news?:), I would appreciate if you can get me any info on this issue. tnx

Hi Mate,
Forms and windows were really never intended to be used together, since there is functional overlap and more so both want to own the entire display.  When using windows you should focus on making use of widgets directly.  It is possible to get forms and windows to work together, but it can be problematic, such as the appearance of  annunciator window, addition/removal of softkeys, extent changes.  I strongly suggest using straight widgets when using windows.
 
Thanks

Hi Mate,
Forms and windows were really never intended to be used together, since there is functional overlap and more so both want to own the entire display.  When using windows you should focus on making use of widgets directly.  It is possible to get forms and windows to work together, but it can be problematic, such as the appearance of  annunciator window, addition/removal of softkeys, extent changes.  I strongly suggest using straight widgets when using windows.
 
Thanks

Hi adhudase, 
 
I don't really have choice right know, i am stuck with forms and window together, to much code to rewrite. We are currently experiencing problem with EVT_APP_WINDOW_START. We don't get this event on app startup. Could this be because we are using forms and windows?
 
thanks

Hi adhudase, 
 
I don't really have choice right know, i am stuck with forms and window together, to much code to rewrite. We are currently experiencing problem with EVT_APP_WINDOW_START. We don't get this event on app startup. Could this be because we are using forms and windows?
 
thanks

First EVT_APP_START_WINDOW is sent to all apps, not just windowed. If app handles it (return TRUE) then EVT_APP_START is not sent. Otherwise, EVT_APP_START is sent.

First EVT_APP_START_WINDOW is sent to all apps, not just windowed. If app handles it (return TRUE) then EVT_APP_START is not sent. Otherwise, EVT_APP_START is sent.