PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → [WB23] Contol Type
[WB23] Contol Type
Started by JP, Jun., 23 2018 1:09 PM - 2 replies
Posted on June, 23 2018 - 1:09 PM
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?
Posted on June, 23 2018 - 1:43 PM
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
Posted on June, 24 2018 - 1:10 PM
Hi Piet

OK, cook, thanks. Understood.