Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Task Panel Buttons missing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Task Panel Buttons missing

 Post Reply Post Reply
Author
Message
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Topic: Task Panel Buttons missing
    Posted: 29 April 2005 at 10:20am

I have a very strange problem with Task Panel. I use four task panel groups and use picture boxes with buttons inside on each of them to display buttons.

Everything looked right, but now one customer shows me a screen shot where all the buttons are missing. The task panel itself looks alright, but the custom controls on them are gone.

How can that be? What could I do next?

 

Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2005 at 3:42am

In addition, the customer now reports getting error messages like "method ~ of ~ failed". It is an XP Home SP2 with all available updates.

The screen shot shows that the custom controls seem to be missing altogether. There is no "blank space" where they should be but instead the panel just looks as if there was no custom controls on that panel.

Any clues anybody?

 

 

Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 2005 at 2:51am

I reduced the code to the essential minimum. Still, on some XP SP2 systems, the button and text field is invisible. Did I do something wrong in the code? Could it be that virus scanners interfere? Again, on most systems things are as expected, but on some systems the control gets lost...

Here's the code:

Private Declare Function InitCommonControls Lib "Comctl32.dll" () As Long

Dim Group1 As TaskPanelGroup
Dim Item As TaskPanelGroupItem

Private Sub Form_Initialize()
    InitCommonControls
End Sub

Private Sub Form_Load()
    Set Group1 = wndTaskPanel.Groups.Add(0, "CheckAccount")

    With Group1
        pb1.Visible = True
        .Special = True
        .IconIndex = 2
        .Expandable = True
       
        .Caption = "Dies ist ein Test"
        .CaptionVisible = True
        .Enabled = True
       
        .Items.Clear
        Set Item = .Items.Add(0, "Dies ist ein Testtext.", xtpTaskItemTypeText, 2)
        Set Item = .Items.Add(1, "Dies ist ein Testtext.", xtpTaskItemTypeText, 2)
        Set Item = .Items.Add(2, "Dies ist ein Testtext.", xtpTaskItemTypeText, 2)
    
        Set .Items.Add(3, "", xtpTaskItemTypeControl).Control = pb1
    End With
End Sub

Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 2005 at 12:44pm

Thanks for all the help and support !

I managed to solve the problem now myself although I have no clue why it originally worked on some systems and not on others.

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: 06 May 2005 at 1:57am

It can be Animation property. Change it back to "AnimationYes" and set it As "AnimationSystem" after you create all controls.

It will be fixed in 9.70

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2005 at 4:15pm
When will 9.70 be available?
Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2005 at 4:18pm

By the way, my findings were:

if Animation is set to NO before controls are added, they may get lost. This is essentially what you are suggesting, too.

ALSO, if taskpanel is not the foremost control, buttons and stuff may also get lost, however this may or may not be the case, behavior is different from system to system...

 

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.