Skip to main content

[Migrated content. Thread originally posted on 26 January 2005]

We have a screen that has a Tab at the bottom of the screen with two tabs. If you select a different tab than the defualt tab (tab value setting) and exit the screen, when you show the screen again the tab area bleeds one tab onto the other. I have attached a jpg that shows the default tab and then the tab that is bleeding.

Any help would be appreciated.

Thanks

[Migrated content. Thread originally posted on 26 January 2005]

We have a screen that has a Tab at the bottom of the screen with two tabs. If you select a different tab than the defualt tab (tab value setting) and exit the screen, when you show the screen again the tab area bleeds one tab onto the other. I have attached a jpg that shows the default tab and then the tab that is bleeding.

Any help would be appreciated.

Thanks
When switching between tabs, you would need to clear the screen before displaying another. I'm assuming you have 2 screen sections - 1 for each tab?

Rob

[Migrated content. Thread originally posted on 26 January 2005]

We have a screen that has a Tab at the bottom of the screen with two tabs. If you select a different tab than the defualt tab (tab value setting) and exit the screen, when you show the screen again the tab area bleeds one tab onto the other. I have attached a jpg that shows the default tab and then the tab that is bleeding.

Any help would be appreciated.

Thanks
Not sure what you are telling me to do. As you can see in the jpg there is one tab with two options. How do you clean a screen on the tab? Why would it bleed to the other?

Thanks

[Migrated content. Thread originally posted on 26 January 2005]

We have a screen that has a Tab at the bottom of the screen with two tabs. If you select a different tab than the defualt tab (tab value setting) and exit the screen, when you show the screen again the tab area bleeds one tab onto the other. I have attached a jpg that shows the default tab and then the tab that is bleeding.

Any help would be appreciated.

Thanks
You typically have one screen section item for each, like:

SCREEN SECTION.
01 Content-tab1.
03 entryfield-tab1
03 label-tab1
03 bitmap-tab1
03 entry field-tab1
....
01 Content-tab2.
03 entryfield-tab2
03 label-tab2
03 bitmap-tab2
03 entry field-tab2
....

Then, if tab page 1 has focus, display and accept Content-tab1, when you switch to tab page 2, destroy Content-tab1, display and accept Content-tab2. Vice versa...

[Migrated content. Thread originally posted on 26 January 2005]

We have a screen that has a Tab at the bottom of the screen with two tabs. If you select a different tab than the defualt tab (tab value setting) and exit the screen, when you show the screen again the tab area bleeds one tab onto the other. I have attached a jpg that shows the default tab and then the tab that is bleeding.

Any help would be appreciated.

Thanks
We use Acubench so we don't handle any of the screen section calls and such. We let the Bench display and accept the tab areas.

Am I doing something wrong?

[Migrated content. Thread originally posted on 26 January 2005]

We have a screen that has a Tab at the bottom of the screen with two tabs. If you select a different tab than the defualt tab (tab value setting) and exit the screen, when you show the screen again the tab area bleeds one tab onto the other. I have attached a jpg that shows the default tab and then the tab that is bleeding.

Any help would be appreciated.

Thanks
Also, make sure you DESTROY the screen controls before exiting your program. As well as any bitmaps, etc. If not, when you come back, another set of controls may be created over top of remaining ones and cause what you are seeing. On top of that, without proper cleanup, you may experience memory leaks.

[Migrated content. Thread originally posted on 26 January 2005]

We have a screen that has a Tab at the bottom of the screen with two tabs. If you select a different tab than the defualt tab (tab value setting) and exit the screen, when you show the screen again the tab area bleeds one tab onto the other. I have attached a jpg that shows the default tab and then the tab that is bleeding.

Any help would be appreciated.

Thanks
Thanks DanM and jrodgers for the suggestions. I have tried jrodgers solution and it "kinda" worked. Now the tab will not set itself to the correct tab when the screen is drawn. By that I mean it is keeping active the last tab that was choosen by the user. When the screen redraws we don't get the bleeding anymore but we get the wrong info on the tab. When the user changes tabs the problem is corrected.

DanM, on your suggestion how to I make sure that all items are Destroyed? Should Acubench not take care of that in the logic that bench created to exit the screen?

As I said any help is greatly appreciated. I think we are getting close to the solution but just not what the users want yet.

Thanks again

[Migrated content. Thread originally posted on 26 January 2005]

We have a screen that has a Tab at the bottom of the screen with two tabs. If you select a different tab than the defualt tab (tab value setting) and exit the screen, when you show the screen again the tab area bleeds one tab onto the other. I have attached a jpg that shows the default tab and then the tab that is bleeding.

Any help would be appreciated.

Thanks
Thanks for everyones help. I think that I have backed into a fix for the problem by taking pieces of info from you all. I basically watched in Debug the logic that switched the tabs. After I figured out that logic I this is what I put in the exit pagagraph of my screen:

MOVE 1 TO EVENT-DATA-1.
PERFORM Acu-CODING-TAB-1-Cmd-TabChanged.
MOVE 2 TO EVENT-DATA-1.
PERFORM Acu-CODING-TAB-1-Cmd-TabChanged.

It just switches the tabs and redisplays the tab as if a user was selecting different tabs.

If you ask me this should not have to be done BUT it does work.

Thanks again for all the ideas, they did help.