1. MARKOVIC Marko
  2. PowerBuilder
  3. Thursday, 10 October 2019

Hi,

on a main window, we have a tab "A". In this tab "A" we have some tabpages. In one tabpage "X" again we have a tab "Y" with some tabpages.

I don't have any code that hide the tabpages in tab "Y".

But sometimes one (the first) tabpage disapear. You must restart the application taht the tabpages show again.

Some ideas this strange behaviour? is there a keyboard key combination to close a tabpage?

 

Regards

 

Who is viewing this page
Miguel Leeuwe Accepted Answer Pending Moderation
0
Votes
Undo

Does one of the tab controls have "create on demand" set to true?

Comment
There are no comments made yet.
  1. Thursday, 10 October 2019
  2. PowerBuilder
  3. # 1
MARKOVIC Marko Accepted Answer Pending Moderation
0
Votes
Undo

Chris: 

1) Windows 7

2) PB 2017 R3 Build 1880

3) Not after a recent build, an on-going issue for some time, i had this behaviour once before but could not reproduce it 

 

Michael:

Yes i do set visible if the user has the right on open event of the main window an then never touch it again. When restart it works again but can not it reprdouce grrr.

Comment
I have sometimes seen weird behavior when external equipment like a security locked USB stick is connected and suddenly hits window handles with WM_USER + (some offset) ==> PB events mapped to pbm_CustomXX. Even sudden triggering of Timer event when user entered a password protected SLE.

Just saying, sometimes code mapped to WM_xxx event IDs will fire unexpectedly without your code making the call. Safety solution: Don't map custom event to EventIDs unless that mapping serves a definite purpose.
  1. Michael Kramer
  2. Thursday, 10 October 2019
So there is no code making the tab/tab_page invisible in any event or function?
The pbm_custom## events map to Windows event 1023 + ##. Therefore pbm_custom01 is 1024, pbm_custom02 is 1025, and so on.

Before PowerBuilder 5, we couldn't create unmapped custom events. It is best to only use a pbm_custom## mapping if there is a need to trigger the event using the built in Send function or the Windows API function SendMessage.
  1. Roland Smith
  2. Thursday, 10 October 2019
There are no comments made yet.
  1. Thursday, 10 October 2019
  2. PowerBuilder
  3. # 2
Chris Pollach Accepted Answer Pending Moderation
0
Votes
Undo

Hi Marko;

  Can you tell us ...

1) What MS-Windows version & build that you are using?

2) What PowerBuilder version & build that you are using?

3) Did this problem just start happening after a recent build or has this been an on-going issue for some time?

Regards ... Chris

Comment
There are no comments made yet.
  1. Thursday, 10 October 2019
  2. PowerBuilder
  3. # 3
Michael Kramer Accepted Answer Pending Moderation
0
Votes
Undo

Do you have code that sets .Visible property?

CloseTab is rather hard since any data held on that tab page's DW buffers are lost and remaining code has to account for tab pages and contained controls being invalid/lost. Code quickly becomes complex.

Hence, I've often seen code setting .Visible on/off.

HTH /Michael

Comment
There are no comments made yet.
  1. Thursday, 10 October 2019
  2. PowerBuilder
  3. # 4
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.