Rendering WMF doesn't render icon well & Dragging lef/rgi

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
EdDressel
Newbie
Newbie
Posts: 32
Joined: Mon Dec 10, 2018 12:00 am

Rendering WMF doesn't render icon well & Dragging lef/rgi

Post by EdDressel » Mon Sep 16, 2019 9:57 pm

In the attached demo there is a thunderbolt icon that looks like I want it to on the chart.

Q1) When I render it to WMF, the icon has an ugly white space around it (click on the Image tab will do this).

I really want to keep it as a WMF to avoid pixelating when I print it.

Any suggestions on how to fix this?

Q2) When the mouse goes over the thunderbolt, I would like to be able to drag it left/right--but it has to go over the Color Line tool. Is there any way to make the Color Line Tool go it drag left/right mode? Or maybe a different way to address this?

Much appreciated.

Ed Dressel
Attachments
Show Icon #3.zip
(10.91 KiB) Downloaded 852 times
Thanks,

Ed Dressel

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Rendering WMF doesn't render icon well & Dragging lef/rgi

Post by Yeray » Tue Oct 08, 2019 11:37 am

Hello,

Sorry for the delay here.
EdDressel wrote:
Mon Sep 16, 2019 9:57 pm
Q1) When I render it to WMF, the icon has an ugly white space around it (click on the Image tab will do this).

I really want to keep it as a WMF to avoid pixelating when I print it.

Any suggestions on how to fix this?
I see you are forcing the Canvas to be GDI and this is breaking the transparency.
EdDressel wrote:
Mon Sep 16, 2019 9:57 pm
Q2) When the mouse goes over the thunderbolt, I would like to be able to drag it left/right--but it has to go over the Color Line tool. Is there any way to make the Color Line Tool go it drag left/right mode? Or maybe a different way to address this?
I see you use OnBeginDragLine and OnEndDragLine events. Have you tried to move the imagepoint using the OnDragLine event?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply