Scintilla
Publié : sam. 25/juin/2016 8:31
Pour la doc, pouvez-vous me dire si ce code fonctionne bien avec votre pb 5.50, svp ?
Merci de m'indiquer votre système d'exploitation aussi.
Testé avec Windows XP 32 bits sp3: ok
M.
Merci de m'indiquer votre système d'exploitation aussi.
Testé avec Windows XP 32 bits sp3: ok
Code : Tout sélectionner
If OpenWindow(0, 0, 0, 360, 90, "ScintillaGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If InitScintilla()
ScintillaGadget(0, 10, 10, 340, 70, 0)
; Texte en rouge
ScintillaSendMessage(0, #SCI_STYLESETFORE, 0, RGB(255, 0, 0))
; Définit le texte initial du ScintillaGadget
ScintillaSendMessage(0, #SCI_SETTEXT, 0, UTF8("Voici un simple ScintillaGadget avec du texte éà..."))
; Ajout d'une deuxième ligne de texte précédée d'un saut de ligne
Texte$ = Chr(10) + "Seconde ligne."
ScintillaSendMessage(0, #SCI_APPENDTEXT, Len(Texte$), UTF8(texte$))
EndIf
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf