Page 69 of 105 FirstFirst ... 19596667686970717279 ... LastLast
Results 2,721 to 2,760 of 4199

Thread: CommonControls (Replacement of the MS common controls)

  1. #2721

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by pepegriyo2016 View Post
    Hello,
    Bug:
    On the button, when you add a picture, the "style" property does not change to "vbButtonGraphical"
    It's not a bug. You can have a picture assigned with either style, normal or graphical.

  2. #2722
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    540

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    Is it free? Where could i download it?
    No, its not for free but you can download a free test version at this website: FolderView ActiveX Control

    VB example project: test - Command button.zip

  3. #2723

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by pepegriyo2016 View Post
    The Name of Variable is different in Original Texbox of Microsoft

    El nombre de la variable de TextBox original de Microsoft es KeyAscii

    Code:
    Private Sub Text1_KeyPress(KeyAscii As Integer)
    
    End Sub


    In this project the name of variable is KeyChar in event KeyPress

    Code:
    Private Sub TextBoxW1_KeyPress(KeyChar As Integer)
    
    End Sub
    That's absolutely not harmful.
    VB6 events do not care about param names as long as the types are correct. So any migration won't fail.
    If you add new events then the name is 'KeyChar' but if you want you can rename to 'KeyAscii' in the form. It will succeed.

  4. #2724

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Elroy View Post
    I thought about speed as well, but Krool is only making those calls when the window is being destroyed. So, it's not calling those functions every time through the subclassing procedure. Either way is fine with me. I just thought it would be a little nicety for me and maybe others who organize their module names like I do.
    Yes, should not be a big deal. Anyhow, I updated now ComCtlsBase.bas (and VBFlexGridBase.bas) to not to reference itself.
    It's done now as LaVolpe suggested with an internal module variable.

  5. #2725

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Mith View Post
    No, its not for free but you can download a free test version at this website: FolderView ActiveX Control

    VB example project: test - Command button.zip
    Ok, I installed it on a dummy VM and could replicate it.

    The reason is that VB6 still thinks the UserControl is active and sends UserControl_AccessKeyPress on CommandButtonW.

    So be patient, solution will come.
    Last edited by Krool; Apr 19th, 2020 at 01:56 PM.

  6. #2726

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Update released.

    Forgot to include WM_KILLFOCUS DeActivateIPAO on CheckBoxW/CommandButtonW/CommandLink/LinkLabel/OptionButtonW.

    @ Mith, your issue is now fixed.. Thanks for pointing out.

  7. #2727
    Member
    Join Date
    Aug 2016
    Posts
    52

    Re: CommonControls (Replacement of the MS common controls)

    Hello Krool,
    Object IPAddress in .ocx.

    Exist the .Address Property

    In Exe Module, exist .Text or .Value

    Could You check this?

  8. #2728

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by pepegriyo2016 View Post
    Hello Krool,
    Object IPAddress in .ocx.

    Exist the .Address Property

    In Exe Module, exist .Text or .Value

    Could You check this?
    Yes, it was changed on 17-Apr-2020. Once VBCCR17 will be released the OCX and Exe are in Sync then again..

  9. #2729
    Member
    Join Date
    Aug 2016
    Posts
    52

    Re: CommonControls (Replacement of the MS common controls)

    Hello Krool,
    I'am using the last version:

    Name:  ocx2.jpg
Views: 6712
Size:  27.1 KB
    Name:  ocx3.png
Views: 6880
Size:  14.0 KB
    Name:  ocx.jpg
