-
Aug 21st, 2024, 04:34 PM
#3841
Re: CommonControls (Replacement of the MS common controls)
Mustaphi,
which 1.8 version do you have ? (revision)
-
Aug 21st, 2024, 05:27 PM
#3842
Fanatic Member
Re: CommonControls (Replacement of the MS common controls)
Originally Posted by Krool
Mustaphi,
which 1.8 version do you have ? (revision)
version 1.8.27
https://www.vbforums.com/showthread....55#post5129155
-
Aug 22nd, 2024, 02:21 AM
#3843
Addicted Member
Re: CommonControls (Replacement of the MS common controls)
I've the same problem, I try with the ocx and with the exe version. And, also, when I put a file jpg as picture in design time, this is not displayed, either at design time or at run time.
Would be a problem with the OS version or VB6 version?
-
Aug 22nd, 2024, 10:34 AM
#3844
Re: CommonControls (Replacement of the MS common controls)
Internal improvement for the ToolBar control.
There are no redraw/refresh issues anymore on design time. (IDE)
Also some code optimization to increase performance.
Also adjustment for CoolBar concerning child sizes.
Some childs, e.g. ToolBar, re-size itself.
The CoolBar adjusted in the past when the child size increased, now it adjusts also when it decreases. (But CY must be > 0 for the child to avoid false adjustment)
I didn't update change log, falls all under the recent internal improvement.
Info: the reactos toolbar.c source helped a lot solving some last edge cases and be more straight forward in the quirks.
Update: MaxTextRows property is now allowed to be set to 0 in the ToolBar control.
Last edited by Krool; Aug 23rd, 2024 at 02:41 PM.
-
Aug 29th, 2024, 09:11 AM
#3845
Junior Member
Re: CommonControls (Replacement of the MS common controls)
I noticed that MSCOMCTL had an enum defined called ClipboardConstants which VBCCR (1.7) does not seem to include. IDL definition from MSCOMCTL pasted below.
While it would be nice if this were in VBCCR, I'm sure there was a good reason to omit it. Probably nothing else in the same library utilizes it. (It is similarly not referenced anywhere in the MSCOMCTL IDL).
Are there any recommendations for a suitable replacement? Obviously I can define my own enum with the same values but if there is a pre-existing standard place [e.g, DLL] to get it from that would be better.
Thanks!
Code:
typedef [uuid(D8898462-742F-11CF-8AEA-00AA00C00905), helpstring("Clipboard format constants."), helpcontext(0x00033681)]
enum {
ccCFText = 1,
ccCFBitmap = 2,
ccCFMetafile = 3,
ccCFDIB = 8,
ccCFPalette = 9,
ccCFEMetafile = 14,
ccCFFiles = 15,
ccCFRTF = -16639
} ClipBoardConstants;
Last edited by DaveInCaz; Aug 29th, 2024 at 11:37 AM.
-
Aug 29th, 2024, 09:29 AM
#3846
Re: CommonControls (Replacement of the MS common controls)
From MSDN:
Code:
Constant Value Description
vbCFRTF -16639 Rich Text Format (.rtf file)
vbCFLink -16640 DDE conversation information
vbCFText 1 Text (.txt file)
vbCFBitmap 2 Bitmap (.bmp file)
vbCFMetafile 3 Metafile (.wmf file)
vbCFDIB 8 Device-independent bitmap
vbCFPalette 9 Color palette
vbCFEMetaFile 14 Enhanced metafile (.emf file)
vbCFFiles 15 File list from Windows Explorer
-
Sep 9th, 2024, 12:26 PM
#3847
Re: CommonControls (Replacement of the MS common controls)
Update released.
The height of the header will now be adjusted according to ColumnHeaderIcons in the ListView control.
This is the same behavior as for the original MS ListView control for VB6. An ImageList of 32x32 will therefore increase the header portion.
To note is that when VisualStyles are set or HDS_FLAT is set there is no extra spacing added as not necessary.
Else the spacing (2x SM_CYEDGE) is added for the classic edges so that the icon better fits. (and to match MS ListView behavior)
When HDS_FILTERBAR is set the header must be set x2. So, for an 32x32 icon the size is treated as 64px.
-
Sep 10th, 2024, 11:49 AM
#3848
Re: CommonControls (Replacement of the MS common controls)
Update released.
Internal improvement for the ImplementThemedReBarFix for the CoolBar control. (usage of GetThemePartSize)
-
Sep 14th, 2024, 12:45 PM
#3849
Re: CommonControls (Replacement of the MS common controls)
Update released.
Internal improvement in the DrawPanel method for the StatusBar control.
For the center alignment there was a minor calc. bug when a picture is set and for higher dpi's it matches now 100% as a non-ownerdraw statusbar would display.
Also there was 1px offset in the Y pos of the text output vs. non-ownerdraw statusbar.
Also the internal GetGoodWidth function for auto-size is adjusted to these fixes.
-
Sep 14th, 2024, 01:25 PM
#3850
Re: CommonControls (Replacement of the MS common controls)
Deleted, Krool responded with good answer in the Q&A section of these forums.
Last edited by Elroy; Sep 16th, 2024 at 08:07 AM.
Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.
-
Sep 17th, 2024, 11:15 AM
#3851
Re: CommonControls (Replacement of the MS common controls)
Update released.
Bugfix that the Text property was not the default property in the SbrPanel object.
Included the PictureOnRight property of a Panel in the StatusBar control.
I needed to edit the type lib for SbrPanel anyway in the VBCCR18.OCX. Thus the new PictureOnRight property is also included. (similar to IconOnRight in LvwColumnHeader)
The Picture of a Panel will now be drawn embossed when the Enabled property is False in the StatusBar control.
Also the grayed text is now drawn using TextOut instead of DrawState for standard VB-ish appearance.
Bug in the internal ReCreateToolBar method that the button menus picture property was not restored.
-
Sep 24th, 2024, 07:00 AM
#3852
Member
Re: CommonControls (Replacement of the MS common controls)
Maybe it is already known, but I did not :
Code:
Private Sub Form_Load()
ImageCombo1.Text = vbNullString
ImageCombo2.Text = ""
End Sub
In this case, ImageCombo1 will not be empty whereas ImageCombo2 will. (only tested in the IDE).
-
Sep 25th, 2024, 01:12 AM
#3853
Re: CommonControls (Replacement of the MS common controls)
Originally Posted by Crapahute
Maybe it is already known, but I did not :
Code:
Private Sub Form_Load()
ImageCombo1.Text = vbNullString
ImageCombo2.Text = ""
End Sub
In this case, ImageCombo1 will not be empty whereas ImageCombo2 will. (only tested in the IDE).
Thanks. No it was not aware, will fix soon at next oppurtunity.
It seems like the ComboBoxEx class doesn't like a null pointer.
EDIT: Fixed. Thx
Last edited by Krool; Sep 26th, 2024 at 01:32 AM.
-
Re: CommonControls (Replacement of the MS common controls)
Update released.
Bugfix in the ListBoxW when Style is 1 - Checkbox or 2 - Option at higher DPI.
The old code for the checkbox or optionbutton image was:
Code:
ListBoxStateImageSize = (15 * PixelsPerDIP_X())
However, at some DPI's it was wrong. The new code is:
Code:
ListBoxStateImageSize = (13 * PixelsPerDIP_X()) + 2
The padding is always fixed at 2. (for hit-testing/item height etc. the 2 × 1px space padding is important)
The actual image is then drawn without this padding. (then effectively ListBoxStateImageSize - 2)
Last edited by Krool; Today at 11:25 AM.
-
Fanatic Member
Re: CommonControls (Replacement of the MS common controls)
Ok... feeling stupid here. Most of the controls seem to work well but a few give an error when added to a form:
The X control requires at least version 6.0 of comctl32.dll
Now it wants me to make a manifest for my project. Bit lost here. Can somebody explain it to me like I'm 5... what am I supposed to do to make a manifest for version 6.0 of comctl32.dll?
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
|