PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Dynamic tab, how to access controls on each pane.
Dynamic tab, how to access controls on each pane.
Started by PETR_K, Jan., 05 2016 2:10 PM - 5 replies
Connect yourself…
PETR_K
#1
Registered member
70 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
Report
0
0
Fernandes DIOGO
#2
Registered member
7 messages
Posted on March, 04 2024 - 11:58 AM
Bump up, anyone? i have the same problem
Report
0
0
Fernandes DIOGO
#3
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
C
ontrol
<
- {
PaneAlias1
+
".TABLE_NoName1"
,
indControl
}
Trace
(x..
Caption
)
x
.AddLine
(
"X"
,
"Y"
)
Message modified, March, 04 2024 - 1:56 PM
Report
0
0
Andrea Chiadò Piat
#4
Registered member
59 messages
Popularité : +2 (2 votes)
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/…
// Handle a control found in an internal window of a pane
gs
Alias
is string
=
TabOpen
(
TAB_NoName1
,
"Initial caption"
,
IW_Internal
)
x
is
C
ontrol
<
-
TAB_NoName1
[
gs
Alias
]
x
.IW_Internal.EDT_NoName1.Width
=
500
Hope this helps
Andrea
Report
1
0
harrykeith
#5
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?
Report
0
0
PETR_K
#6
Registered member
70 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
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text