Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 4 Jahren, 9 Monaten
Letzter Beitrag:
vor 4 Jahren, 9 Monaten
Beteiligte Autoren:
DarrenF, JP, Ola, RAUL2, Piet van Zanten, Tor-Bjarne

[WD18] - Using Templates

Startbeitrag von JP am 30.09.2013 06:55

Hi All,

I have created a few templates of controls that my applictaion uses. I have found on more than one occasion that a change to the template does not automatically update the controls on the windows where they are used. Sometimes WinDev asks me if I want to update the windows which use the controls and sometimes it does not. Sometimes it never asks me if I want to update the windows - it just says everything is updated. But they are not! I then need to open the window which contains the template control and then the window tells me that control XXX is not updated from the template, do I want to update now. To which I answer yes and then it updates. But obviously this is a problem if I have many windows which use these controls.

Why does this happen? Does anyone else exeprience this? Is there a setting or option I should set?



I`ve seen this in WebDev - Only solution I found was to have the "window to be updated" open, if it`s closed it will now always be updated from template. Perhaps the case in Windev to?


von Tor-Bjarne - am 30.09.2013 08:31
Hi JP,

Same problem here in WB18.
Sometimes after a modification of the template Webdev persists in saying all the pages that use the template are already updated.
A recompile usually updates the pages.


von Piet van Zanten - am 30.09.2013 09:14
Yes, I've noticed this as well in WD - it used to work great, but since (I think) WD17, it doesn't seem to do the template updates automatically! :confused:

von DarrenF - am 01.10.2013 18:49
Does not work reliably in WD 16 either.
PCSoft does not seem to have any hurry in fixing this, either....


von Ola - am 02.10.2013 12:56
I jumped from WD12 to WD16. It worked very nicely in WD12, so it must have been introduced in WD14 or WD15? :confused:

von DarrenF - am 03.10.2013 19:36
"it must have been introduced in WD14 or WD15?"

Do you mean the templates or the bug?:)


von Ola - am 03.10.2013 20:15

von DarrenF - am 03.10.2013 23:17
Hi. In WD15 it doesn't work too.

I don't remember right now if I've tried compiling again. Sometimes I've to delete de control from the window and put it again in order to WD realizes it has to update a window when the control template is updated.


von RAUL2 - am 08.10.2013 01:32
Hi All,

I have found the following when using a template for a window:

If I add a control to my window template, such as a shape, and set either the control to the background z-order OR set an anchor property for the control, then the control does not appear in the windows based on that template in design time. However, the control does appear in the windows based on that template at runtime.


von JP - am 10.10.2013 13:07
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.