Ich mache offenbar etwas grundlegendes falsch. In diesem gering erweiterten Beispiel aus der PB-Hilfe
Code: Alles auswählen
If OpenWindow(0, 0, 0, 320, 190, "ScintillaGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If InitScintilla()
ScintillaGadget(0, 10, 10, 300, 170, #Null)
;Damit soll eigentlich ein Zeilenumbruch erfolgen, tut aber nicht
ScintillaSendMessage(0,#SCI_SETWRAPMODE,0,#SC_WRAP_WORD)
; Output set to red color
ScintillaSendMessage(0, #SCI_STYLESETFORE, 0, RGB(255, 0, 0))
; Set the initial text to the ScintillaGadget
ScintillaSendMessage(0, #SCI_SETTEXT, 0, @"Das ist ein besonders langer und interessanter Text...")
; Adding a second line of text with linebreak before
Text$ = Chr(10) + "Second line"
ScintillaSendMessage(0, #SCI_APPENDTEXT, Len(Text$), @Text$)
EndIf
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
ScintillaSendMessage(0,#SCI_SETWRAPMODE,0,#SC_WRAP_WORD)
einen Zeilenumbruch herbeizuführen, geht aber nicht. Was ist falsch?
__________________________________________________
Tags geändert
Quote>Code
09.04.2011
RSBasic