Skip to main content

[archive] Problem with my bitmap component in a Tab

  • May 18, 2009
  • 4 replies
  • 0 views

[Migrated content. Thread originally posted on 15 May 2009]

Hello to all,

I'm having an issue with a bitmap control inside a tab control. I define a bitmap control with a bitmap-handle, but the bitmap-handle is loaded when the program runs. When i change the tab, and go back to the tab with the bitmap, it doesn't show. I try to reload the bitmap in the aft-tabchg of the tab control, but doen't work.

Any one have seen the same issue?

Thanks afterwards.

4 replies

[Migrated content. Thread originally posted on 15 May 2009]

Hello to all,

I'm having an issue with a bitmap control inside a tab control. I define a bitmap control with a bitmap-handle, but the bitmap-handle is loaded when the program runs. When i change the tab, and go back to the tab with the bitmap, it doesn't show. I try to reload the bitmap in the aft-tabchg of the tab control, but doen't work.

Any one have seen the same issue?

Thanks afterwards.
You'll need to show some code. If you use the AcuBench generated code, the handling of items on a tab is handled by a visible variable. How are you handling the tab, are all items being modified by the same visible variable?

[Migrated content. Thread originally posted on 15 May 2009]

Hello to all,

I'm having an issue with a bitmap control inside a tab control. I define a bitmap control with a bitmap-handle, but the bitmap-handle is loaded when the program runs. When i change the tab, and go back to the tab with the bitmap, it doesn't show. I try to reload the bitmap in the aft-tabchg of the tab control, but doen't work.

Any one have seen the same issue?

Thanks afterwards.
Well, fixing another problem i found the solution to this one. It was that when tabchanging, the runtime do a display screen, repainting all the components with the default values, but for some reason, it does it a bit slow, and the next sentence executes before the screen is ready.

This happens to me too, in the aft-initdata when painting a grid, the grid was half painted in the way, the solution also was put a c$sleep of 0.1 second and things work correctly.

Anyway, thanks Dilbert for the interest :P

[Migrated content. Thread originally posted on 15 May 2009]

Hello to all,

I'm having an issue with a bitmap control inside a tab control. I define a bitmap control with a bitmap-handle, but the bitmap-handle is loaded when the program runs. When i change the tab, and go back to the tab with the bitmap, it doesn't show. I try to reload the bitmap in the aft-tabchg of the tab control, but doen't work.

Any one have seen the same issue?

Thanks afterwards.
Well, fixing another problem i found the solution to this one. It was that when tabchanging, the runtime do a display screen, repainting all the components with the default values, but for some reason, it does it a bit slow, and the next sentence executes before the screen is ready.

This happens to me too, in the aft-initdata when painting a grid, the grid was half painted in the way, the solution also was put a c$sleep of 0.1 second and things work correctly.

Anyway, thanks Dilbert for the interest :P

[Migrated content. Thread originally posted on 15 May 2009]

Hello to all,

I'm having an issue with a bitmap control inside a tab control. I define a bitmap control with a bitmap-handle, but the bitmap-handle is loaded when the program runs. When i change the tab, and go back to the tab with the bitmap, it doesn't show. I try to reload the bitmap in the aft-tabchg of the tab control, but doen't work.

Any one have seen the same issue?

Thanks afterwards.
Well, fixing another problem i found the solution to this one. It was that when tabchanging, the runtime do a display screen, repainting all the components with the default values, but for some reason, it does it a bit slow, and the next sentence executes before the screen is ready.

This happens to me too, in the aft-initdata when painting a grid, the grid was half painted in the way, the solution also was put a c$sleep of 0.1 second and things work correctly.

Anyway, thanks Dilbert for the interest :P