cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Create combined state with new appearance state via toolkit not possible?

LarsZiegler
8-Gravel

Create combined state with new appearance state via toolkit not possible?

Hello community,

 

creating a new combined state with a new appearance state is not possible via toolkit?

Is there any workaround out there?

 

Thanks, Lars

 

 

 

4 REPLIES 4

If something not possible create via toolkit, then, sometime, run a mapkey can help. Write manually the mapkey, then play it from your app. Don't know is it possible to achieve what you want using mapkey.

Hello ysinitsyn!
Thanks for the answer. I know the possibility of ProMacroExecute().

As I know, in synchronous application, the macro is executed at the end?

I have not tried it yet.

 

I need the macro in between of the function.

You can split your code in two parts.

Register the "button" (command) with contain a second part of the code.

At the end of the first part run a mapkey to create an representation. In the end of the mapkey call the command to execute the second part of the code.

I think, this approach was discussed early at this community.

Don't split it.

 

Most Macros can also be run in plain C-Toolkit. ProMacroLoad(L""); and afterwards you can execute the Macro Queue with ProMacroExecute(); so it should not interrupt your program flow. Sometimes you need the async. idea but it should be the last option.

 

Br,

Eike

Announcements


Top Tags