-
May 26th, 2024, 08:23 AM
#161
Addicted Member
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
Returning to VB6 programming after a long break, I decided to undertake the task of replacing my current implementation of controls with VBCCR (I already use VBFLXGRD since ver. 1.4) and after several days of handy work switching between my text editor and the VB6 IDE I have completed the whole thing without any direct issues. However, there are a few differences between my old and the new VBCCR1.8 controls I'm not sure how to address e.g. making structural changes to my code or make a request for function enhancement. I post here as I'm using the OCX version although I'm aware of that stuff gets implemented in the Std-Exe version first.
From what I've been able to conclude so far there are currently 3 things I am missing in the VBCCR18 controls:
1. A ListIndexChange() Event in the Combo- and ListBox controls, which is useful as it allows for differentiation between if the index changed due to the user clicked an item in the control or if it changed due to programmatic reasons.
2. In the ComboBox only, a BeginEdit() and EndEdit() Events which fires when user starts typing in Edit portion of controls and finishes the edit operation. The EndEdit Event may come with several arguments, like a boolean for if a change really took place, a string for the new value and reason for the end (eg. user pressed return, focus was killed, Escape pressed, control was dropped), the Index may also be useful to get.
3. The ability for Label control to render some HTML assigned to the Caption, or a dedicated HtmlCaption, property. Doesn't need to be full fetched html just the most common and useful formatting stuff. Well, doesn't need to be html, that's just what my old control offered, but the idea is that you can have a ready made html formatted string w/ placeholders to fill from code and display in a typical "label situation".
Maybe there is such a control already but I haven't been able to find any here. The Combo and Listbox functionalities are more important to me though, so question is if this is something that could be added to the control suite or not?
M$ vs. VB6 = The biggest betrayal and strategic mistake of the century!?
-
Jun 29th, 2024, 11:41 PM
#162
New Member
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
Feature request: it would be nice to include different underline styles like wave, double underline, etc. I think it is quite easy to include (but my apologies if I am wrong), because now I accomplish it this way:
Code:
Dim iStart As Long
Dim iLen As Long
iStart = rtfTest.SelStart
iLen = rtfTest.SelLength
rtfTest.SelUnderline = True
rtfTest.SelColor = vbRed
rtfTest.SelRTF = Replace(rtfTest2.SelRTF, "\ul", "\ulwave")
rtfTest.SelStart = iStart
rtfTest.SelLength = iLen
-
Oct 2nd, 2024, 10:17 PM
#163
Hyperactive Member
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
Hi krool,
im still using VBCCR v1.7.104 and want to upgrade to v1.8.x
Is the upgrade as simple as unregister v1.7 and register v1.8 to continue with my vb-projects?
-
Oct 4th, 2024, 11:01 AM
#164
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
Originally Posted by Mith
Hi krool,
im still using VBCCR v1.7.104 and want to upgrade to v1.8.x
Is the upgrade as simple as unregister v1.7 and register v1.8 to continue with my vb-projects?
Yes it should be very smooth from 1.7 to 1.8.
-
Oct 5th, 2024, 01:33 AM
#165
Hyperactive Member
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
Originally Posted by Krool
Yes it should be very smooth from 1.7 to 1.8.
It doesnt work. I unregister v1.7 and registered v1.8. After i started one project i got error messages about the missing v1.7...
I replaced the v1.7 with v1.8 in the main vbp file but after loading the project again i got error messages for each form in the project...
Last edited by Mith; Oct 5th, 2024 at 01:39 AM.
-
Oct 5th, 2024, 02:54 AM
#166
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
Originally Posted by Mith
It doesnt work. I unregister v1.7 and registered v1.8. After i started one project i got error messages about the missing v1.7...
I replaced the v1.7 with v1.8 in the main vbp file but after loading the project again i got error messages for each form in the project...
Yes the uuid needs to be replaced in each form.
-
Oct 5th, 2024, 03:51 AM
#167
Hyperactive Member
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
Originally Posted by Krool
Yes the uuid needs to be replaced in each form.
And all v1.7 references in the code! e.g. "Dim NodeX As VBCCR17.LvwListItem".
-
Oct 5th, 2024, 04:46 AM
#168
Hyperactive Member
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
Instructions to upgrade v1.7 to v1.8:
1. Don't unregister v1.7, so no-converted projects and compiled exe files will still work
2. Register v1.8
3. Use the free app OCX updater to convert your project: https://10tec.com/vb6-project-references-update/
4. Optional: edit your project manifest and replace v1.7 with v1.8 (see VBCCR18SideBySide.res)
5. Open your project and hit CTRL+F5 to test the code changes.
6. Compile your project and run the compiled exe.
-
Oct 23rd, 2024, 10:45 PM
#169
Addicted Member
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
There is no guide on how to make an isolated ocx, I would like to add a background image to the richTextBox, and I don't want to compile all the ocx into one, I have tried to open a usercontrol, add the RichTextBox.ctl, the RichTextBoxBase.bas and the PPRichTextBoxGeneral.pag, I click on create the modified Ocx, and all are errors... Declarations are missing and I don't know what else...
Is there not a guide, please, to be able to convert and modify from VB6 any of the ocx in particular?
-
Oct 23rd, 2024, 11:03 PM
#170
Hyperactive Member
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
Originally Posted by James Reynolds
There is no guide on how to make an isolated ocx, I would like to add a background image to the richTextBox, and I don't want to compile all the ocx into one, I have tried to open a usercontrol, add the RichTextBox.ctl, the RichTextBoxBase.bas and the PPRichTextBoxGeneral.pag, I click on create the modified Ocx, and all are errors... Declarations are missing and I don't know what else...
Why dont you add the missing declarations to your new project? Or use the original VBCCR source code and remove all controls you dont need...
-
Oct 24th, 2024, 09:25 AM
#171
Addicted Member
Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)
Originally Posted by Mith
Why dont you add the missing declarations to your new project? Or use the original VBCCR source code and remove all controls you dont need...
Sorry Mitch, I solutioned yesterday in the night, fault some bas archives... Thanks for your answer!!!
Another question, ChatGPT, although he is terrible at writing code according to my criteria, because he asks very simple things and I go on and on and on, and then I find a much simpler solution here or by writing code myself, an example, I asked him how to make a richTextBox be completely Locked, not enabled = false, because then the color of the letters changes, and after a lot of thinking, the solution was very simple, in the GotFocus event, set SetFocus to another control, and the nonsense was over, not cursor into the richtextbox, no blink into the control, nothing all...
But I found the solution myself, ChatGPT messing around in many places, and when I see that it's going crazy, I come back here or I try to program it myself...
But well, as a database for information on things that are not very complex, ChatGPT it is quite useful, and I asked him some time ago if Google Translate could be easily integrated into VB6, in the browser, and he told me not much, and well, but he gave me information on how to translate online from VB6, and I wonder, an idea for Krool:
WHY NOT INCLUDE THAT CAPABILITY IN THE LABELW, COMBOW, LISTW, ETC...???
And wouldn't there be some TTS that could be included?
What about having, for example, properties like LangFrom and LangTo, TextFrom and TextTo and ShowTextFromOrTo in unicode controls that translate internally?
It wouldn't work to translate deep philosophy, but for many programs they are very simple things, in the labelw for example, they are usually very simple words that are put, and having a translation for any language that is spoken in Langto, can be of great convenience when making a multilingual program!!!
And there also has to be a way to include - although perhaps more complex because of having to include many TTS voices from many languages, that can already be a big handicap - some TTS...
It would be a luxury to have these options, at least the internal translation, then I'll look at what ChatGPT told me about how to translate from VB6 and I'll put it here - ChatGPT paid, it's 20US$ per month, it's not much really, it's useful (although not very useful at all) -...
Greetings, how do you see it?
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
|