LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with EasyTab and RecallPanelState

Now that you mentioned, I read your posts again.

 

It looks like we have different bugs! :

 

You have correct tab panel contents but incorrect tab title.

I have correct tab title but incorrect tab content.

 

To make it simple I attach the screenshots. See if it matches or not.

(I save when TAB1 is active and load when TAB2 is active, "Select TAB2" does not make a difference if used immediately after Load)

Message Edited by ebalci on 18-01-2010 04:33 PM
S. Eren BALCI
IMESTEK
0 Kudos
Message 11 of 13
(1,206 Views)

I think we have the same symptoms. My larger program attempted to programmatically save/restore the currently selected/active panel, and failed. I even tried to force a nominated panel before and after the save/recall: it failed as well. Which is when I decided to share my problem by posting a cut-down version on this board. The "Select TAB2" button illustrates why I have a problem - CVI is ignoring it as it thinks the panel is fine and so does nothing. The "Select TAB1" button seems to work for you (and me!) only because it is selecting a Tab that CVI realises is not active. Look at the code behind the buttons - it is the same!

 

My best option at the moment seems to be to always select a dummy panel first and then switch back to the real one. If the dummy is shown as being wrong then selecting the real one afterwards will clear things up. If the real one is shown wrong then selecting the dummy one will clear the fault and then showing the real one afterwards will work normally. Should work, its just a bit messy.

 

Thanks for your input!

 

JR

0 Kudos
Message 12 of 13
(1,199 Views)

A small clue on this issue: while investigating the unexpectedly large files that sometimes resulted from the SavePanelState() function, I realised that a very large part of these files is a screen dump! Upon executing RecallPanelState(), I'm guessing that the visible Tab area is actually being restored from the bitmap for the associated Canvas in the file, and not necessarily from the contents of the child Tab panel itself. It also appears that there are several bitmaps in the file, probably one for each Tab panel used, but I'm not certain about this.

 

(Creating an EasyTab control directly, without converting from a Canvas, didn't seem to make much difference.)

 

Curiouser and curiouser...

 

JR

0 Kudos
Message 13 of 13
(1,154 Views)