Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Resizing controls on a large window

$
0
0
I have an application that needs to spread over 10 desktops (we have 10 screens at 1920 x 1080 pixels making a total desktop size of 19800 x 1080 pixels). After messing around with a number of windows API functions, I've managed to get the PB window object to be that wide using a combination of wm_setminmaxinfo and SetWindowPos. After finally getting that to happen, I now find I can't change the width property of a control on the window to anything over 32,768. This makes me think there is an underlying INT value as 32,768 is the maximum value for an INT. I've tried using SetWindowPos on the control as well but it still changes it to 32,768 when it "paints" the control on window opening.

 

The control I'm trying to use is an OLE object from VideoLan VLC which displays video. The same happens if I use "Windows Media Player" OLE object so if you want to try you can use that control. I need to make the control show a video which is 10 screens wide (specially created video for our needs to run a video wall)

 

Does anyone know how to make a control's width go to any size > 32768?  Some standard PB controls can, like the picture control, but I need the WMP OLE object to do it.

 

For an example:-
refer to this website "http://eric.aling.tripod.com/PB/tips/pbtip24.htm" for a downloadable .pbl with has a window which accepts minimum width and heights value and changes your window accordingly. Put in a high value like 19800 as the width and it will resize the window to that size, even if you don't have 10 screens like me but you can still drag the title bar over to see the rest of the window after it has been resized.
Now drop the "Windows media Player" OLE object on the window and try to make it go to the same width as the window.

 

TIA.

  

Viewing all articles
Browse latest Browse all 2935

Trending Articles