Print Page | Close Window

Checkbox in popup

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16550
Printed Date: 28 September 2024 at 5:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Checkbox in popup
Posted By: b4gn0
Subject: Checkbox in popup
Date Posted: 01 April 2010 at 11:03am
Hello,

is it possible to add a checkbox (and of course handle it's state as it changes) inside a PopupControl?

I know this can be done with XAML but I was unable to listen for state changes / read the value of the checkbox.


-------------
     Product: Xtreme SuitePro (ActiveX) version 15.1.2
     Platform: Windows 7 SP 1 (64bit)
     Language: Visual Basic 6.0 - SP6



Replies:
Posted By: Baldur
Date Posted: 07 April 2010 at 12:50pm
I design my Popup-Dialogs all in a picturbox and assign the picturebox-hwnd to the popupcontrol.
Than i can use all controls and handle there events.


Posted By: b4gn0
Date Posted: 07 April 2010 at 12:51pm
Thank you Baldur for your response.

Is there any example on how to do this?


-------------
     Product: Xtreme SuitePro (ActiveX) version 15.1.2
     Platform: Windows 7 SP 1 (64bit)
     Language: Visual Basic 6.0 - SP6


Posted By: Baldur
Date Posted: 14 April 2010 at 11:23am

For example:

    Dim xControlList As CommandBarControlCustom
    
    With cmdFunctions.Add("FilterPopup", xtpBarPopup)
        .Title = "Filter"
        Set xControlList = .Controls.Add(xtpControlCustom, 5010, "List")
        xControlList.Handle = picFilter.hWnd
                
        picFilter.Visible = True
        
        .ShowPopup TPM_RETURNCMD
    End With
With my picFilter i can use all controls i want. Additionally you need a button, to decide if a user click OK or outside the popup, in th Button_Click-Event you can do what you want:
 
Private Sub cmdFilterOK_Click()
    cmdFunctions.ClosePopups
    picFilter.Visible = False
end sub



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