Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Folder browse button in Grid?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Folder browse button in Grid?

 Post Reply Post Reply
Author
Message
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Topic: Folder browse button in Grid?
    Posted: 24 January 2006 at 7:16pm

Is it possible to have a folder browse button as a PropertyItemType? Much like the browse works for fonts or colors in the Grid --except I want a folder browse. Is this possible?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 January 2006 at 9:33am

Just code from sample: (Actually why nobody check them???)

...

    Set ItemDirectory = Category.AddChildItem(PropertyItemString, "Directory", "C:\")
    ItemDirectory.Flags = ItemHasEdit + ItemHasExpandButton
    ItemDirectory.Id = ITEM_DIRECTORY
 

...

Private Sub wndPropertyGrid_InplaceButtonDown(ByVal Item As XtremePropertyGrid.IPropertyGridItem)
   
    Debug.Print "Inplace button down. Item.Caption = "; Item.Caption
   
    If Item.Id = ITEM_DIRECTORY Then
        Dim Shell As Object
        Dim FolderItems As Object
        Dim FolderItem As Object
       
        Set Shell = CreateObject("Shell.Application")
        Set FolderItems = Shell.BrowseForFolder(Form1.hWnd, "Directories", 0, "c:\")
        If Not (FolderItems Is Nothing) Then
             Set FolderItem = FolderItems.Items.Item
             Item = FolderItem.Path
        End If
        Set Shell = Nothing
    End If
End Sub
 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.094 seconds.