Important alert: (current site time 7/16/2013 2:31:26 AM EDT)
 

winzip icon

PropertyGrid 1.3 (Update 05 Jan 2011)

Email
Submitted on: 1/6/2011 5:56:50 PM
By: Heriberto Mantilla Santamaria  
Level: Intermediate
User Rating: By 39 Users
Compatibility: VB 6.0
Views: 39050
author picture
(About the author)
 
     Addition 2 new themes, check out the screenshot, and more functions. New functions for the color manipulation. I think this the first control how this in PSC, this's a PropertyGrid based in the VB 6.0 PropertyGrid control (the screenshot tell all). The credits are in the UC, I used some UC of PSC contributor. Any comment are wellcome, ideas are good, vote is perfect for me but not are necessary :) NOTE: I tested in WinXP only but in various PC's. Thanks TerriTop

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 36 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

12/1/2006 8:11:12 PMSteppenwolfe

Good start. Scrollbars need some work though..
(If this comment was disrespectful, please report it.)

 
12/4/2006 4:46:17 AMLight Templer

Hi Heriberto, maybe also changing VB scrollbars to own? Scrolling should moving the properties immediatly and the design should be looking modern on older systems, too. I have a problem with clicks on + and - : I always need more than one to open / close. A very large project, much work in it! My ***** and regards - LiTe
(If this comment was disrespectful, please report it.)

 
12/4/2006 11:40:23 AMJuan Carlos San Román

An excellent start, keep on working. Try to include scrollbar to the usercontrol. My *****. Thanks for sharing this project.
(If this comment was disrespectful, please report it.)

 
12/5/2006 10:00:02 AMMike Douglas

excellent. more than just a start, in my experience all but complete! the scroll bars are not much of an issue, although would be nice if it accepted "big changes" instead of just arrow clicks. Also the +/- should be expanded/collapsed on single-click instead of double-click. You've got my 4*, will go to 5* with these simple changes...also...wow...clean code. thx
(If this comment was disrespectful, please report it.)

 
12/7/2006 2:21:41 AMIVan

Hola Maestro!!.
Very Good Work!!!
* * * * *
(If this comment was disrespectful, please report it.)

 
12/7/2006 9:59:15 AMHeriberto Mantilla Santamaria

Hi all, I work in the scrollbar and other things.

I update the project.

@Mike Douglas: You can expand/collapsed the grid with F3 or space.
(If this comment was disrespectful, please report it.)

 
12/7/2006 6:49:41 PMHeriberto Mantilla Santamaria

Now expand/collapsed with single click and I work hardly in the scrollbar's, I think work fine now.
(If this comment was disrespectful, please report it.)

 
12/7/2006 8:26:10 PMT Jackson

Unfortunately, I can't get to see all the glorious action with this since it's well and truly far from VB5 compatible. None the less, you have my thumbs up, there's comprehensive documentation, a tremendous amount of effort with the code. This submission is nothing short nor far from a very serious and genuine attempt at something good. *****
(If this comment was disrespectful, please report it.)

 
12/7/2006 8:46:06 PMT Jackson

One suggestion, for better clarity, it would be best to inc the ver num with updates. Or just specify (Update 6 Dec) without a ver num. Makes sense to have both, but they need to be in sync.
(If this comment was disrespectful, please report it.)

 
12/10/2006 8:05:05 AMNoName

Trent, when ya goonna get a copy of VB6? quit holding out and upgrade for heavens sake lol
(If this comment was disrespectful, please report it.)

 
12/10/2006 4:52:11 PMKalaash

Jackson why r u crticizing every body and giving advices its not good. its excellent work.
(If this comment was disrespectful, please report it.)

 
12/11/2006 9:27:31 AMMike Douglas

sweet...updates are great. cool, quick and clean. can't wait to use it on a project. updated to 5*, now just one holdout with a 4*, someone get ahold of "aliteraktif" and tell him to change his vote :) Thanks for the code Heriberto.
(If this comment was disrespectful, please report it.)

 
12/11/2006 3:00:56 PMHeriberto Mantilla Santamaria

Hi T. Jackson

Regrettably I don't have VB 5.0 to try to make it compatible, I'll try to look for it to see that possibilities are of implementing it for VB 5.0.

Thanks to all the votes and the comments.

I put in the next week one update more coz I don't have Internet in my home, I'm sorry for this.
(If this comment was disrespectful, please report it.)

 
12/13/2006 5:45:45 AMT Jackson

Get a copy of VB6? Nah, I'll merge over to .net sometime next year.
(If this comment was disrespectful, please report it.)

 
12/14/2006 4:29:04 PMHeriberto Mantilla Santamaria

I work in this moment in Tooltiptext's (for incomplete text) and in another project, I try to update this the next week.
(If this comment was disrespectful, please report it.)

 
12/15/2006 2:37:56 PMRichard Mewett

Good work Heriberto - nice to see you back :) *****
(If this comment was disrespectful, please report it.)

 
12/15/2006 3:31:45 PMMohammed Sayed

Impressive 5* :D
(If this comment was disrespectful, please report it.)

 
12/19/2006 2:32:02 PMmokh

Excellent *****. But i think this control will be better by using only original VB controls (CommandButton,Listview,DateTimePicker,Combobox instead of isButton,Coollist,McCalendar,Scombobox)
And perhaps by adding some other features inexistants in VB6 GridProperty
(If this comment was disrespectful, please report it.)

 
12/20/2006 1:58:12 AMHabin

Excellent!Does any one know Xtreme Suite ActiveX?thats contains this grid too.
(If this comment was disrespectful, please report it.)

 
12/20/2006 10:30:55 AMHeriberto Mantilla Santamaria

Hi Habin, good to see you, I knew the Xtreme Suite is really good ^^, but isn't free ActiveX :(, for this I developed this, I remember you needed a grid since last month and Juan Román too.
(If this comment was disrespectful, please report it.)

 
12/20/2006 7:28:24 PMJose

Ohh my god! A nice code! Congratulations!
(If this comment was disrespectful, please report it.)

 
12/22/2006 12:30:03 PMRuturaj

I'm trying different settings and properties of this control and so far I'm not able to figure out one thing ... I'm not able to collect Bold/Italics/Underline etc. information of Font dialog. When I click the button for Font in PropertyGrid control and set Bold, the Value on ValueChanged event somehow not returning it to my StdFont variable that collects it. I checked in User Control code and there it does return Bold = True while preparing data to return as Value; but when that collected in ValueChanged event, it always returs False for Bold/Italics etc. What I'm doing wrong? Am I missing anything here? Please advise.
(If this comment was disrespectful, please report it.)

 
12/23/2006 7:04:47 PMHeriberto Mantilla Santamaria

Hi Ruturaj, yeah you're right I work in this rare bug, thx for the feedback.
(If this comment was disrespectful, please report it.)

 
1/27/2007 6:32:05 AMCataLyst-KK

Good work! try fpx spread sheet. i think its free. then you will discover that you waisted time in creating control. 5 globes *****.

Ok now what about bounding it to any database or xml or txt stream ???

(If this comment was disrespectful, please report it.)

 
1/27/2007 10:19:33 AMRuturaaj

Hi Heriberto, I downloaded and tested your updated control but still I could not gather the sub-info of property. (such as Size of Font etc.). Have you addressed this issue which we discussed earlier?
(If this comment was disrespectful, please report it.)

 
1/27/2007 11:08:08 AMMauricio Cunha

Is necessary create a propertie to return the value of a propertie in child collection
(If this comment was disrespectful, please report it.)

 
1/27/2007 1:15:15 PMRuturaaj

I saw your code and in isButton_Click, for Font, you're directly setting the return value as psFont.sSelectedFont!! The easiest work around I see for this issue is following the Common Dialog Control style of Property structure. Just make those dialog properties as Public available under PropertyGrid control interface. On ValueChanged, I will collect the name of font directly from Value whilst if required, I will simply access the other related properties of control. So, for example, I will collect Font Name from Value and then I will look for a Common Dialog Control style property FontSize, FontBold etc. to collect related information. I don't know if this sort of implementation is possible easily or not. Just wanted to give a thought. What you think?
(If this comment was disrespectful, please report it.)

 
2/1/2007 5:34:01 PMHeriberto Mantilla Santamaria

Hi Ruturaaj yeah I see your comment and I search about of how implement Sub-Info Property, is really hard to pass all information about the control in one structure.

Anyway I work in Tooltiptext incomplete text and full property values return, for appearance I debug any possible bugs.

@CataLyst-KK: You can explain me more your suggestion, please.
(If this comment was disrespectful, please report it.)

 
2/5/2007 9:11:34 AMHeriberto Mantilla Santamaria

I found an easy solution for the font problem, I reupload the project again.
(If this comment was disrespectful, please report it.)

 
2/7/2007 3:36:27 PMOli

Great code, thank you very much !5****** !
Small bug: if you use the control in a form, that is set to TOPMOST, list (e.g. for boolean values) will not open anymore.

To reproduce, add the following statement into your sample form('frmPPal'):

Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

in form_load event:

SetWindowPos frmpPal.hwnd, -1, 0, 0, 0, 0, 3

(If this comment was disrespectful, please report it.)

 
2/9/2007 3:05:01 AMRuturaaj

Hi! That was great and easiest way to have the Font issue resolved! Aah, before your updated version, what I did is ... I exposed the Font common dialog box properties as control's public properties. So, what I was doing is ... if the Font value-set is to be collected from control then I used to get the Font name from Value on ValueChanged and then access other properties in the same way as we do in Font common dialog! While putting time and effort in doing all this, I didn't have a slight hint of adding a ByVal to ValueChanged event itself! LOL! Thanks so much for your update.
(If this comment was disrespectful, please report it.)

 
2/9/2007 4:33:45 PMHeriberto Mantilla Santamaria

Hi Oli I see the problem and try to fixed, I found a new bug in the appearance too.

Hi Ruturaaj this small changed work for you or take a new idea or new's suggestion?

Sorry my english is really poor :(
(If this comment was disrespectful, please report it.)

 
2/11/2007 10:54:09 AMOli

I found the solution for the TOPMOST problem: in SCmb_click, simply add the following line:
SetWindowPos lstFX1.hwnd, -1, 0, 0, 0, 0, 2 Or 1
(If this comment was disrespectful, please report it.)

 
2/19/2007 8:46:56 AMHeriberto Mantilla Santamaria

Thanks Oli for this soluction
(If this comment was disrespectful, please report it.)

 
3/16/2007 11:26:39 PMTerriTop

Nice update Heriberto! I like this project a lot....any chance you will provide support for native API scrollbars in future releases? GDuncan (PCSID=59803) has built a nice tool which would allow drop in place replacement of the current Win9x versions....keep up the great work! TerriTop
(If this comment was disrespectful, please report it.)

 
3/17/2007 10:18:10 AMTerriTop

Heriberto, found the bug/feature with the scrolling which does not update the grid until mouseup....in the zWndProc1, WM_VSCROLL case, move the ReDraw from the SB_ENDSCROLL to the outer case (i.e. just before the End Select for the VSCROLL) this will yield smooth scrolling instead of the current which is more jumpy (is this a word?)....hope this helps TerriTop
(If this comment was disrespectful, please report it.)

 
3/17/2007 10:42:21 AMHeriberto Mantilla Santamaria

Thx for the comment TerriTop, I worked some hours for update this control, I think added more functions, i.e. set the Colors in Hex, RGB or Website color, support for ListView control, List for images Only and other things.

I check out the GDuncan code.

Again thx for the comment.
(If this comment was disrespectful, please report it.)

 
3/19/2007 4:15:51 PMManuel Arroz

Te Felicito, Buen Trabajo!

(If this comment was disrespectful, please report it.)

 
3/20/2007 1:09:31 PMHeriberto Mantilla Santamaria

Gracias Manual ^^.

New update with more functions and fixed some bugs, thx TerriTop.
(If this comment was disrespectful, please report it.)

 
3/20/2007 4:15:14 PMHeriberto Mantilla Santamaria

Lo siento me equivoque en tu nombre Manuel, agradezco el comentario igualmente.
(If this comment was disrespectful, please report it.)

 
3/29/2007 2:01:14 AMAmol Tarte

Hi Heriberto! Excellent work dear!
Some updates should be done such as, If you change the font, it works fine but when you again click on the property grid, it reverts to its previous font!
(If this comment was disrespectful, please report it.)

 
4/3/2007 4:06:35 PMHeriberto Mantilla Santamaria

Hi Arnol, you can show me an example?

Thx for the report bug.
(If this comment was disrespectful, please report it.)

 
4/16/2007 1:35:23 PMBody_of_Rays

A single file user control would be more interesting... But i have to say: great job! :)
(If this comment was disrespectful, please report it.)

 
4/16/2007 4:47:49 PMHeriberto Mantilla Santamaria

