Hi,
I'm creating custom theme in my app written in CFLTK (actually PasFLTK binding).
Normally this code:
Fl_Radio_Round_Button_set_selection_color(rb1, Fl_rgb_color(255,0,0));
... correctly draw red circle when radiobutton is checked. But when I create custom draw callback on FL_ROUND_DOWN_BOX:
Fl_set_box_type_cb2(Fl_BoxType_RoundDownBox, @DrawBox_RoundDownBox, 1, 1, 2, 2, @DrawFocus);
procedure DrawBox_RoundDownBox(x: longint; y: longint; w: longint; h: longint; c: dword); cdecl;
begin
// Border
Fl_draw_circle(x, y, h, TPasFLFusionStyle.Colors[fscBorderButton]);
// Background
Fl_draw_circle(x+1, y+1, h-1, TPasFLFusionStyle.Colors[fscBackground2]);
end;
Then it always draw "checked" circle with foreground color. I can't even change this behaviour and draw own "light". Is it a bug?
Regards