Page 1 of 1

screenset definition : purpose of id

PostPosted: Tue Nov 02, 2021 2:07 pm
by cseyler
Hello,
As far as the tabs "labelnumber" represent "layers" on which other controls (like background, button, led,...) can be linked, i don't understand the purpose of the "control id" (background number, button number, ...)

Could you clarify the purpose of these IDs ?

Thanks in advance

Re: screenset definition : purpose of id

PostPosted: Tue Nov 02, 2021 3:19 pm
by dezsoe
Which function has this parameter?

Re: screenset definition : purpose of id

PostPosted: Tue Nov 02, 2021 4:12 pm
by cseyler
void Addbackground(double posX, double posY, double width, double height, int picturenumber, int backgroundnumber, int layernumber)

backgroundnumber ?

Function: void Addmdi(string labeltext, string labelfont, string textalign, int fontsize, int fontcolor, int posX, int posY, int width, int MDInumber, int layernumber)

MDINumber ?

Re: screenset definition : purpose of id

PostPosted: Tue Nov 02, 2021 7:28 pm
by ger21
To know which one it is if you have multiple backgrounds.

Re: screenset definition : purpose of id

PostPosted: Thu Nov 04, 2021 12:08 pm
by dezsoe
The backgroundnumber is not used, you can simply zero out. (It is there for backwards compatibility.)

The AddMDI function is not used. You can add MDI by placing field 1000.