1. MARKOVIC Marko
  2. PowerBuilder
  3. Thursday, 10 October 2019 12:46 PM UTC

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

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 10 October 2019 17:51 PM UTC
  2. PowerBuilder
  3. # 1

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

Comment
There are no comments made yet.
MARKOVIC Marko Accepted Answer Pending Moderation
  1. Thursday, 10 October 2019 14:24 PM UTC
  2. PowerBuilder
  3. # 2

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
  1. Michael Kramer
  2. Thursday, 10 October 2019 15:10 PM UTC
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. Helpful
  1. David Peace (Powersoft)
  2. Thursday, 10 October 2019 16:00 PM UTC
So there is no code making the tab/tab_page invisible in any event or function?
  1. Helpful
  1. Roland Smith
  2. Thursday, 10 October 2019 18:12 PM UTC
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. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 10 October 2019 14:10 PM UTC
  2. PowerBuilder
  3. # 3

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.
Michael Kramer Accepted Answer Pending Moderation
  1. Thursday, 10 October 2019 14:10 PM UTC
  2. PowerBuilder
  3. # 4

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.
  • Page :
  • 1


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