|
-
Jun 12th, 2026, 09:23 AM
#4201
Addicted Member
Re: CommonControls (Replacement of the MS common controls)
Hello Krool !
Hello! Thank you for providing the great VBCCR series controls. I have been using your controls for many years while developing software for clients. These controls are very convenient to use. I really appreciate your help, thank you so much!
Here is some feedback: The 'StatusBar' control, 'Public Enum SbrPanelStyleConstants' and 'Public Enum SbrPanelDTFormatConstants' are inconsistent between 'ComCtlsDemo' and 'VBCCR18', with the specific situation as follows:
Code:
ComCtlsDemo.StatusBar
Public Enum SbrPanelStyleConstants
SbrPanelStyleText = 0
SbrPanelStyleCaps = 1
SbrPanelStyleNum = 2
SbrPanelStyleIns = 3
SbrPanelStyleScrl = 4
SbrPanelStyleTime = 5
SbrPanelStyleDate = 6
SbrPanelStyleKana = 7
SbrPanelStyleHangul = 8
SbrPanelStyleJunja = 9
SbrPanelStyleFinal = 10
SbrPanelStyleKanji = 11
SbrPanelStyleHanja = 12
SbrPanelStyleDateTime = 13
End Enum
VBCCR18.StatusBar
Public Enum SbrPanelStyleConstants
SbrPanelStyleText = 0
SbrPanelStyleCaps = 1
SbrPanelStyleNum = 2
SbrPanelStyleIns = 3
SbrPanelStyleScrl = 4
SbrPanelStyleTime = 5
SbrPanelStyleDate = 6
SbrPanelStyleKana = 7
SbrPanelStyleHangul = 8
SbrPanelStyleJunja = 9
SbrPanelStyleFinal = 10
SbrPanelStyleKanji = 11
SbrPanelStyleHanja = 12
End Enum
ComCtlsDemo.StatusBar
Public Enum SbrPanelDTFormatConstants
SbrPanelDTFormatShort = 0
SbrPanelDTFormatLong = 1
SbrPanelDTFormatMedium = 2
SbrPanelDTFormatGeneral = 3
SbrPanelDTFormatCustom = 4
End Enum
VBCCR18.StatusBar
Public Enum SbrPanelDTFormatConstants
SbrPanelDTFormatShort = 0
SbrPanelDTFormatLong = 1
End Enum
-
Jun 15th, 2026, 10:31 AM
#4202
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by smileyoufu
Hello Krool !
Hello! Thank you for providing the great VBCCR series controls. I have been using your controls for many years while developing software for clients. These controls are very convenient to use. I really appreciate your help, thank you so much!
Here is some feedback: The 'StatusBar' control, 'Public Enum SbrPanelStyleConstants' and 'Public Enum SbrPanelDTFormatConstants' are inconsistent between 'ComCtlsDemo' and 'VBCCR18', with the specific situation as follows:
Code:
ComCtlsDemo.StatusBar
Public Enum SbrPanelStyleConstants
SbrPanelStyleText = 0
SbrPanelStyleCaps = 1
SbrPanelStyleNum = 2
SbrPanelStyleIns = 3
SbrPanelStyleScrl = 4
SbrPanelStyleTime = 5
SbrPanelStyleDate = 6
SbrPanelStyleKana = 7
SbrPanelStyleHangul = 8
SbrPanelStyleJunja = 9
SbrPanelStyleFinal = 10
SbrPanelStyleKanji = 11
SbrPanelStyleHanja = 12
SbrPanelStyleDateTime = 13
End Enum
VBCCR18.StatusBar
Public Enum SbrPanelStyleConstants
SbrPanelStyleText = 0
SbrPanelStyleCaps = 1
SbrPanelStyleNum = 2
SbrPanelStyleIns = 3
SbrPanelStyleScrl = 4
SbrPanelStyleTime = 5
SbrPanelStyleDate = 6
SbrPanelStyleKana = 7
SbrPanelStyleHangul = 8
SbrPanelStyleJunja = 9
SbrPanelStyleFinal = 10
SbrPanelStyleKanji = 11
SbrPanelStyleHanja = 12
End Enum
ComCtlsDemo.StatusBar
Public Enum SbrPanelDTFormatConstants
SbrPanelDTFormatShort = 0
SbrPanelDTFormatLong = 1
SbrPanelDTFormatMedium = 2
SbrPanelDTFormatGeneral = 3
SbrPanelDTFormatCustom = 4
End Enum
VBCCR18.StatusBar
Public Enum SbrPanelDTFormatConstants
SbrPanelDTFormatShort = 0
SbrPanelDTFormatLong = 1
End Enum
The ComCtlsDemo is the leading source. I can't make new features into the OCX immediatelly. So, they will be integrated into a future 1.9 OCX.
-
Jun 15th, 2026, 11:01 PM
#4203
Addicted Member
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Krool
The ComCtlsDemo is the leading source. I can't make new features into the OCX immediatelly. So, they will be integrated into a future 1.9 OCX.
Hello Krool!
Thanks for your quick reply, now I know how to handle this issue.
-
Jun 17th, 2026, 11:20 AM
#4204
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by smileyoufu
Hello Krool!
Thanks for your quick reply, now I know how to handle this issue.
I did a typelib edit for the VBCCR18.OCX and included those enums you mentioned. So, fixed so to say.
-
Jun 20th, 2026, 01:14 AM
#4205
Addicted Member
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Krool
I did a typelib edit for the VBCCR18.OCX and included those enums you mentioned. So, fixed so to say.
Hello Krool!
Your fix was super quick. I've applied the latest version you provided to the project.
Thanks so much for your help!
-
Jun 23rd, 2026, 02:26 PM
#4206
Hyperactive Member
Re: CommonControls (Replacement of the MS common controls)
I have two questions about the listview control when being used in report view:
1. Is it possible to "lock" columns on the left so that they remain visible when scrolling? If not directly, does anyone have a suggestion how to achieve such behavior (e.g. by hiding / unhiding columns when scrolling)
2. Does anyone have an example of how to use the ColumnFilterBar? I can't find that in the demo.
Thanks in advance,
Erwin
-
Jun 23rd, 2026, 04:04 PM
#4207
Re: CommonControls (Replacement of the MS common controls)
1. Use the vbFlexGrid control, also by Krool
-
Jun 24th, 2026, 12:32 AM
#4208
Re: CommonControls (Replacement of the MS common controls)
2. Check out the ColumnFilterChanged and ColumnFilterButtonClick event. Then a ColumnHeader has a EditFilter and ClearFilter method. Also a ColumnHeader has a FilterType and FilterValue property.
So, obviously you react upon ColumnFilterChanged and use the FilterValue properties of the column to have the criteria to refresh and refeed the list according to that. That's your duty to handle that.
-
Jun 25th, 2026, 08:12 AM
#4209
New Member
Re: CommonControls (Replacement of the MS common controls)
Hi Krool.
Thanks again for your great controls. I have an observation with Listview. It looks like the ItemSelect event is raised twice when you click on a row. First it shows the old item, the second one shows the new item. Same happens when you use the cursor keys. Is this correct behavior? Using ItemFocus runs only once and gives the correct selected item so this can be used instead.
Edit: I've learned that it is a Windows thingy. The windows listview send two notifications, LVN_ITEMCHANGING and LVN_ITEMCHANGED which causes the event to run twice. ItemFocus looks like to correct way the way to go.
Last edited by MSI-Packager; Jun 25th, 2026 at 02:25 PM.
-
Jun 26th, 2026, 06:16 AM
#4210
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by MSI-Packager
Hi Krool.
Thanks again for your great controls. I have an observation with Listview. It looks like the ItemSelect event is raised twice when you click on a row. First it shows the old item, the second one shows the new item. Same happens when you use the cursor keys. Is this correct behavior? Using ItemFocus runs only once and gives the correct selected item so this can be used instead.
Edit: I've learned that it is a Windows thingy. The windows listview send two notifications, LVN_ITEMCHANGING and LVN_ITEMCHANGED which causes the event to run twice. ItemFocus looks like to correct way the way to go.
I raise the ItemSelect event upon LVN_ODSTATECHANGED and LVN_ITEMCHANGED only. You need to check the Selected arg in the ItemSelect event. It's fired two times because the old get's de-selected and the new one is being selected. So, where is the problem ?
-
Jun 26th, 2026, 01:56 PM
#4211
New Member
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Krool
I raise the ItemSelect event upon LVN_ODSTATECHANGED and LVN_ITEMCHANGED only. You need to check the Selected arg in the ItemSelect event. It's fired two times because the old get's de-selected and the new one is being selected. So, where is the problem ?
It is no longer a problem. I failed to understand that a deselect and a select both fire the event. I also forgot to check the Selected Arg. Thanks!
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
|