![]() |
SetVisible problem |
Post Reply
|
| Author | |
robosport
Groupie
Joined: 20 June 2005 Location: United States Status: Offline Points: 62 |
Post Options
Thanks(0)
Quote Reply
Topic: SetVisible problemPosted: 29 April 2008 at 5:31am |
|
I'm using CommandBars->FindControl( xtpControlButton, menuItemID, FALSE, TRUE ); to locate a hidden CXTPControl* and then calling SetVisible member of the CXTPControl to show it.
I have confirmed (debugger step throughs and asserts) I'm finding the pointer to the control just fine everytime, but sometimes when I call SetVisible( TRUE ) the control stays hidden. I know the call is being made with the TRUE parameter but the control remains hidden - sometimes but not always
.Is there something else I need call after SetVisible to force a control, menu, interface, etc. to update?
Thanks!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 April 2008 at 7:59am |
|
Hi,
FindControl is very bad solution - user can remove this control, copy to some toolbar etc. Use Update handlers or Actions.
See Actions sample.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |