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.

DLL Talk / Delphi - Recognizing The DBP Window And Coding To It... HELP PLEASE

Author
Message
The Lone Programmer
21
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 9th Aug 2005 21:25
Hey,

I wanted to throw some GUI buttons into my DLL that would show up on the black screen of the Dark Basic Pro Window.

I was told I needed to use the Windows SetParent API command to do this. I researched around and I only came up with this:
I need to use these two commands:
1. FindWindow(Program, dunno)
2. SetParent(child, parent)

I have no idea exactly how they work but I thought maybe this would work.

DBPWindow := FindWindow('dbp_program.exe',nil);
Windows.SetParent(application.handle, DBPWindow);

Well DBP didn't crash when I did that. I just don't know how I would get GUI buttons onto the screen by doing that.

Button := TButton.CreateParented(DBPWindow);

Doing that didn't work either.

When I create a button for a form entirely through code I normally do this to get it to appear.

Button := TButton.CreateParented(application);
Button.Parent := TFormname;

That is the only way I know how to make a button appear on a form entirely through code. I don't want it on a form this time. I want it on the black screen of DBP.


If anyone knows how to get buttons on the DBP screen and is willing to share the info with me, please let me know.


Thanks,
The Lone Programmer

"Is The Juice Worth The Squeeze"
-The Girl Next Door

Login to post a reply

Server time is: 2024-11-21 18:34:37
Your offset time is: 2024-11-21 18:34:37