?
Solved

TForm will mask messages that should be sent to plugin DLL?

Posted on 2001-07-31
4
Medium Priority
?
213 Views
Last Modified: 2013-11-18
In my application, the main form will get a plugin form,  which contain a TMemo component, from external dll and display this form in a panel. (Of course, the plugin form's BorderStyle is already setted to bsNone)

1.The main form will show the external form like this:
>> LoadPlugin(Application.Handle, PluginPanel.Handle);

2.In the external DLL, the LoadPlugin is as below:
>> LoadPlugin(hAPP: THANDLE; hHostWnd: HWND);
>> begin
>>   Application.Handle := hAPP;
>>   with TfmPlugin.CreateParented(AHostWnd) do
>>     Show;
>> end;

3.Result:
Yes, fmPlugin can display correctly in PluginPanel, but the TMemo on fmPlugin can't get arrow key events. If fmPlugin display common dialogs, such as FindDialog, shortcut keys for dialog can't work either.

I think the main form must have masked some keyboard messages which should be sent to the plugin DLL, but I don't know how to solve this problem, if you know, please tell me.

Many thanks.
0
Comment
Question by:sunset99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Expert Comment

by:rondi
ID: 6337492
Try playin with KeyPreview properties.
Set KeyPreview of the Host form to False and maybe
even try setting KeyPreview of the plugin to True.

rondi.
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 6339030
try to compile the DLLs with "Build with Runtime Packages" checked.
0
 
LVL 26

Expert Comment

by:Russell Libby
ID: 8735008
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

To be PAQ/Refund

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Thank you,
Russell

EE Cleanup Volunteer
0
 

Accepted Solution

by:
RotaredoM earned 0 total points
ID: 8822626
sunset99 abandoned the question.

Question PAQed and 100 points removed.

RotaredoM
CS Mod @ EE
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month14 days, 8 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question