Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
6
Erster Beitrag:
vor 3 Jahren, 6 Monaten
Letzter Beitrag:
vor 3 Jahren, 6 Monaten
Beteiligte Autoren:
Sascha77, Tor-Bjarne, Allard

[WD19] How to change the Icon of an Internal Window

Startbeitrag von Sascha77 am 16.01.2015 10: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

Antworten:

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. :)

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

Cheers
Tor-Bjarne

von Tor-Bjarne - am 16.01.2015 12:11
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

von Sascha77 - am 16.01.2015 12:37
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

von Tor-Bjarne - am 16.01.2015 12:54
Hi, in the 7 tab you can define an immage to be used.

tab 4 immage icon.

regards

Allard

von Allard - am 16.01.2015 15:46
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

von Sascha77 - am 16.01.2015 18:50
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.