PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD19] How to change the Icon of an Internal Window
[WD19] How to change the Icon of an Internal Window
Iniciado por guest, 16,ene. 2015 11:26 - 5 respuestas
Publicado el 16,enero 2015 - 11:26
Hi,

Is there a way to change the icon of an Internal Window once I opend it via Open(IW_ProductOverview) ? It allways defaults it to the standard Windev icon.

I already tried the following:

1. On the screen I added an Image with the Icon I want to use
2. I assigned the control to the window as following:
MyWindow..Icon = Image1

still not working....

Any suggestions?

Thanks
Sascha
Publicado el 16,enero 2015 - 13:11
Hi,

An internal window is by design meant to be opened inside a "other" window that has a internal window control.

Here you use the Changesourcewindow(Internal-window-control,internal-window) - I did not know you could open it with Open( but then, it`s not internal. <img src="/NG2013_WEB/ui/smiley/1.gif" align=absmiddle border=0 alt=":)">

in the "Other" window that has the internal window control you can change the icon, runtime if you like.

Cheers
Tor-Bjarne
Publicado el 16,enero 2015 - 13:37
Hi Tor-Bjarne,

Thanks for the reply.

I was using the Changesourcewindow() before but it caused some performance issues(it took about 0.3 - 1 sec. to do the change command depending on the content of the internal window - of course this was measured with WD 18, not sure if it got any better with WD 19.) that´s why i am opening them directly


Thanks,
Sascha
Publicado el 16,enero 2015 - 13:54
Hi,

No, I cant see any peformance improvment in WD19 for internal windows.

But if you open a window with an internal window is it the same time difference?

You can offcourse just copy everything into an "non internal" window and use Open() and icons.

Cheers
Tor-Bjarne
Publicado el 16,enero 2015 - 16:46
Hi, in the 7 tab you can define an immage to be used.

tab 4 immage icon.

regards

Allard
Publicado el 16,enero 2015 - 19:50
Hi Allrad,

the image tab is disabled for Internal Windows.

I am back to the old way and using a generic "LookUp" Window and change the internal window on the fly with the Changesourcewindow(). I briefly tested it with WD 19 and it seems to be working ok.

Thanks for your help

Cheers,
Sascha