Checkbox in popup |
Post Reply |
Author | |
b4gn0
Groupie Joined: 26 November 2007 Status: Offline Points: 30 |
Post Options
Thanks(0)
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 |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
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.
|
|
b4gn0
Groupie Joined: 26 November 2007 Status: Offline Points: 30 |
Post Options
Thanks(0)
|
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 |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |