• Login
Community
  • Login

BigFiles Plugin

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
5 Posts 4 Posters 5.7k 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.
  • C
    Claudio Olmi
    last edited by Sep 3, 2019, 2:21 AM

    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
    • R
      rinku singh
      last edited by Sep 3, 2019, 3:11 AM

      @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
      • P
        pnedev
        last edited by Sep 3, 2019, 11:21 AM

        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
        • D
          dinkumoil
          last edited by dinkumoil Sep 3, 2019, 11:37 AM Sep 3, 2019, 11:35 AM

          @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
          • C
            Claudio Olmi
            last edited by Sep 3, 2019, 7:32 PM

            @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
            1 out of 5
            • First post
              1/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors