|
Dynamic tab, how to access controls on each pane. |
Started by PETR_K, Jan., 05 2016 2:10 PM - 6 replies |
| |
| | | |
|
| |
Registered member 71 messages |
|
Posted on January, 05 2016 - 2:10 PM |
Hello,
I try to use dynamic tabs. As far as I work on my project everything was ok, untill now.
I would like to acess individual controls on panes (like edit boxes eet, just standard controls) and I do not know how...
This code TAB_Verze["ALIAS_2"].EDT_Zadani in debugger shows content of "EDT_Zadani" but the same code in application, in TRACE, or when I try to assign some value to EDT_Zadani, says that 'EDT_Zadani' element not found in 'TAB_Verze' element.
In code editor is ".EDT_Zadani" in red color because compiler knows that only during runtime.
I also tried indirection like this Trace({TAB_Verze[TAB_Verze]+".EDT_Zadani",indWindow}) but it says "'.EDT_Zadani' element unknown."
Any ideas please? Is it some general problem or just something specific to dynamic tabs?
Thank you in advance
Petr |
| |
| |
| | | |
|
| | |
| |
Registered member 7 messages |
|
Posted on March, 04 2024 - 11:58 AM |
Bump up, anyone? i have the same problem |
| |
| |
| | | |
|
| | |
| |
Registered member 7 messages |
|
Posted on March, 04 2024 - 1:56 PM |
i've made some progress.
I wanted to add lines to a table in an open dynamic tab.
Here is how i've done it:
PaneAlias1 is string = "ALIAS_1" Trace(WIN_MDI_Tab.TAB_Customers_table[PaneAlias1]..Caption)
x is Control <- {PaneAlias1 + ".TABLE_NoName1",indControl} Trace(x..Caption) x.AddLine("X","Y") Message modified, March, 04 2024 - 1:56 PM |
| |
| |
| | | |
|
| | |
| |
Registered member 59 messages |
|
Posted on March, 05 2024 - 10:26 AM |
Hi Petr, It's explained quite well on the help page for the TabOpen() function https://help.windev.com/…
gsAlias is string = TabOpen(TAB_NoName1, "Initial caption", IW_Internal) x is Control <- TAB_NoName1[gsAlias] x.IW_Internal.EDT_NoName1.Width = 500
Hope this helps Andrea |
| |
| |
| | | |
|
| | |
| |
Posted on April, 25 2024 - 12:26 PM |
Why is the control "EDT_Zadani" showing in the debugger but not accessible in the application runtime, and what steps have you taken to ensure proper instantiation and accessibility within the scope of the dynamic tabs implementation? |
| |
| |
| | | |
|
| | |
| |
Registered member 71 messages |
|
Posted on September, 03 2024 - 9:57 PM |
Thank you guys!
I asked that in 2016 and because I did not solve this issue in reasonable time, I quit dynamic tabs. But now I want to use them somewhere else so I will go throught your comments and I believe I will be succesfull now.
Petr |
| |
| |
| | | |
|
| | |
| |
Registered member 4 messages |
|
Posted on October, 24 2024 - 8:30 AM |
Try using Indirection operators.
-- Sanjog Ghonge |
| |
| |
| | | |
|
| | | | |
| | |
|