Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Resizing without stretching?

Author
Message
TFE
20
Years of Service
User Offline
Joined: 1st Oct 2005
Location: Sweden
Posted: 7th Jan 2012 17:45
Hi, I'm working on a little thing here, a simple mediaplayer which I intend to give some more advance features (in C# & C++) later, however I have this smallish issue, not really related to features or so, but a mediaplayer should be able to run in windowed mode, the problem is that when you resize a windowed DBPro app it STRETCHES! Not very neat for a mediaplayer, especially not when playing videos.

Has anyone tried to fix this before? Couldn't find anything on the forums. Does anyone have a solution?

Thanks!

Same routine every day: sleep today, work tomorrow
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 7th Jan 2012 20:05
There are some ways to get around it:

A: You can adjust the scale of the graphical elements and images of text according to the ratio of the window size (not screen size) using the window expressions in Matrix1 utility 13. So as the window gets wider, the elements become more narrow; and vise versa.

B: You could use a GUI plugin like BBB Gui or Blue Gui to work with windows based graphics rather than DirectX graphics.

Personally I would not use DBPRO for a media player, I would have used DarkGDK with C++/C#/VB.

TFE
20
Years of Service
User Offline
Joined: 1st Oct 2005
Location: Sweden
Posted: 7th Jan 2012 20:51
Ok, thanks. I'll look into it.

I know DBPro may not be optimal for the purpose in itself but as most of the additional features will be made in C# & C++, depending on which of the two would work best for the task, DBPro Should work fine as Main app as long as I get around these little things

Thanks for the help.

Same routine every day: sleep today, work tomorrow
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 8th Jan 2012 00:30
Yeah, it's a bonus that you know C++/C#, you can create your own dll plugins specific for your player.

Login to post a reply

Server time is: 2026-07-10 01:07:01
Your offset time is: 2026-07-10 01:07:01