PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] Change Background Image Mode by Programming
[WD20] Change Background Image Mode by Programming
Iniciado por guest, 11,ago. 2016 18:27 - 5 respuestas
Publicado el 11,agosto 2016 - 18:27
Does anyone know if this is possible? It can be done with an image control by accessing the ..ImageMode property. I can't figure out how to do it with the background image of a window.

// Image Control IMG_MyImage..ImageMode = imgTiled // Works, property exists // Background Image of Window MyWindow..BackgroundImage..ImageMode // Last property does not exist MyWindow..ImageMode // Property does not exist
Publicado el 11,agosto 2016 - 19:06
You've tried this way?

MyWindow..BackgroundImage..Image..ImageMode

I hope it helps you.

Regards
Publicado el 11,agosto 2016 - 19:14
Hi Nick,

I also tried that way. The editor does not give me any properties after accessing Image. And if I try it anyway I get the error, "ImageMode property not found on property".

I know that I can get around this problem by using my own image control, but it would be much simpler to get this to work. I feel like there are lots of properties that PCSoft didn't bother to hook up. There have been multiple times now where I have to add another control to my window because the property I need to change is not modifiable by programming, yet it is in the control description.
Publicado el 11,agosto 2016 - 20:10
Yeap... PC SOFT Suite is great!!! but not perfect... I'm sorry I can not help you :(
Publicado el 12,agosto 2016 - 12:11
Hi,

I think you have to put the image control behind all other controls in the window and then you can defind the background image by code.
I have done this in WD17 in one of my applications. I allowed the user activate this feature and to define the path to the images, set the transparency etc.
Whenever a new window is opened, another image from the path folder is set as background in a transparent mode.
The feedback was very good.

I don't know if there is a way to achieve the same in newer WX versions with the window background image.
Publicado el 14,agosto 2016 - 11:38
Have you tried creating an image variable, then doing the manipulations, then putting it back. I have done this with buttons and it has worked (although I have had some other issues that I wont bore you with)