Results 1 to 17 of 17

Thread: FixPalette Addin

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    FixPalette Addin

    Hi, this addin was created a few years ago by a colleague "Cobein" and it works perfect, but nowadays with DPI above 100 it throws an error so try to recreate it from scratch since I don't have the source code and I already lost contact as my colleague.
    so I share this simple addin but very useful especially for those who have the windows themes in the vb6 IDE and have the problem with the color palette, with this addin it is solved, but it is also useful because there are several color palettes and also an eyedropper.

    Special thanks to @shagratt with some functions and testing

    Name:  Anotación 2020-05-06 190947.jpg
Views: 1709
Size:  37.4 KB


    Attachment 176875FixPalette2020.zip
    Last edited by LeandroA; May 9th, 2020 at 05:06 PM. Reason: Update 09/05/2020
    leandroascierto.com Visual Basic 6 projects

  2. #2
    Fanatic Member
    Join Date
    Jun 2016
    Location
    España
    Posts
    632

    Re: FixPalette Addin

    good job

  3. #3
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: FixPalette Addin

    Why was the attachment removed?

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

    Re: FixPalette Addin

    @dreammanor: A dll was included, so looks like it was updated

    @Leandro. Just FYI, you can get a palette when manifesting via IDE menu: View > Color Palette. But that is a hassle. Now if you want to fix another problem when IDE is manifested... Try adding 1-character items to a listbox or combobox at design-time -- doesn't work.
    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}

  5. #5
    Addicted Member shagratt's Avatar
    Join Date
    Jul 2019
    Location
    Argentina
    Posts
    203

    Re: FixPalette Addin

    This is a really needed update to the IDE. I always needed to relay on externals tools for color picking. Another useful thing is that the eyedropper also double as a magnification glass.
    Amazing contribution Leandro!

    Tested on: Win7,non manifested at 100DPI

  6. #6
    Lively Member
    Join Date
    Sep 2016
    Posts
    94

    Re: FixPalette Addin

    Hi,
    @Leandro,
    Great but problems with IDE manifested and some controls
    So, how to fix the full display of the windows ?

    For myself the only way i found to solve the palette colorpicker problem on the Manifested IDE was to use an older AddIn -> 'vb6 Color Workshop' a donationware from NOREXE Software.
    But NOREXE Software (no longer exists)

  7. #7
    Fanatic Member
    Join Date
    Jul 2007
    Location
    Essex, UK.
    Posts
    579

    Re: FixPalette Addin

    I'm not seeing the entire thing, running VB6 SP6 manifested or not. Have I missed doing something?
    Attached Images Attached Images  

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    Re: FixPalette Addin

    Quote Originally Posted by Steve Grant View Post
    I'm not seeing the entire thing, running VB6 SP6 manifested or not. Have I missed doing something?
    fixed, I did not take into account that in English the words are shorter the frame is smaller, so now it forces the real size of the palette and buttons.

    thanks for showing me that error
    leandroascierto.com Visual Basic 6 projects

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    Re: FixPalette Addin

    Quote Originally Posted by LaVolpe View Post
    Now if you want to fix another problem when IDE is manifested... Try adding 1-character items to a listbox or combobox at design-time -- doesn't work.

    interesting I have never noticed it, this error occurs with or without manifested IDE, the error is from the Edit window, if it is added from a usercontrol (at design time) it loads well, but if then it displays that list when closing it breaks again, that maybe it could be fixed by doing some tricks but maybe it is easier to add them from a usercontrol

    Code:
    Private Sub UserControl_Resize()
        On Error Resume Next
        Dim i As Long
        Parent.Combo1.Clear
        For i = 0 To 25
            Parent.Combo1.AddItem Chr$(65 + i)
        Next
    End Sub
    leandroascierto.com Visual Basic 6 projects

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

    Re: FixPalette Addin

    Quote Originally Posted by LeandroA View Post
    interesting I have never noticed it, this error occurs with or without manifested IDE, the error is from the Edit window, if it is added from a usercontrol (at design time) it loads well, but if then it displays that list when closing it breaks again...
    What is also interesting is that the ItemData is broken too (manifested or not), it won't save the values you enter. Now, I know this is not the way it has always been. I do recall being able to add single letters into listboxes and adding ItemData at design-time vs. in Form_Load. But anyway, getting off topic
    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}

  11. #11
    Lively Member
    Join Date
    Sep 2016
    Posts
    94

    Re: FixPalette Addin

    Hi Leandro,
    Fine
    Congratulations !

  12. #12
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,192

    Re: FixPalette Addin

    More clipping here too. . . (Darn, this would have been only plug-in #3 that I dare to activate in the IDE).



    Win10 1809, system DPI at 125%

    cheers,
    </wqw>

  13. #13
    Fanatic Member
    Join Date
    Jul 2007
    Location
    Essex, UK.
    Posts
    579

    Re: FixPalette Addin

    Works fine for me now, manifested or not. Shown not.
    Attached Images Attached Images  

  14. #14

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    Re: FixPalette Addin

    hello wqweto thanks for reporting, I did not find a way to replicate the error, apparently it has a different height, I think I do not want to get into changing the height because I will have to do other calculations, I think that up to here it is on my side for this addin.

    Today I made a small adjustment that was necessary and with this I end it
    leandroascierto.com Visual Basic 6 projects

  15. #15
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,192

    Re: FixPalette Addin

    Quote Originally Posted by LeandroA View Post
    . . . I think I do not want to get into changing the height because I will have to do other calculations
    Could be the height but there is noticable gap at the top, just below the two tabs which pushes the rest of the image down and the last row becomes hidden.

    Anyway, no need to bother -- I'll try LaVolpe's solution. As always, releasing code "in the wild" is hard, even too hard and every time there is something "only on client PCs" to surprise you :-)))

    cheers,
    </wqw>

  16. #16
    Fanatic Member
    Join Date
    Jun 2016
    Location
    España
    Posts
    632

    Re: FixPalette Addin

    ...
    sorry worn post
    Last edited by yokesee; Mar 16th, 2021 at 01:27 PM.

  17. #17
    New Member
    Join Date
    Sep 2025
    Posts
    1

    Re: FixPalette Addin

    Just FYI, the links are broken.

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