Hi body is true, but draw all controls in a single file is very difficult to find a bug and scale the all project, for this I used another controls.
(If this comment was disrespectful, please report it.)

 
4/16/2007 10:52:54 PMenmity

check out Steppenwolfe's cODC class in his vhgrid submission, it can owener draw all common controls without any user controls.

(If this comment was disrespectful, please report it.)

 
4/18/2007 5:03:52 AMIvan TP

I like it very much the Windows Themes,
COOL!
(If this comment was disrespectful, please report it.)

 
4/23/2007 11:17:13 PMenmity

the draw speed seems need to be improved, it took a few seconds to show the test form.
(If this comment was disrespectful, please report it.)

 
7/26/2007 11:26:04 AMHeriberto Mantilla Santamaria

Update with more options, I try to solve the problem with the speed draw.
(If this comment was disrespectful, please report it.)

 
9/20/2007 11:20:17 AMJakeBullet

Hi Heriberto. Very nice work. One of the best on PSC. Everything is good except I have the same Font issue as mentioned above. You change it and it disappears. Also too. Is the a way to save the contents to an external file? One way or another. 5 big ones.
(If this comment was disrespectful, please report it.)

 
9/20/2007 1:06:41 PMJakeBullet

Font BUG fix!
Note: All the code changes are in the PropertyGrid.ctl
1 - add this new function torwards the top as it can blow chunks with all the sub classing.

Private Function CloneFont(Font As StdFont) As StdFont
Set CloneFont = New StdFont
CloneFont.Name = Font.Name
CloneFont.Size = Font.Size
CloneFont.Bold = Font.Bold
CloneFont.Italic = Font.Italic
CloneFont.Underline = Font.Underline
CloneFont.Strikethrough = Font.Strikethrough
End Function

2 - Search for 'ElseIf (ChildOrd(j).TypeGrid = PropertyItemFont) Then'
Two lines below you will see 'Set lFont = ChildOrd(j).theFont'
Change to 'Set lFont = CloneFont(ChildOrd(j).theFont) '

At least this is working for me... :)
(If this comment was disrespectful, please report it.)

 
10/17/2007 2:22:06 PMHeriberto Mantilla Santamaria

Hi JakeBullet, mmm you can loop the PropertyGrid and save all info in any file, you can use GetCountCategory and GetCountChild combine with GetChildValue
(If this comment was disrespectful, please report it.)

 
10/22/2007 6:33:15 AMHabin

Very happy to see your classic again!
(If this comment was disrespectful, please report it.)

 
10/13/2008 10:29:17 PMHabin

It has an error in my system.When I open fontdialog,it prompt me overflow at line 4563.It's not support unicode font.
(If this comment was disrespectful, please report it.)

 
10/20/2008 10:31:48 AMHeriberto Mantilla Santamaria

Hi Habin, yeah the program don't support Unicode Font dialog, I try to check out one solution.

Thx for the comment.
(If this comment was disrespectful, please report it.)

 
1/8/2011 5:57:56 PMAndyCODE

5 years of this great project is soon...;-)

>>ideas are good
I think, database binding would be great, plus data 'pagination' (paging). Suppose, if data is huge, serve it for control can display if something like 'GoFwd'/'GoBack' used. M?

(If this comment was disrespectful, please report it.)

 
1/14/2011 12:54:35 PMAndyCODE

Despite I asked moderator to delete this my comment before it diplayed here (it`s my mistake: a comment for another post, for another grid) this is published. never mind ;-) Moderator is sleeping or is deadly drunk, may be...(((((
(If this comment was disrespectful, please report it.)

 
2/25/2011 1:55:15 PMbrandon

good work but painfully slow
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.