PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3 ... 10
 1 
 on: Today at 12:13:21 PM 
Started by Paul Squires - Last post by Paul Squires
(although obviously the better approach would be to have specific dedicated images for various dpi sizes).

...and this is what I have now done for some of the images in the Find/Replace dialog. I exported the svg image to 24x24 sized png and then loaded either the 16px or 24px image depending on dpi resolution. Looks much nicer.
 

 2 
 on: December 15, 2018, 10:05:19 PM 
Started by Paul Squires - Last post by Paul Squires
Hi Josť,

I made a few more changes to the code.

I added:
      DECLARE SUB SetImageSize (BYVAL nWidth AS LONG, BYVAL nHeight AS LONG, BYVAL fRedraw AS LONG = FALSE)
      DECLARE SUB SetImageWidth (BYVAL nWidth AS LONG, BYVAL fRedraw AS LONG = FALSE)
      DECLARE SUB SetImageHeight (BYVAL nHeight AS LONG, BYVAL fRedraw AS LONG = FALSE)

I changed (in the Constructor):
   ' // Set default values for background normal and hot colors
   m_BkColor    = GetSysColor(COLOR_BTNFACE)
   m_BkColorHot = m_BkColor
 
This allows you to specify a different width and height for the image after it is loaded. This is useful if you want to scale the image based on dpi settings (although obviously the better approach would be to have specific dedicated images for various dpi sizes).
 

 3 
 on: December 15, 2018, 06:21:50 PM 
Started by Paul Squires - Last post by Paul Squires
Thanks Josť, I will use png's instead.

 4 
 on: December 15, 2018, 06:17:02 PM 
Started by Paul Squires - Last post by Josť Roca
No, it is not supported.

 5 
 on: December 15, 2018, 05:50:06 PM 
Started by Paul Squires - Last post by Paul Squires
One of the reasons I'm asking is because I now have the svg graphics for the find/replace dialog that the VSCode editor uses. I could convert them to png and use them that way but being able to use the svg directly would be better.

 6 
 on: December 15, 2018, 05:44:43 PM 
Started by Paul Squires - Last post by Paul Squires
Thanks Josť,  :)

I have a feeling that this may not be possible because my initial research did not lead to anything substantive.... Can GDI+ display SVG vector images? It would be very cool if it could because then we could use vector graphics that will scale perfectly at various display resolutions rather than the pixelation we get with raster png, jpg, bmp, etc...  Have you done any work in this area?

 7 
 on: December 15, 2018, 04:40:42 PM 
Started by Paul Squires - Last post by Josť Roca
Excellent. I have updated the Git repository and the documentation.


 8 
 on: December 15, 2018, 03:56:12 PM 
Started by Paul Squires - Last post by Paul Squires
Hi Josť,

I made some changes to your CImageCtx control that I'd like to share with you (please see attachment). I added code to handle a "hot" background color when the mouse is over the control. I also modified the image rendering code so that the background is always fully painted with either the normal or hot background color. This ensures that images that have transparent areas can show the correct background color. Of course, doing this introduced a degree of flickering so I also added code to double buffer the control rendering.

I am now using this control to replace the frmHotImageBtn control in the WinFBE source code.

Thanks!

 9 
 on: December 12, 2018, 07:30:21 PM 
Started by Paul Squires - Last post by DenWal
Thanks guys! I made a clean installation and since then the Menu Designer no longer crash. Thanks for raising issue about it.

 10 
 on: December 10, 2018, 10:57:55 PM 
Started by Paul Squires - Last post by SeaVipe
Hi Dennis, I've tried using your scenario and unable to achieve a crash. Also tried several variations on your theme and still no crash. Perhaps its an odd sequence of events/keystrokes causing this anomaly?

Pages: [1] 2 3 ... 10