MAC IDE: ToolsPanel custom font and colors

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

MAC IDE: ToolsPanel custom font and colors

Post by Danilo »

Please enable ToolsPanel options "Use a custom font" and "Use custom colors" in the PB IDE on Mac OS X.

Should be possible now, SetGadgetColor works with ListViewGadget and TreeGadget:

Code: Select all

  If OpenWindow(0, 0, 0, 200, 280, "SetGadgetColor", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    StringGadget(0, 10, 10, 180, 20, "String...")
    ListViewGadget(1, 10, 40, 180, 60)
    For i = 0 To 4
      AddGadgetItem(1, -1, "Text")
    Next i
    ContainerGadget(2, 10, 110, 180, 50, #PB_Container_Raised)
    CloseGadgetList()
    
    TreeGadget(3, 10, 170, 180, 100)
    For i = 0 To 4
      AddGadgetItem(3, -1, "Item", 0, i)
    Next i

    SetGadgetColor(0, #PB_Gadget_BackColor, $00FFFF)
    SetGadgetColor(1, #PB_Gadget_FrontColor, $FFFFFF)
    SetGadgetColor(1, #PB_Gadget_BackColor, $000000)
    SetGadgetColor(2, #PB_Gadget_BackColor, $0000FF)
    SetGadgetColor(3, #PB_Gadget_FrontColor, $00FF00)
    SetGadgetColor(3, #PB_Gadget_BackColor, $000000)

    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf
I would also like to change the colors/font of the compiler error log window.

Thanks in advance!
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: MAC IDE: ToolsPanel custom font and colors

Post by Danilo »

Changing purebasic.prefs by hand works:

Code: Select all

[ToolsPanel]
Width = 480
Side = 1
UseFont = 1
UseColors = 1
Font = Lucida Console
Fontsize = 14
FontStyle = 
FrontColor = 32768
BackColor = 0
NoIndependantColors = 1
ToolsPanel and error log colors get changed!

So it is only the IDE preferences "ToolsPanel > Options" where this settings are missing on Mac OS X.
Post Reply