PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB23] Contol Type
[WB23] Contol Type
Iniciado por guest, 23,jun. 2018 13:09 - 2 respuestas
Publicado el 23,junio 2018 - 13:09
Hi All

WebDev 23 - Dynamic Website

I am not clear on the control type. For example, under the GUI tab for a control the control can be set to Automatic, Static, or Dynamc.The default is Automatic. What are these 3 types and when to use them?
Publicado el 23,junio 2018 - 13:43
Hi JP,

The properties of a static control cannot be modified at run-time. So if for instance you try to make a static type control invisible, nothing will happen.
If the type is automatic, Webdev wil detect the type based on your code.
This can lead to problems if Webdev cannot detect the use in code.
For instance if you use indirection: {"control_"+nIndex,indControl}..visible is true. Webdev cannot the detect the use of Control_1,Control_2 etc. this way.
In this case you will have to set the control type to dynamic yourself.
These kind of problems can be real mind-blowing if you're not familiar with this behavior.

Kind regards,
Piet
Publicado el 24,junio 2018 - 13:10
Hi Piet

OK, cook, thanks. Understood.