Views: 6728
Size:  33.3 KB

  10. #2730
    Member
    Join Date
    Aug 2016
    Posts
    52

    Re: CommonControls (Replacement of the MS common controls)

    Delete Post
    Last edited by pepegriyo2016; Apr 19th, 2020 at 07:15 PM. Reason: Delete Post

  11. #2731
    Member
    Join Date
    Aug 2016
    Posts
    52

    Re: CommonControls (Replacement of the MS common controls)

    Krool,

    If your insert a Frame and inside insert a TextBoxW, when you change Frame.Enabled=False, the TexBox have the cursor inside.
    I have fixed this

    Code:
    SendKeys vbTab
    TextBoxW is Multiline and Scrooll=Both

  12. #2732
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    540

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    Update released.

    Forgot to include WM_KILLFOCUS DeActivateIPAO on CheckBoxW/CommandButtonW/CommandLink/LinkLabel/OptionButtonW.

    @ Mith, your issue is now fixed.. Thanks for pointing out.
    I can confirm this. The problem is solved.
    The focus stays now inside the other control.

    Well done!!

  13. #2733
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,909

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    Yes, should not be a big deal. Anyhow, I updated now ComCtlsBase.bas (and VBFlexGridBase.bas) to not to reference itself.
    It's done now as LaVolpe suggested with an internal module variable.
    Thank you.
    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.

  14. #2734
    Fanatic Member
    Join Date
    Feb 2017
    Posts
    958

    Re: CommonControls (Replacement of the MS common controls)

    Krool:

    I'm still using VB5 but would like to use _W versions (your controls).
    Per your #3 Post:
    Only the common controls 5.0 from MS are linked to the comctl32.dll, but the COM hull is very old and so they have a leak of the latest functions and properties. Also controls like the DTPicker, MonthView or UpDown are not included.
    Any issues with using your controls with VB5, and if so (issues), is there a workaround?

    Thanks
    David

  15. #2735
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    540

    Re: CommonControls (Replacement of the MS common controls)

    Feature request for the Progress Bar:

    Is it maybe possible to add a .text/.caption or a .DisplayPercentage property to display the current percentage inside the progress bar?

    I currently use my own progress bar usercontrol with this feature but i want/try to transfer all controls used in my project to VBCCR if possible...

    Name:  Screenshot - 20.04.2020 , 15_41_19.png
Views: 1299
Size:  1.3 KB
    Last edited by Mith; Apr 20th, 2020 at 03:42 AM.

  16. #2736
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    540

    ListView AutoSize question

    Im using the following code to auto size each column in my ListView:

    Code:
    .AutoSize (LvwColumnHeaderAutoSizeToItems Or LvwColumnHeaderAutoSizeToHeader)
    Result:

    Name:  Screenshot - 20.04.2020 , 18_26_20.jpg
Views: 1363
Size:  8.2 KB

    How can i avoid the stretching of the last column to the end of the control ?


    I want that the autosize of the last column is the same like all other columns:

    Name:  Screenshot - 20.04.2020 , 18_26_36.jpg
Views: 1375
Size:  8.1 KB

    Is there maybe another flag availble to change this behavior?

  17. #2737
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by vb6forever View Post
    Any issues with using your controls with VB5, and if so (issues), is there a workaround?
    There are significant differences between usercontrols in VB5 & VB6, and of course some v6 functions that didn't exist in v5. However, that doesn't mean that Krool's controls are using something incompatible with VB5. You should simply try it and report back on success or failure. You might want to do a quick scan for "vba6.dll" and replace with "vba5.dll" first.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  18. #2738
    Fanatic Member
    Join Date
    Feb 2017
    Posts
    958

    Re: CommonControls (Replacement of the MS common controls)

    LaVolpe:
    LaVolpe: Thanks for responding.

    You should simply try it and report back on success or failure.
    My Bad. Had hoped someone had already put forth the effort.
    Probably wasting my time, but trying to move all code as much as possible to API usage in case M$ pulls the plug on Classic
    hoping I might have a better shot at portability to something else.

  19. #2739
    Lively Member
    Join Date
    Oct 2016
    Posts
    115

    Re: CommonControls (Replacement of the MS common controls)

    toolbar question:
    does the toolbar have a DC? reason I am asking, because I would like to print text on the toolbar mainly on placeholders (without the need to add a picturebox on it)
    Last edited by Semke; Apr 22nd, 2020 at 06:12 PM.

  20. #2740
    Lively Member
    Join Date
    Oct 2016
    Posts
    115

    Re: CommonControls (Replacement of the MS common controls)

    StatusBar
    Code:
    StatusBar.Panels("aPanel").Width = lWidth
    returns error 383:Property is read-only
    in the MS Controls this was Read/Write

  21. #2741

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by LaVolpe View Post
    Any changes you make to enhance/redesign a Windows class, recommend ensuring the updated control will honor windows messages designed for that windows class.
    For the FrameW I added the handlers WM_SETTEXT/WM_GETTEXT/WM_GETTEXTLENGTH now.

    Because..
    just remembered that from 03-Jul-2017 onwards the FrameW renders now directly on the UserControl, without resorting to BS_GROUPBOX window.

    Like it was done recently with the IPAddress control. (not resorting to SysIPAddress32)

  22. #2742
    Junior Member
    Join Date
    Nov 2018
    Posts
    19

    Re: CommonControls (Replacement of the MS common controls)

    VB6:
    Private Sub ctTextBox_GotFocus()
    ‘’
    End Sub

    Private Sub ctTextBox_LostFocus()
    ‘’
    End Sub

    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    Suggest adding events:

    Private Sub ctTextBoxW_GotFocus()
    ''''
    End Sub

    Private Sub ctTextBoxW_LostFocus()


    ''''
    End Sub

  23. #2743
    Junior Member
    Join Date
    Sep 2019
    Posts
    24

    Re: ListView AutoSize question

    Quote Originally Posted by Mith View Post
    Im using the following code to auto size each column in my ListView:

    Code:
    .AutoSize (LvwColumnHeaderAutoSizeToItems Or LvwColumnHeaderAutoSizeToHeader)
    Result:

    Name:  Screenshot - 20.04.2020 , 18_26_20.jpg
