DtvLong dal_wdg_max_siz (flg)

Maximizes the visible widget size or sets the visible widget size back to the original value.

Input Parameters Significance
char flg control flag for maximizing or resetting of:
0 = length and width
1 = length only
2 = width only

Output Parameters Significance
no -

Return Code Significance
0 no error
1 no widget active

This function works like a toggle switch:

First call:

Sets the visible widget size to the values of the virtual widget size (maximize).

If, because of its position, the widget exceeds the screen size, DataView will re-assign a new position of the widget automatically.

Second call:

Resets the visible widget size to the original values before the first call of the function.

If DataView changed the widget position in the first call, the widget will take its previous position again.