TreeGadget Font & Color
Posted: Mon Feb 19, 2024 3:43 pm
Hi everybody,
I need a custom navigation gadget an figured out, that the TreeGadget would be great for this, but there are some problems.
I need a custom navigation gadget an figured out, that the TreeGadget would be great for this, but there are some problems.
- Custom fonts work, but line spacing seems fixed (see example). Is there a way to change line spacing with big fonts?
- Custom Color works just for the entire gadget. Is it possible to set color just for a gadget item?
- Is it possible to change the navigation symbols (">")?
Code: Select all
OpenWindow(0, 0, 0, 600, 400, "Treegadget Font Problem", #PB_Window_ScreenCentered)
TreeGadget(0, 10, 10, 280, 380)
AddGadgetItem(0, -1, "Treegadget")
AddGadgetItem(0, -1, "with default font")
TreeGadget(1, 310, 10, 280, 380)
AddGadgetItem(1, -1, "Treegadget")
AddGadgetItem(1, -1, "with custom font")
LoadFont(0, "Arial", 30)
SetGadgetFont(1, FontID(0))