Changing style font in Scintilla gadget does not work
Posted: Sat May 05, 2012 5:36 pm
Hi,
i want to change the default style font in a Scintilla gadget, but it does not work on Fedora 16 64-bit. Instead the font style changed to italic.
On Windows XP 32-bit the code works as expected.
Thx for your help!
Uwe
i want to change the default style font in a Scintilla gadget, but it does not work on Fedora 16 64-bit. Instead the font style changed to italic.
Code: Select all
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
font.s = "Courier New"
InitScintilla()
CompilerElse
font.s = "Monospace"
CompilerEndIf
OpenWindow(0, 0, 0, 400, 400, "ScintillaGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ScintillaGadget(0, 8, 8, 384, 384, #Null)
ScintillaSendMessage(0, #SCI_STYLESETFONT, #STYLE_DEFAULT, @font)
ScintillaSendMessage(0, #SCI_SETTEXT, 0, @"This is a simple ScintillaGadget with text.")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindowThx for your help!
Uwe