FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
Dynamic tab, how to access controls on each pane.
Dynamic tab, how to access controls on each pane.
Débuté par PETR_K, 05 jan. 2016 14:10 - 4 réponses
Connectez-vous…
PETR_K
#1
Membre enregistré
68 messages
Posté le 05 janvier 2016 - 14:10
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
Signaler
0
0
Fernandes DIOGO
#2
Membre enregistré
7 messages
Posté le 04 mars 2024 - 11:58
Bump up, anyone? i have the same problem
Signaler
0
0
Fernandes DIOGO
#3
Membre enregistré
7 messages
Posté le 04 mars 2024 - 13:56
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 modifié, 04 mars 2024 - 13:56
Signaler
0
0
Andrea Chiadò Piat
#4
Membre enregistré
55 messages
Popularité : +2 (2 votes)
Posté le 05 mars 2024 - 10:26
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
Signaler
1
0
harrykeith
#5
Posté le 25 avril 2024 - 12:26
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?
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte