|
How to enumerate the items on a sidebar |
Iniciado por J. Flietstra, set., 27 2004 12:15 PM - 10 respostas |
| |
| | | |
|
| |
Publicado em setembro, 27 2004 - 12:15 PM |
How to enumerate the items on a sidebar.. I use enumerate for a window and i can enumerate the content of a table, but i want to know the items of a sitebar. |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 27 2004 - 12:25 PM |
sidebar..Occurrence if you mean the number of planes on the sidebar EnumControl if you mean the number of controls on a plane HTH Raimund
How to enumerate the items on a sidebar.. I use enumerate for a window and i can enumerate the content of a table, but i want to know the items of a sitebar.
http://www.invitec.com |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 27 2004 - 11:19 PM |
sidebar..Occurrence if you mean the number of planes on the sidebar EnumControl if you mean the number of controls on a plane HTH Raimund How to enumerate the items on a sidebar.. I use enumerate for a window and i can enumerate the content of a table, but i want to know the items of a sitebar. What i want to know is from every control on the sidebar the content of the control... |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 28 2004 - 10:52 AM |
FOR I = 1 to sidebar..Occurrence ShowCtrl(sidebar[I]) END PROCEDURE ShowCtrl(MyCtrl) nInd is int = 1 sCtrl is string LOOP sCtrl = EnumControl(MyCtrl, nInd) IF sCtrl = "" THEN BREAK END // Note, that you have to call ShowCtrl recursive if the current // control is a tab, a group or a supercontrol INFO(sCtrl) nInd++ END HTH Raimund >What i want to know is from every control on the sidebar the content of the control...
http://www.invitec.com |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 28 2004 - 11:56 AM |
FOR I = 1 to sidebar..Occurrence ShowCtrl(sidebar[I]) END PROCEDURE ShowCtrl(MyCtrl) nInd is int = 1 sCtrl is string LOOP sCtrl = EnumControl(MyCtrl, nInd) IF sCtrl = "" THEN BREAK END // Note, that you have to call ShowCtrl recursive if the current // control is a tab, a group or a supercontrol INFO(sCtrl) nInd++ END HTH Raimund The EnumControl(MyCtrl, nInd) gives a error, controll is not a window, report, or supercontrol |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 28 2004 - 12:09 PM |
Did test this with 80.315pu and works fine for me. What version do you use? Are you sure that you called it with a sidebar? Do a Info(sidebar..Type), the result should be 29.
FOR I = 1 to sidebar..Occurrence ShowCtrl(sidebar[I]) END PROCEDURE ShowCtrl(MyCtrl) nInd is int = 1 sCtrl is string LOOP sCtrl = EnumControl(MyCtrl, nInd) IF sCtrl = "" THEN BREAK END // Note, that you have to call ShowCtrl recursive if the current // control is a tab, a group or a supercontrol INFO(sCtrl) nInd++ END HTH Raimund The EnumControl(MyCtrl, nInd) gives a error, controll is not a window, report, or supercontrol
http://www.invitec.com |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 28 2004 - 1:28 PM |
I got with your code this error.... ------------------------------------------ Error in Initialization of Window3 process, line 6. EnumControl function called. Type Error. The 'SideBar1' object is not a window, a tab or a group. |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 28 2004 - 1:37 PM |
Can you provide YOUR complete code and which WinDev version you use? Maybe there is little typo. As I said before I did test this code with 315pu. Regards Raimund
I got with your code this error.... ------------------------------------------ Error in Initialization of Window3 process, line 6. EnumControl function called. Type Error. The 'SideBar1' object is not a window, a tab or a group.
http://www.invitec.com |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 28 2004 - 1:44 PM |
Can you provide YOUR complete code and which WinDev version you use? Maybe there is little typo. As I said before I did test this code with 315pu. I use your code... and my Windev is version 315pu (english) I see a difference between buttons and other controls on a sidebar.. See my new message, even the groupware function of pc-soft can't see the pane names and buttons on a pane |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 28 2004 - 1:55 PM |
What difference? I have a sidebar with 3 panes and table, listview, and button controls on it. No problem to enumerate it. Do you use the code inside a window or from a class/global procedure? Raimund
I see a difference between buttons and other controls on a sidebar.. See my new message, even the groupware function of pc-soft can't see the pane names and buttons on a pane
http://www.invitec.com |
| |
| |
| | | |
|
| | |
| |
Publicado em setembro, 28 2004 - 2:10 PM |
What difference? I have a sidebar with 3 panes and table, listview, and button controls on it. No problem to enumerate it. Do you use the code inside a window or from a class/global procedure? I have place the code in the initialisation of the window, en use directly the windowname in the enumcontrol function. I will make a short example and send it to you by e-mail |
| |
| |
| | | |
|
| | | | |
| | |
|