Page 97 of 97 FirstFirst ... 478794959697
Results 3,841 to 3,855 of 3855

Thread: CommonControls (Replacement of the MS common controls)

  1. #3841

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,496

    Re: CommonControls (Replacement of the MS common controls)

    Mustaphi,
    which 1.8 version do you have ? (revision)

  2. #3842
    Fanatic Member
    Join Date
    Jan 2016
    Posts
    803

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    Mustaphi,
    which 1.8 version do you have ? (revision)
    version 1.8.27
    https://www.vbforums.com/showthread....55#post5129155

  3. #3843
    Addicted Member gilman's Avatar
    Join Date
    Jan 2017
    Location
    Bilbao
    Posts
    202

    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?
    Attached Images Attached Images   

  4. #3844

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,496

    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.

  5. #3845
    Junior Member
    Join Date
    Nov 2015
    Posts
    31

    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.

  6. #3846
    Frenzied Member VanGoghGaming's Avatar
    Join Date
    Jan 2020
    Location
    Eve Online - Mining, Missions & Market Trading!
    Posts
    2,023

    Talking 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

  7. #3847

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,496

    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.

  8. #3848

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,496

    Re: CommonControls (Replacement of the MS common controls)

    Update released.

    Internal improvement for the ImplementThemedReBarFix for the CoolBar control. (usage of GetThemePartSize)

  9. #3849

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,496

    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.

  10. #3850
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,526

    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.

  11. #3851

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,496

    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.

  12. #3852
    Member
    Join Date
    Mar 2020
    Posts
    43

    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).

  13. #3853

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,496

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Crapahute View Post
    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.

  14. #3854

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,496

    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.

  15. #3855
    Fanatic Member
    Join Date
    Oct 2005
    Posts
    575

    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?

Page 97 of 97 FirstFirst ... 478794959697

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width