Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Checkbox in popup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Checkbox in popup

 Post Reply Post Reply
Author
Message
b4gn0 View Drop Down
Groupie
Groupie


Joined: 26 November 2007
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote b4gn0 Quote  Post ReplyReply Direct Link To This Post Topic: Checkbox in popup
    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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
b4gn0 View Drop Down
Groupie
Groupie


Joined: 26 November 2007
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote b4gn0 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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
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.172 seconds.