Views: 1363
Size:  8.2 KB

    How can i avoid the stretching of the last column to the end of the control ?


    I want that the autosize of the last column is the same like all other columns:

    Name:  Screenshot - 20.04.2020 , 18_26_36.jpg
Views: 1375
Size:  8.1 KB

    Is there maybe another flag availble to change this behavior?
    Just don't use LvwColumnHeaderAutoSizeToHeader with the last column. According to MSDN "If you use this value with the last column, its width is set to fill the remaining width of the list-view control".

  24. #2744
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    540

    Re: ListView AutoSize question

    Quote Originally Posted by Caine View Post
    Just don't use LvwColumnHeaderAutoSizeToHeader with the last column. According to MSDN "If you use this value with the last column, its width is set to fill the remaining width of the list-view control".
    Using only LvwColumnHeaderAutoSizeToItems doesnt help, because the last column will look like this if the item text is smaller than the header caption:

    Name:  Screenshot - 24.04.2020 , 18_40_01.jpg
Views: 1130
Size:  8.6 KB

    It looks like there is no solution to set the width of the last column like this:

    IF header caption > items width THEN use header width
    IF items width > header caption THEN use items width

  25. #2745

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Bugfix in the GetClipboardText function (CF_UNICODETEXT clipboard) in the Common.bas.

    As maybe some make use of my Common.bas I think I need to report this quite crucial bugfix.

    The bug was in fact that, for the string length determination, the function GlobalSize of the memory block was used.
    In most cases, this was really the length of the string.
    However, for example MS Excel applies for very large copy blocks a bigger memory block than actually needed, which resulted in garbade trailing chars.
    Large copy blocks from MS Notepad always apply the memory block just perfect. However, MS Excel seems to be a bit sloppy. (probably due to a internal "ReDim style" chunk increase efficiency)

    So, instead of GlobalSize the lstrlen function is used (after GlobalLock) for the string length determination. This of course cut-offs any in-between null chars.
    However, the VB.Clipboard.GetText(vbCFText) function behaves the same as it also cut-offs any in-between null chars.

  26. #2746
    Member
    Join Date
    Aug 2016
    Posts
    52

    Re: CommonControls (Replacement of the MS common controls)

    Hello Krool,
    I'am using the last version of OCX (1.6.0.93) and Source Code (26-Apr-2020)


    Name:  src2.jpg
Views: 6467
Size:  34.4 KB
    Name:  ocx2.jpg
Views: 6428
Size:  65.4 KB
    Name:  ocx.jpg
Views: 6683
Size:  35.1 KB
    Name:  src.jpg
Views: 6562
Size:  36.6 KB

    With images it is easier to understand

  27. #2747

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Update released.

    Bugfix for the ListView control.

    1.
    When inserting the very first item in a ListView control, the focus is automatically set to it. (Index = 1)
    However, the ItemFocus event was not fired.

    The bug lied in LvwListItems.cls in the .Add function.
    FListItemsAdd was called which led the control to set focus to the first item. However, problem was that the LvwListItems collection did not yet include that item. That was the reason ItemFocus event did not fire.
    Now the order is changed, first include new item to the collection and then let SysListView32 add new item.

    New
    Code:
    If Key = vbNullString Then
        PropListItem.Add NewListItem
    Else
        PropListItem.Add NewListItem, Key
    End If
    ShadowListView.FListItemsAdd Ptr, Index, Text
    Old
    Code:
    ShadowListView.FListItemsAdd Ptr, Index, Text
    If Key = vbNullString Then
        PropListItem.Add NewListItem
    Else
        PropListItem.Add NewListItem, Key
    End If
    But watch out because the ItemFocus event is now firing when inserting the very first ListItem. Any possible ListSubItem does not yet exist. So, it's anyway a safe advise to check the existense of any subitems first when handling ItemFocus event. (if subitems are needed at all for handling ItemFocus event, depends on your app.)
    But that's the same behavior as the ItemSelect event. (which fired before already at very first ListItem, depending on the AutoSelectFirstItem property)

    2.
    When clearing the list view the ItemFocus event fired with an Item parameter as Nothing. This was clearly a mis-feature.
    The ItemSelect event also did not fire at that point. When an event is firing the parameter must be valid and cannot be Nothing.

    Quote Originally Posted by pepegriyo2016 View Post
    I'am using the last version of OCX (1.6.0.93) and Source Code (26-Apr-2020)

    With images it is easier to understand
    For the IPAddress there is currently a mismatch between the OCX and Std-EXE version.
    Reason is that it was completely re-done from scratch to make it "VB-ish". (update 17-Apr-2020)
    So for the OCX to be using the new component it is necessary to wait until VBCCR17.
    Last edited by Krool; Apr 27th, 2020 at 05:49 AM.

  28. #2748
    Member
    Join Date
    Aug 2016
    Posts
    52

    Re: CommonControls (Replacement of the MS common controls)

    Hello Krool,

    The ForeColor in object "CheckboxW" is not working. I set the color "&H00FF0000&" in design mode and the color is not show . Runtime does not work either.

  29. #2749

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by pepegriyo2016 View Post
    Hello Krool,

    The ForeColor in object "CheckboxW" is not working. I set the color "&H00FF0000&" in design mode and the color is not show . Runtime does not work either.
    Do you have theming enabled?

  30. #2750
    Member
    Join Date
    Aug 2016
    Posts
    52

    Re: CommonControls (Replacement of the MS common controls)

    Hello Krool,

    Do you have theming enabled?
    yes

  31. #2751

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by pepegriyo2016 View Post
    Hello Krool,


    yes
    The ForeColor works only when un-themed or style = graphical.

  32. #2752

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Update released.

    Internal improvement for the OptionButtonW control. (actually a bugfix)

    The problem was that I thought that the OLE_OPTEXCLUSIVE must be triggered via UserControl.PropertyChanged "Value" only for the TRUE value.
    However, that works as long as the order is "sequential" in the .frm file. Now the OLE_OPTEXCLUSIVE will be triggered in either case.

    Best to explain in pictures. In Frame1 the order in the .frm file is first W3 then W4.
    But in Frame2 the order in the .frm file is also W5 and then W6. However, W6 was put then afterwards before W5 and the TabIndex was changed.
    Both W3 and W6 are pre-defined with value TRUE at design time. (important for the test)

    Now compare the behavior when simply "tabbing" through.

    Before:


    After:

  33. #2753
    Fanatic Member
    Join Date
    Mar 2010
    Posts
    844

    Re: CommonControls (Replacement of the MS common controls)

    Hi Krool.

    Thanks again for the great unicode-aware combo box.

    If you remember, in post #57 under http://www.vbforums.com/showthread.p...ombo-box/page2, I requested some changes:
    1. bas module renames (both the module name itself in the IDE and the file name) to have a "ComCtls" or "CC" prefix.
    2. class module renames (both the class module name itself in the IDE and the file name) to have a "ComCtls" or "CC" prefix.
    3. folder name changes: All four folders (Builds, Common, OLEGuids and Resources) to have a "ComCtls" or "CC" prefix in their names.
    4. Creation of one separate folder called Demo, so that every file and folder that is only part of the demo be moved in there.
    For example all the frm and frx files as well as the ComCtlsDemo.vbp and ComCtlsDemo.vbw and some other files and also the entire folder "Resources" need to be moved under the Demo folder.
    Or for another example, why is the Startup.bas module currently under the "Common" folder? It only belongs in the demo, so it shouldn't be there.

    Not sure if you ever had a chance to review my suggestions or not, because you haven't responded to them yet.
    And I don't know if I should continue to wait for a response or not.

    But, I believe there are good reasons to have those changes:
    1. The programmer may have bas and class modules by the same name in his own vbp project and there will be a conflict or at least a confusion.
    2. Currently with every new release of the ComCtls, the programmer has to do all of these renamings and relocations himself. But, if all these changes were made in the ComCtls package itself, with each new release of a new version of ComCtrls, the programmer could simply download the new package, unzip it and overwrite the old files and folders with the files and folders from the newly released package. Currently, it is not just download, unzip and overwrite. Currently it is a bit of a painful job to do all of necessary steps to replace the old version with the new one.
    3. The programmer may unnecessarily add the demo forms and the Startup.bas to his own project.
    4. There is real value for any package to be very well organized.
    5. Other reasons.

    The ComCtls that you have developed are really world-class stuff, and this causes people to expect that they be very well organized.
    That is why I am requesting these changes.
    Just my humble opinion.

    If you don't agree with me or don't want to make these changes for any reason, that would be understandable.
    But, at lease a response (even a "No" response would be greatly appreciated.
    You never responded to my request, so I am still in the dark as to what will happen.

    Once again, thanks a lot for these great controls.
    Ilia

  34. #2754

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by IliaPreston View Post
    If you remember, in post #57 under http://www.vbforums.com/showthread.p...ombo-box/page2, I requested some changes:
    1. bas module renames (both the module name itself in the IDE and the file name) to have a "ComCtls" or "CC" prefix.
    2. class module renames (both the class module name itself in the IDE and the file name) to have a "ComCtls" or "CC" prefix.
    3. folder name changes: All four folders (Builds, Common, OLEGuids and Resources) to have a "ComCtls" or "CC" prefix in their names.
    4. Creation of one separate folder called Demo, so that every file and folder that is only part of the demo be moved in there.
    For example all the frm and frx files as well as the ComCtlsDemo.vbp and ComCtlsDemo.vbw and some other files and also the entire folder "Resources" need to be moved under the Demo folder.
    Or for another example, why is the Startup.bas module currently under the "Common" folder? It only belongs in the demo, so it shouldn't be there.

    Not sure if you ever had a chance to review my suggestions or not, because you haven't responded to them yet.
    And I don't know if I should continue to wait for a response or not.

    But, I believe there are good reasons to have those changes:
    1. The programmer may have bas and class modules by the same name in his own vbp project and there will be a conflict or at least a confusion.
    2. Currently with every new release of the ComCtls, the programmer has to do all of these renamings and relocations himself. But, if all these changes were made in the ComCtls package itself, with each new release of a new version of ComCtrls, the programmer could simply download the new package, unzip it and overwrite the old files and folders with the files and folders from the newly released package. Currently, it is not just download, unzip and overwrite. Currently it is a bit of a painful job to do all of necessary steps to replace the old version with the new one.
    3. The programmer may unnecessarily add the demo forms and the Startup.bas to his own project.
    4. There is real value for any package to be very well organized.
    5. Other reasons.

    The ComCtls that you have developed are really world-class stuff, and this causes people to expect that they be very well organized.
    That is why I am requesting these changes.
    Just my humble opinion.

    If you don't agree with me or don't want to make these changes for any reason, that would be understandable.
    But, at lease a response (even a "No" response would be greatly appreciated.
    You never responded to my request, so I am still in the dark as to what will happen.
    Sorry for not responding. Here my response:

    I am likely not to change it because this would cause conflicts for my internal naming conventions. Because I use these common stuff also for other projects and as it is now is more convenient "for me" to copy & paste.

    I would like to point something out. I encourage to use the OCX version as it is a "plug and play" replace. There you don't have to bother about any naming conflicts.

    It is very ABNORMAL to even provide a Std-EXE source at all... most VB6 componenents are ONLY available as OCX.
    I already thought about the idea to dis-miss the Std-EXE version at all and to only provide a OCX version to ease everything and to reduce questions.

    Wouldn't it be just more easy to everyone to just provide a OCX. Then I could say "just register it and there you go".
    However, I still think that for some use-cases it still makes sense to use a Std-EXE version to be "as portable as possible"..

    So, using the OCX has also other advantages if an update comes out - just copy paste the new OCX file - you don't have to re-compile your app. (only if a big change comes like soon 1.6 -> 1.7)
    But that's a one-time thing and 1.7 will be most probably the last version as then everything will be clean in an "infrastructure" point of view of the sources.

    Thanks for your idea. I hope you understand my point.

  35. #2755
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,167

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    The problem was that I thought that the OLE_OPTEXCLUSIVE must be triggered via UserControl.PropertyChanged "Value" only for the TRUE value.
    However, that works as long as the order is "sequential" in the .frm file. Now the OLE_OPTEXCLUSIVE will be triggered in either case.
    This seems like the only case when passing *actual* (non-empty) property name to PropertyChanged notification makes huge difference to the container.

    cheers,
    </wqw>

  36. #2756

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Mith View Post
    Feature request for the Progress Bar:

    Is it maybe possible to add a .text/.caption or a .DisplayPercentage property to display the current percentage inside the progress bar?

    I currently use my own progress bar usercontrol with this feature but i want/try to transfer all controls used in my project to VBCCR if possible...

    Name:  Screenshot - 20.04.2020 , 15_41_19.png
Views: 1299
Size:  1.3 KB
    Good idea. I think a .Font, .Text and .TextColor (.ForeColor already in use by ProgressBar) is enough?

    If Text is not a NullString then overlay draw is enabled. (Overlay draw being also the technical term, because a double-buffer style drawing is not possible, at least not for the themed ProgressBar as otherwise the "draw movement" is "too fast")

    The text shall be drawn always Center/VCenter so there is no need for extra alignment properties.
    The text property should be able to process placeholders (e.g. {0} = Value, {1} = Min, {2} = Max and {3} = Percent value between 0 and 100)

    Am I missing something?
    Last edited by Krool; May 4th, 2020 at 11:36 AM.

  37. #2757
    Fanatic Member
    Join Date
    Mar 2010
    Posts
    844

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    ......
    (only if a big change comes like soon 1.6 -> 1.7)
    ......
    Thanks a lot for your response.

    And do you have any idea as to when probably that version 1.7 will come out?

    I just downloaded the latest version, and in the Readme.txt file there is no mention of what version it is.
    Nor is any mention in the List of Revisions.txt
    They mention the release date, but not the release version number.
    It would be nice to specify the version number in one of these two text files as well, because it is easier to refer to them (even before deploying the whole package in VB6 IDE.)

    Thanks.

  38. #2758

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Update released.

    as suggested already yesterday the ProgressBar includes now new Font/Text/TextColor property.
    Important to note are the text placeholders {0} = Value, {1} = Min, {2} = Max and {3} = Percent value between 0 and 100.
    Using these are recommended to avoid unecessary redrawings. (applying new .Text will invalidate the region, whereas placeholder will automatically be used on ordinary draw when new value change occurs)
    So a commonly needed .Text property may be: "{3} %"

    I must quoute now Karl77 as he asked already for such a feature back in Dec, 2016
    Quote Originally Posted by Karl77 View Post
    While we are at that, a caption property for the progressbar would be nice.
    Like in the old old CCRP.
    EDIT: using WM_PRINTCLIENT on the ProgressBar will include also the new Text property.


    Quote Originally Posted by IliaPreston View Post
    I just downloaded the latest version, and in the Readme.txt file there is no mention of what version it is.
    Nor is any mention in the List of Revisions.txt
    They mention the release date, but not the release version number.
    You are looking in the wrong thread. This here is the Std-EXE version. Here is the OCX version.
    There in the List of Revisions.txt you find the version number history with the release dates.
    Last edited by Krool; May 4th, 2020 at 03:11 PM.

  39. #2759
    Lively Member
    Join Date
    Oct 2016
    Posts
    115

    Re: CommonControls (Replacement of the MS common controls)

    on the imagelist, when I set a maskcolor, the images get a funny colour in the property window. on the toolbar it is ok, but in some places they are bad (I think its when I use the picture property of the image)

  40. #2760
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    540

    Missing NEXT property using the TvwNode

    Im converting old TreeView source code to the new VBCCR TreeView but i struggle with the missing NEXT property of the tree node:

    Name:  Screenshot - 06.05.2020 , 08_13_09.png
Views: 1226
Size:  6.8 KB

    Normally the NEXT property is used to loop through the node childs:

    Code:
    Set xNode = Node.Child
    
    For I = 1 To Node.Children
    
       xNode.Checked = True
       Set xNode = xNode.Next
    
    Next I
    Any ideas?

    SOLTUION:

    ok, i got it, the equivalent for the NEXT property is NextSibling...is there any reason to use another name for this property?
    Last edited by Mith; May 5th, 2020 at 08:55 PM. Reason: solution added

Page 69 of 105 FirstFirst ... 19596667686970717279 ... LastLast

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