4D View v16PV GET CELL CONTROL |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v16
PV GET CELL CONTROL
|
PV GET CELL CONTROL ( Bereich ; Spalte ; Zeile ; Typ ; Name ; Methodenname ; Titel ) | ||||||||
Parameter | Typ | Beschreibung | ||||||
Bereich | Lange Ganzzahl |
![]() |
4D View Bereich | |||||
Spalte | Lange Ganzzahl |
![]() |
Spaltennummer Zelle | |||||
Zeile | Lange Ganzzahl |
![]() |
Zeilennummer Zelle | |||||
Typ | Ganzzahl |
![]() |
Kontrolltyp | |||||
Name | String |
![]() |
Kontrollname | |||||
Methodenname | String |
![]() |
Name Callback Methode | |||||
Titel | String |
![]() |
Kontrolltitel | |||||
Der Befehl PV GET CELL CONTROL erhält Information über das Kontrollobjekt angezeigt in der Zelle, definiert durch Spalte und Zeile in 4D View Bereich.
Ein Kontrollobjekt ist ein Objekt vom Typ Schaltfläche, Kontrollkästchen, Optionsfeld, DropDown Liste oder Combo Box in einer Zelle.
Typ gibt den Typ des Kontrollobjekts in der Zelle an. Das sind die 5 oben erwähnten Typen. Für diesen Parameter verwenden Sie eine Konstante unter dem Thema PV Steuerung.
Name ist der Name einer 4D Variablen oder eines Arrays. Ist das Kontrollobjekt eine Drop-Down Liste und Combo Box, erhalten Sie hier ein Array mit den Werten.
Methode enthält den Namen der Callback Methode, die mit dem Kontrollobjekt verknüpft ist.
Titel enthält die Bezeichnung der Schaltfläche, des Kontrollkästchens, etc.
Nachfolgende Methode füllt die Zellen unterhalb eines Kontrollobjekts mit einer dazu passenden Beschreibung. Zuvor muss die Zelle mit dem Kontrollobjekt ausgewählt sein:
C_LONGINT($Column;$Row) //Koordinaten der "kontrollierten" Zelle
C_LONGINT($CtrlType) //Kontrolltyp
C_TEXT($CtrlName) //Kontrollname
C_TEXT($CallbackMethod) //Name der CallbackMethode
C_TEXT($Title) //Kontrolltitel
C_TEXT($TypeName) //Name Kontrolltyp
PV GET CURRENT CELL(Bereich;$Column;$Row) //Kontrollierte Zelle
PV GET CELL CONTROL(Bereich;$Column;$Row;$CtrlType;$CtrlName;$CallbackMethod;$Title)
Case of
:($CtrlType=0)
$TypeName:="Keine Kontrolle"
:($CtrlType=pv control push button)
$TypeName:="Schaltlfläche"
:($CtrlType=pv control radio button)
$TypeName:="Optionsfeld"
:($CtrlType=pv control check box)
$TypeName:="Kontrollkästchen"
:($CtrlType=pv control drop down)
$TypeName:="DropDown-Liste"
:($CtrlType=pv control combo box)
$TypeName:="Combo Box"
End case
PV SET CELL TEXT VALUE(Bereich;$Column;$Row+1;"Typ: "+$TypeName)
PV SET CELL TEXT VALUE(Bereich;$Column;$Row+2;"Name: "+$CtrlName)
PV SET CELL TEXT VALUE(Bereich;$Column;$Row+3;"Titel: "+$Title)
PV SET CELL TEXT VALUE(Bereich;$Column;$Row+4;"Methode: "+$CallbackMethod)
Produkt: 4D View
Thema: PV Zellenwerte
Nummer:
15911
Erstellt: 4D View 6.8
4D View Programmiersprache ( 4D View v16)