Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Missing DeleteHiddenCommand
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Missing DeleteHiddenCommand

 Post Reply Post Reply
Author
Message
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post Topic: Missing DeleteHiddenCommand
    Posted: 14 December 2008 at 6:48am
Hi
 
I can set a command in a commandbar as hidden with the method .AddHiddenCommand <ID>. But I miss .DeleteHiddenCommand <ID> and .DeleteAllHiddenCommands!
 
I need this because I create a dynamic pop up menu with some hidden command buttons. Each time I create this, the previously added hidden IDs are still there.  Here a simplified sample:
 
Sub ShowPopup(ByVal Hidden As Integer)
  Set POPUP=ffMain.CommandBars.Add("POPUP",xtpBarPopup")
  For i=0 to 5
    Set Control=POPUP.Controls.Add(xtpControlButton,i,CStr(i))
    if i=Hidden Then ffMain.CommandBars.Options.AddHiddenCommand i
  Next i
 
  POPUP.ShowPopup
  POPUP.Controls.DeleteAll
  Set POPUP=Nothing
End Sub
 
If I call this Sub more than once with different arguments 'Hidden' the hidden commands accumulate but I need to hide only this one.
 
BETTER: The added hidden command should be removed if the control was removed (.Controls.DeleteAll).
 
Thanks for looking at this
 
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 December 2008 at 1:29am
Hi,
 
Thanks, RemoveHiddenCommands added.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post Posted: 15 December 2008 at 3:54am
Thanks for adding the new method.
 
Would it be possible to download the changed OCX?
 
Thanks again!
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2008 at 2:03am
Hi,
Send email to support.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.