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 / How do I make sure an image gets displayed in the ACTIVE Window ?

Author
Message
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 30th Oct 2010 13:21
I have a window created in DBPro but dont seem able to force a background image.

Q. How to I ensure content gets displayed to the active window ?

I cant seem to find a command.

BTW I am using the WinDLG plugin if that helps, but there appears no command whether using this plugin or not to select the active window. thanks
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 30th Oct 2010 15:25
A background is usually an image pasted on the background

eg.


DBP can only draw to its own window, the one it created, the one DirectX is initialized to. If you want to use an image on another window, you'll have to use a plugin that uses the Windows GDI commands. And even then, I think you only have access to child windows of the main window of DBP, not just any active window.
I've never heard of the WinDLG plugin either. Where can I find a reference to it?

Cheers!
Sven B

DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 30th Oct 2010 21:29
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 31st Oct 2010 10:51
Ah I see.

It won't work. The only window DBP knows how to use is the one created by DBP itself, not the one you created. My previous post is still valid.
BlueGUI allows you to make a panel and 'paste' an image on that panel. Panels can be used as a background of your window. Still, dialogs are no real windows, and changing the background of a dialog is fundamentally different from changing the background of a window. I doubt you'll find any plugin with that kind of functionality.

Cheers!
Sven B

Login to post a reply

Server time is: 2026-07-22 04:37:18
Your offset time is: 2026-07-22 04:37:18