|
-
Dec 12th, 2008, 04:57 PM
#1
Last edited by LaVolpe; Dec 18th, 2008 at 10:19 AM.
-
Dec 17th, 2008, 05:09 PM
#2
Re: [VB6] - Usercontrol PropertySheet Enumeration Enhancement
Updated. The zip in the first post contains the updates.
Added capability of displaying dialog boxes or modal forms vs a property page.
Example, let's say you wanted the ability to select a file from the property sheet just like the richt text control does. Now you can. Your property will get an ellipse button and then the usercontrol will be notified to display the appropriate dialog box.
-
Dec 18th, 2008, 10:24 AM
#3
Re: [VB6] - Usercontrol PropertySheet Enumeration Enhancement
18 Dec 08. Bug/Patch Report. Zip in 1st post, contains all updates.
Fixed major thread safety errors and tested uncompiled controls intermixed with compiled ocx's using the same subclassing technique. Now, no problems.
Lessons learned from this bug search:
1) VB's class function table (vTable) is aligned differently when class is uncompiled (32 bytes btwn entries) vs compiled (13 bytes). Thunk fixed to account for this by using a variable offset vs hardcoded offset
2) Use of mapped memory file was a good idea, but failed to remember that it is cross-process capable. Therefore, data stored in it was available to any process running the compiled/uncompiled controls. Fix was simply to ensure mapped files are thread specific.
So far, works like a champ. Please let me know if you encounter any errors.
Last edited by LaVolpe; Dec 18th, 2008 at 11:23 AM.
-
Oct 9th, 2019, 08:14 AM
#4
Re: [VB6] - Usercontrol PropertySheet Enumeration Enhancement

hello .... Is it possible to create a property page and display it as shown?
-
Oct 9th, 2019, 02:54 PM
#5
Re: [VB6] - Usercontrol PropertySheet Enumeration Enhancement
With lots of subclassing -- yes. 
Good luck with that. It becomes even more difficult because you have to undo/prevent VB doing what it wants to do (display a combbox listing), then make it behave the way you want without breaking VB. That is rarely an easy task.
-
Oct 10th, 2019, 07:30 AM
#6
Lively Member
Re: [VB6] - Usercontrol PropertySheet Enumeration Enhancement
Keith - brilliant as always.
The Filename property doesn't seem to stick
i. e. Selected a filename and the property still
indicates (No Filename Selected) plus
Debug.Print ucEnum1.FileName => Empty string
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
|