Hi,
Currently we would like to do the new program that can achieve the below features.
1) In the main program(parent) we will have one toolbar having 10 icon.
2) When call another program(child), we would like to reload the toolbar with new image.
It means that change from 10 icon to 7 icon.
3) and what we want is the icon on the toolbar when we click, it will response to the child program instead of parent program.
It means that after we load the new image of the toolbar with 7 icon, when we click the exit icon, it will exit the child program not the parent program.
May i know that anyone have idea this can be done? or any idea how to do so.
Thanks You.
1) In the main program(parent) we will have one toolbar having 10 icon.
This really means a tool-bar with 10 push-buttons each with a bitmap image and each with their own exception value. The exception values are what allows you to determine how the program will proceed.
2) When call another program(child), we would like to reload the toolbar with new image.
It means that change from 10 icon to 7 icon.
Program 1 displayed tool-bar with it's handle (tb1-handle). You really want program 2 to display a tool-bar with it's own handle th2-handle (not the same handle as Program 1). The program2 displays it's screen (which has the bitmaps and exception values).
3) and what we want is the icon on the toolbar when we click, it will response to the child program instead of parent program.
Correct. You call program2 which displays a graphical window, displays a tool-bar with it's own handle, displays it's screen (which contains 7 pushbuttons with their own bitmaps and exception values) and then accepts the screen. In this way the exception value is process by Program 2 and proceeds with the logic you've placed in that program.
1) In the main program(parent) we will have one toolbar having 10 icon.
This really means a tool-bar with 10 push-buttons each with a bitmap image and each with their own exception value. The exception values are what allows you to determine how the program will proceed.
2) When call another program(child), we would like to reload the toolbar with new image.
It means that change from 10 icon to 7 icon.
Program 1 displayed tool-bar with it's handle (tb1-handle). You really want program 2 to display a tool-bar with it's own handle th2-handle (not the same handle as Program 1). The program2 displays it's screen (which has the bitmaps and exception values).
3) and what we want is the icon on the toolbar when we click, it will response to the child program instead of parent program.
Correct. You call program2 which displays a graphical window, displays a tool-bar with it's own handle, displays it's screen (which contains 7 pushbuttons with their own bitmaps and exception values) and then accepts the screen. In this way the exception value is process by Program 2 and proceeds with the logic you've placed in that program.
Hi shjerpe,
Thanks for your reply.
In the second point, what we want to get is the toolbar will show in the Program 1 instead of Program 2, it means that we do not want to show any toolbar in Program 2. But we want the toolbar is show on Program 1, but when i click the toolbar button, it can reflect the function to Program 2.
May i know that is this possible?
Thanks You.
Hi shjerpe,
Thanks for your reply.
In the second point, what we want to get is the toolbar will show in the Program 1 instead of Program 2, it means that we do not want to show any toolbar in Program 2. But we want the toolbar is show on Program 1, but when i click the toolbar button, it can reflect the function to Program 2.
May i know that is this possible?
Thanks You.
This may be possible. You would need to look at threads. Threading can get complicated quickly, proceed with caution,
Take a look at https://www.microfocus.com/documentation/extend-acucobol/103/extend-Interoperability-Suite/BKUSUSPROGS063.html and the SEND RECIEVE portion of that documentation.