Print Page | Close Window

Command Button in Task Panel

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=17740
Printed Date: 12 December 2024 at 9:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Command Button in Task Panel
Posted By: waheed sobhy
Subject: Command Button in Task Panel
Date Posted: 02 January 2011 at 5:48am
Hi,
 
i add a command button in task banel but when click not excute ... when i removed this button from the panel it working fine
 
i need help how make control item working from taskpanel
 
 
 
 



Replies:
Posted By: Xander75
Date Posted: 21 January 2011 at 4:38am
Hi,

Can I ask how you are adding the button to the TaskPanel?

I have 2 buttons in the TaskPanel, however these are first placed inside a PictureBox (called PanelSearch in code below) then the PictureBox is attached to the TaskPanel. I do this when adding controls to the TaskPanel to avoid the issue when clicking a control it sometimes jumps out of the TaskPanel, using this method I have no problems with this ever.


    Dim Group As TaskPanelGroup
    Dim Item As TaskPanelGroupItem
   
    Set Group = wndTaskPanel.Groups.Add(0, "Search by any or all of the criteria below.")
   
    Group.Items.Add 0, "Part Status:", xtpTaskItemTypeText
    Set Item = Group.Items.Add(0, "", xtpTaskItemTypeControl)
    Set Item.Control = panel(0)
   
    Group.Items.Add 0, "Country:", xtpTaskItemTypeText
    Set Item = Group.Items.Add(0, "", xtpTaskItemTypeControl)
    Set Item.Control = panel(1)

    Group.Items.Add 0, "Brand:", xtpTaskItemTypeText
    Set Item = Group.Items.Add(0, "", xtpTaskItemTypeControl)
    Set Item.Control = panel(2)

    Set Item = Group.Items.Add(0, "", xtpTaskItemTypeControl)
    Set Item.Control = panelSearch


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net