Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - Dynamic Items
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dynamic Items

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


Joined: 19 May 2010
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Letters Quote  Post ReplyReply Direct Link To This Post Topic: Dynamic Items
    Posted: 19 May 2010 at 10:54am
I'm trying to make my Task Panel items dynamic. We're coding in Visual Dataflex.
We've adapted the code in the demo and the structure of the code is like this:
 
Object oReport_Control_Group is a cSigCJTaskPanelGroup
            Set psLabel to "Accounts KPIs"
            Set psImage to "Order.ico"
           
            Object oReportControlText_GroupItem is a cSigCJTaskPanelGroupItem
                Set psLabel to "Orders"
                Set psImage to "Order.ico"
               
                Procedure OnClick
                    Handle hoClient
                    Get Client_Id to hoClient
                    Send Activate_SigCjReportControlDemo_Text_View of hoClient
                End_Procedure
            End_Object
End_Object
 
Making that dynamic is a problem. You can't put the inner Object definition in a loop in VDF far as I can see. For shortcuts there's an "Add_Item" Procedure which allows me to add items dynamically, there doesn't seem to be an equivalent for Task Bars. The closest I can see is "ComAdd". That does work in that it creates a new item in the group - I've tried doing this in the "Private.Create" of the GroupItem. I do then get two items showing so potentially that could be put into a loop but the On_Click of the GroupItem is fired for both items and I can't see a way of telling which is which and defining the action for each.
 
VDF is not well used so I'm not sure if anyone can help but I've run out of ideas so it's worth a try.
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.156 seconds.