ToolbarButton images small

Discussion in 'Beta Versions' started by klaus, Apr 24, 2009.

  1. klaus

    klaus Expert Licensed User

    I have compiled a program with ToolbarButtons for a VGA device.
    The images remain small, no difference if compiled Device Exe or Device(Auto scale) Exe.
    The image size has no effect, btnLoad.bmp is 16*16 pixels and btnSave1.bmp is 32*32. Should the image mode somewhere be set to cStrechImage?

    The image below shows it, a test program is attached.

    Best regards.
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Thanks Klaus. It is now fixed.

    The following lines were missing from ToolBar constructor (il is the ToolBar ImageList).
    Code:
    C#:
                double scaleX = (double)(
    Thread.GetData(Thread.GetNamedDataSlot("scaleX")));
                double scaleY = (double)(
    Thread.GetData(Thread.GetNamedDataSlot("scaleY")));
                il.ImageSize = new Size((int)(il.ImageSize.Width * scaleX), (int)(il.ImageSize.Height * scaleY));
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice