|
how to pass parameters to internal window |
Iniciado por Mick, out., 08 2020 6:42 AM - 3 respostas |
| |
| | | |
|
| |
Publicado em outubro, 08 2020 - 6:42 AM |
Hi,i am Mick
i want to pass parameters to internal window.
Although I see the document description(https://doc.windev.com/en-US/…, there may be some missing information in the document description, so I still don't know how to operate. If someone has already done so, I hope u can give me some help. Thank you so much! |
| |
| |
| | | |
|
| | |
| |
Membro registado 54 mensagems Popularité : +2 (2 votes) |
|
Publicado em outubro, 08 2020 - 11:05 AM |
Hi Mick, if your internal window is in a dynamic tab you can pass parameters directly in tabopen()
TabOpen(TAB_Main, "Test of the new tab", IW_YourInternalWindow,"Param1","Param2","Param3")
If your internal window in opened in a 'internal window control' you have to open your window with ChangeSourceWindow passing your paramaters
or
create a list of variable in your internal window Param1 is int Param2 is string
and a procedure to do the init code
Procedure myInitCode ...
and then
IWCTRL_Control.Param1=100 IWCTRL_Control.Param2="test"
IWCTRL_Control.myInitCode
I hope this help Bye
Andrea |
| |
| |
| | | |
|
| | |
| |
Publicado em outubro, 08 2020 - 12:13 PM |
Andrea Chiadò Piat wrote:
Hi Mick, if your internal window is in a dynamic tab you can pass parameters directly in tabopen()
TabOpen(TAB_Main, "Test of the new tab", IW_YourInternalWindow,"Param1","Param2","Param3")
If your internal window in opened in a 'internal window control' you have to open your window with ChangeSourceWindow passing your paramaters
or
create a list of variable in your internal window Param1 is int Param2 is string
and a procedure to do the init code
Procedure myInitCode ...
and then
IWCTRL_Control.Param1=100 IWCTRL_Control.Param2="test"
IWCTRL_Control.myInitCode
I hope this help Bye
Andrea
Thank so much,but i still have some question(i want to try third way) 1)in the internal window,in the event of Global declaration? For example: >>>Procedure myInitCode(Param1 is string) 2)Call this procedure in the window that contains the "Internal Window" control in the event of "Before uploading the internal window"? For example:
IWCTRL_Control.Param1 = “test” IWCTRL_Control.myInitCode
i have tried,but i can't work.Wish your deep help! Thanks so so much |
| |
| |
| | | |
|
| | |
| |
Publicado em outubro, 08 2020 - 12:13 PM |
Andrea Chiadò Piat wrote:
Hi Mick, if your internal window is in a dynamic tab you can pass parameters directly in tabopen()
TabOpen(TAB_Main, "Test of the new tab", IW_YourInternalWindow,"Param1","Param2","Param3")
If your internal window in opened in a 'internal window control' you have to open your window with ChangeSourceWindow passing your paramaters
or
create a list of variable in your internal window Param1 is int Param2 is string
and a procedure to do the init code
Procedure myInitCode ...
and then
IWCTRL_Control.Param1=100 IWCTRL_Control.Param2="test"
IWCTRL_Control.myInitCode
I hope this help Bye
Andrea
Thank so much,but i still have some question(i want to try third way) 1)in the internal window,in the event of Global declaration? For example: >>>Procedure myInitCode(Param1 is string) 2)Call this procedure in the window that contains the "Internal Window" control in the event of "Before uploading the internal window"? For example:
IWCTRL_Control.Param1 = “test” IWCTRL_Control.myInitCode
i have tried,but i can't work.Wish your deep help! Thanks so so much |
| |
| |
| | | |
|
| | | | |
| | |
|