Ich habe jetzt ein ganz anderes Problem
Also wie kann ich den Text der Ausgegeben wird Ändern?
Hier mal ein kleines Beispiel Skript:
Code: Alles auswählen
;{- Enumerations / DataSections
;{ Windows
Enumeration
#Window_0
EndEnumeration
;}
;{ Gadgets
Enumeration
#ComboBox_0
#Button_1
EndEnumeration
;}
Define.l Event, EventWindow, EventGadget, EventType, EventMenu
;}
Procedure OpenWindow_Window_0()
If OpenWindow(#Window_0, 404, 168, 191, 115, "Window_0", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar)
If CreateGadgetList(WindowID(#Window_0))
ComboBoxGadget(#ComboBox_0, 20, 30, 155, 100)
AddGadgetItem(#ComboBox_0,-1,"-----")
AddGadgetItem(#ComboBox_0,-1,"Funktion 1")
AddGadgetItem(#ComboBox_0,-1,"Funktion 2")
SetGadgetState(#ComboBox_0,0)
ButtonGadget(#Button_1, 20, 57, 100, 30, "Knopf")
EndIf
EndIf
EndProcedure
OpenWindow_Window_0()
;{- Event loop
Repeat
Event = WaitWindowEvent()
Select Event
; ///////////////////
Case #PB_Event_Gadget
EventGadget = EventGadget()
EventType = EventType()
If EventGadget = #ComboBox_0
ElseIf EventGadget = #Button_1
Select EventGadget()
Case #Button_1
MessageRequester("Test Window","Ein anderer Text: "+GetGadgetText(#ComboBox_0),#PB_MessageRequester_Ok)
EndSelect
EndIf
; ////////////////////////
Case #PB_Event_CloseWindow
EventWindow = EventWindow()
If EventWindow = #Window_0
CloseWindow(#Window_0)
Break
EndIf
EndSelect
ForEver
;
;}
Also der soll nicht Funktion 1 oder 2 ausgeben sondern z.b Befehl-Alpha für Funktion 1 und für Funktion 2 Befehl-Delta. Und bei ----- soll er gar nichts ausgeben.
Wie mache ich das jetzt???
Please Help
Danke schon mal
