ich habe folgendes Problem. Ich möchte Die Farbe eine XbpStatic ändern und später wiederherstellen. Eigentlich kein Problem:
Code: Alles auswählen
nOldColor := oXbpStatic:SetColorFG()
...
oXbpStatic:SetColorFG( nOldColor)
Vielleicht hängt es damit zusammen, daß oXbpStatic eine ListBox() und nicht das Fenster als Parent hat?
Beispiel:
Code: Alles auswählen
oDlg := XbpDialog():New():Create( AppDesktop(),,, {640,480} )
oLst := XbpListBox():New( oDlg:DrawingArea )
oLst:Create( ,, {20,80},{580,350} )
oXbpStatic := XbpStatic():new( oLst, , {15,350/2-15}, {128,28} )
oXbpStatic:caption := "Id-Bezeich."
oXbpStatic:Create()
MsgBox( ValType( oXbpStatic:SetColorFG() ) )