Link to home
Start Free TrialLog in
Avatar of JeePeeTee
JeePeeTee

asked on

Set actionlist actions using Windows Messages

Hi all,

I've build a plug-in for another application which fills edit boxes with default entry values. This works fine.
But now I want to extend this function by disabling/enabling some actions in the other application's action list to apply some business rules.

Is there a way I can also set values to non-visual components through Windows Messages?

Thanks in advance,

JeePeeTee
Avatar of Ephraim Wangoya
Ephraim Wangoya
Flag of United States of America image


If the host application exposes methods to handle its controls, then you can use those.
Otherwise you have to know the handle of the control you want to modify and use PostMessage.

The challenge is how to find the handle of the component and therein is the problem!
If you can compile the other application then you can add in your own message handling.  This would easily allow you to do what you are attempting.  The problem is that non visual controls tend to be non windows controls.  This means that normal message handling assumptions may not apply.  As ewangoya stated, your only other recourse would be to use an API the application provides.
Avatar of JeePeeTee
JeePeeTee

ASKER

Unfortunately, I can't compile the other program and it's API is insufficient. That's why I try to work around it. I know the application is programmed in Delphi as well, but that's about everything I know.

So, you say that non-visual components can't be controlled by Windows Messages, because they are not native Windows Controls? But in the other program the buttons are attached to an action list. How are these attached actions controlled during run-time, since the attached buttons are Windows Controls?

ASKER CERTIFIED SOLUTION
Avatar of developmentguru
developmentguru
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok, thanks for all the info developmentguru.

Guess I have to find some other ways.