Page 5 of 5 FirstFirst ... 2345
Results 161 to 171 of 171

Thread: [VB6] ActiveX CommonControls (Replacement of the MS common controls)

  1. #161
    Addicted Member
    Join Date
    Jun 2010
    Posts
    200

    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!?

  2. #162
    New Member
    Join Date
    Apr 2011
    Posts
    7

    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

  3. #163
    Hyperactive Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    456

    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?

  4. #164

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,514

    Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)

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

  5. #165
    Hyperactive Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    456

    Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)

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

  6. #166

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,514

    Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)

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

  7. #167
    Hyperactive Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    456

    Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)

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

  8. #168
    Hyperactive Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    456

    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.

  9. #169
    Addicted Member
    Join Date
    Jan 2008
    Posts
    153

    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?

  10. #170
    Hyperactive Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    456

    Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)

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

  11. #171
    Addicted Member
    Join Date
    Jan 2008
    Posts
    153

    Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Mith View Post
    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?

Page 5 of 5 FirstFirst ... 2345

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