T O P I C R E V I E W |
Flashcqxg |
Posted - Aug 14 2023 : 21:49:34 I would like to place a layer of text type on the imageenview, which requires: 1. This layer is always at the top level. 2. Regardless of whether the image is loaded or not, the size of this layer and the size of the text are not affected by zooming in or out. thanks.
|
8 L A T E S T R E P L I E S (Newest First) |
Flashcqxg |
Posted - Aug 17 2023 : 20:32:30 foxdingding,thank you. |
foxdingding |
Posted - Aug 17 2023 : 20:22:36 In Win10:
SetLayeredWindowAttributes (Panel.Handle, RGB($FF, $FF, $FF), bAlpha, 1 or 2);
|
Flashcqxg |
Posted - Aug 17 2023 : 00:09:28 thanks. |
xequte |
Posted - Aug 16 2023 : 21:01:09 Or you can use the TImageEnView draw events to always put text in a specific position:
http://www.imageen.com/help/TImageEnView.OnDrawBackBuffer.html
Nigel Xequte Software www.imageen.com
|
Flashcqxg |
Posted - Aug 16 2023 : 21:00:04 thank you. But cannot set TLabel or TPanel to transparent. |
foxdingding |
Posted - Aug 16 2023 : 20:56:58 I suggest you use TLabel or TPanel |
Flashcqxg |
Posted - Aug 16 2023 : 19:43:04 thanks. I want to Set the text to always be in this place, Regardless of whether the image is loaded or not.
|
xequte |
Posted - Aug 16 2023 : 19:02:12 Hi
1. Monitor the ImageChange event and ensure the layer has the top-most index:
http://www.imageen.com/help/TIELayer.LayerIndex.html
2. You can use ScaleLocking to prevent any effect of zooming:
http://www.imageen.com/help/TIELayer.ScaleLocking.html
Nigel Xequte Software www.imageen.com
|