win_api -> Linux
Verfasst: 14.09.2014 18:43
Kann mir mal jeman sagen, wie die Winapi Konstanten #WM_COPY, #WM_PASTE bei Linux lauten ?
gtk_ ...... ?
gtk_ ...... ?
Code: Alles auswählen
ImportC ""
g_signal_emit_by_name(*inst, name.p-utf8)
EndImport
OpenWindow(0, #PB_Ignore, #PB_Ignore, 640, 480, "")
EditorGadget(0, 10, 10, 620, 460)
SetClipboardText("Hallo die Enten")
g_signal_emit_by_name(GadgetID(0), "paste-clipboard")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
Code: Alles auswählen
EnableExplicit
CompilerIf #PB_Compiler_OS = #PB_OS_Linux
ImportC ""
g_signal_emit_by_name(*inst, name.p-utf8)
EndImport
CompilerEndIf
OpenWindow(0, #PB_Ignore, #PB_Ignore, 640, 480, "")
EditorGadget(0, 10, 10, 620, 460)
SetClipboardText("Hallo die Enten")
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Windows
SendMessage_(GadgetID(0), #WM_PASTE, 0, 0)
CompilerCase #PB_OS_Linux
g_signal_emit_by_name(GadgetID(0), "paste-clipboard")
CompilerEndSelect
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow