| 4D v13PV GET CELL CONTROL | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D View v13
 PV GET CELL CONTROL 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PV GET CELL CONTROL ( Bereich ; Spalte ; Zeile ; Typ ; varName ; Methode ; Titel ) | ||||||||
| Parameter | Typ | Beschreibung | ||||||
| Bereich | Lange Ganzzahl |   | 4D View Bereich | |||||
| Spalte | Lange Ganzzahl |   | Spaltennummer Zelle | |||||
| Zeile | Lange Ganzzahl |   | Zeilennummer Zelle | |||||
| Typ | Ganzzahl |   | Kontrolltyp | |||||
| varName | String |   | Kontrollname | |||||
| Methode | 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 Zelle mit Kontrollobjekt
 C_INTEGER($CtrlType) `Kontrolltyp
 C_STRING(32;$CtrlName) `Name (wenn vorhanden) des Kontrollobjekts
 C_STRING(32;$CallbackMethod) `Name CallbackMethode
 C_STRING(32;$Title) `Kontrolltitel
 C_STRING(32;$TypeName) `Name Kontrolltyp
 
 PV GET CURRENT CELL(Bereich;$Column;$Row) `Zelle mit Kontrollobjekt
 PV GET CELL CONTROL
 (Bereich;$Column;$Row;$CtrlType;$CtrlName;$CallbackMethod;$Title)
 
 Case of
    :($CtrlType=0)
       $TypeName:="Keine Kontrolle"
 
    :($CtrlType=pv control push button)
       $TypeName:="Schaltflä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;"Title: "+$Title)
 PV SET CELL TEXT VALUE
 (Bereich;$Column;$Row+4;"Methode: "+$CallbackMethod)
	Produkt: 4D
	Thema: PV Zellenwerte
	Nummer: 
        15911
        
        
        
	
     Alphabetische Liste der Befehle
    Alphabetische Liste der Befehle
	Erstellt: 4D View 6.8
PV Get cell value type
PV SET CELL CONTROL