Community
    • Login

    BigFiles Plugin

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    5 Posts 4 Posters 5.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Claudio OlmiC
      Claudio Olmi
      last edited by

      Hello everyone!

      I have recently started writing a plugin with the intent of providing a preview of large files (>4 GB in 64 bit) without opening the whole file. This method is fast and allows for paging back and forward within the file. My source code and compiled DLL is at https://github.com/superolmo/BigFiles.
      I am not sure what I am doing wrong with adding icons in the toolbar and I would need some quick hint if anyone is available.

      Thank you,

      Claudio

      1 Reply Last reply Reply Quote 1
      • rinku singhR
        rinku singh
        last edited by

        @Claudio-Olmi said:

        back and forward

        i have vs 2010 installed in win 7 x86
        you should call @chcg @donho itself & share a screen shoot of “back and forward” icon

        1 Reply Last reply Reply Quote 0
        • pnedevP
          pnedev
          last edited by

          Hi @Claudio-Olmi ,

          Don’t load icons (no need to left_icon->hToolbarIcon = (HICON)::LoadIcon((HINSTANCE)global_npp_handle, MAKEINTRESOURCE(IDI_ICON2));) - just init hToolbarBmp member of each toolbarIcons struct and leave hToolbarIcon.

          BR

          1 Reply Last reply Reply Quote 4
          • dinkumoilD
            dinkumoil
            last edited by dinkumoil

            @Claudio-Olmi

            As @pnedev already said, the hToolbarIcon member of the toolbarIcons struct seems not to be used. You should use the hToolbarBmp member instead.

            The provided bitmap resource has to be in an 8 bits per pixel (256 colors) palletized BMP format. All pixels with the color of the pixel in the upper left corner will be transparent. To generate a *.bmp file with the correct format you can open e.g. an *.ico file with MS Paint and save it as 256-color-bitmap file.

            1 Reply Last reply Reply Quote 3
            • Claudio OlmiC
              Claudio Olmi
              last edited by

              @pnedev and @dinkumoil
              Thank you both for your help, it is now working beautifully as expected. I have removed the unnecessary hToolBarIcon and converted the icons to BMP format.

              1 Reply Last reply Reply Quote 3
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors