|
-
Dec 7th, 2001, 08:52 AM
#1
Thread Starter
Frenzied Member
Is there a control similar to the VB6 properties window?
Hello there! This is my first post to General VB in absolutely ages 
Anyway here's the problem: I need a control that will do what the properties window in VB6 does - a list of different named attributes with corresponding input facilities next to the names. Attributes that are plain text get textboxes next to them, those that are files get those textboxes with the [...] button that brings up the file dialog, attributes which have a certain number of constants get a combobox with the list of constants available by dropping down the list..... I think you get the idea 
So, is there a control that does this? I figure there must be since it's used in a few places and seems like a useful kinda thing.
Any suggestions?
Harry.
"From one thing, know ten thousand things."
-
Dec 7th, 2001, 09:34 AM
#2
Bouncy Member
lookup "property pages" in the MSDN help
You can create property pages for your own ActiveX controls, i think that's what you're after.
Good luck
-
Dec 7th, 2001, 09:36 AM
#3
Frenzied Member
i assume your talking about properties for your activex controls
if yes, then go through the activex wizard.
then add "property" wizard to your "addin manager"
-
Dec 7th, 2001, 09:54 AM
#4
This will give you the same properties page, for a file, that Windows gives you.
VB Code:
Private Type SHELLEXECUTEINFO
cbSize As Long
fMask As Long
hwnd As Long
lpVerb As String
lpFile As String
lpParameters As String
lpDirectory As String
nShow As Long
hInstApp As Long
lpIDList As Long 'Optional parameter
lpClass As String 'Optional parameter
hkeyClass As Long 'Optional parameter
dwHotKey As Long 'Optional parameter
hIcon As Long 'Optional parameter
hProcess As Long 'Optional parameter
End Type
Private Const SEE_MASK_INVOKEIDLIST = &HC
Private Const SEE_MASK_NOCLOSEPROCESS = &H40
Private Const SEE_MASK_FLAG_NO_UI = &H400
Private Declare Function ShellExecuteEx Lib "shell32.dll" (SEI As SHELLEXECUTEINFO) As Long
Private Sub ShowProperties(filename As String, OwnerhWnd As Long)
'open a file properties property page for
'specified file if return value
Dim SEI As SHELLEXECUTEINFO
'Fill in the SHELLEXECUTEINFO structure
With SEI
.cbSize = Len(SEI)
.fMask = SEE_MASK_NOCLOSEPROCESS Or _
SEE_MASK_INVOKEIDLIST Or _
SEE_MASK_FLAG_NO_UI
.hwnd = OwnerhWnd
.lpVerb = "properties"
.lpFile = filename
.lpParameters = vbNullChar
.lpDirectory = vbNullChar
.nShow = 0
.hInstApp = 0
.lpIDList = 0
End With
'call the API to display the property sheet
Call ShellExecuteEx(SEI)
End Sub
'Usage: Place the full path and file name in the text box
Private Sub Command1_Click()
Call ShowProperties((Text1.Text), Me.hwnd)
End Sub
-
Dec 7th, 2001, 10:29 AM
#5
Thread Starter
Frenzied Member
Thanks guys 
What I am actually after is an ActiveX control that is, in itself, this properties window. I'm not actualls asking for something I'm doing personally, it's one of the guys I work with. I think he wants to embed this flexible property list, containing properties he can define at runtime, into a web page.
Is that possible with what you're suggesting?
Harry.
"From one thing, know ten thousand things."
-
Dec 9th, 2001, 09:59 PM
#6
Thread Starter
Frenzied Member
Harry.
"From one thing, know ten thousand things."
-
Dec 9th, 2001, 10:30 PM
#7
Edanmo has one (www.domaindlx.com/e_morcillo) and I think there's one on VB2TheMax (www.vb2themax.com).
There are also a few commercial ones out and about - if you are prepared to pay, go to www.componentsource.com and have a butchers...
- gaffa
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|