1. Gimmy Susan
  2. PowerBuilder
  3. Tuesday, 31 October 2017 10:41 AM UTC

Hello community

I have a problem with positioning a window containing a tab inside a mdidockhelp!

My case:
1) I have a frame of type 'mdidockhelp!' with a menu that has the toolbars enabled with visible icons.
2) I have a window of type 'main!' with a menu that has the toolbars enabled with visible icons. The window has a tab_1.
3) I open the window with the command "opensheetwithparmasdocument (w_test_sheet10," ", w_test_frame," ")"


In my test, I used the 'PB template application' and I put a tab_1 in windows.
In the resize event, I placed the tab_1 at 0.0, (code: tab_1.y =0 ; tab_1.x =0 )

At open The system iwrongs . 

Specifically, x and y have value 0, but it creates a border at the top between tab_1 and window.

 

Do you have any solutions? I'm waiting for the sun!


thank you

Gimmy

​p.s: I do not know how to attach the screenshot or example

Olan Knight Accepted Answer Pending Moderation
  1. Tuesday, 31 October 2017 21:08 PM UTC
  2. PowerBuilder
  3. # 1

The easiest work-around is to manually specify the X and Y positions of the window in the POST-OPEN event of the window.
You and assign a fixed position, or calculate an offset from the edge of the screen, or you can calculate the coordinates required to center your window.

 

Later -

Olan

Comment
  1. Gimmy Susan
  2. Thursday, 2 November 2017 09:43 AM UTC
Thanks OLAN, very useful.



someone have idea if they put a patch on this issue? I find it difficult to pass all of my ERPs to reposition all the tabs.



thanks



GIMMY

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.