Trying to use Canvas.Pen.Style:=psDot on GTK2 has no apparent effect.
Is this a widgetset limitation, or is it just that on GTK2 no pen styles have been implemented apart from psSolid and psClear?
Ug :-) Using Mark I eyeballs only (ie no debugger), it looks to me like multiple pen styles are supported. Or at least, it looks to me like they *should* be supported. Inside Gtk2DeviceContext.inc, TGtkDeviceContext.SelectPenProps for instance there is this code:
// Paul Ishenin: I compared patterns with windows
case PenStyle of
PS_DASH: SetDashes([3,1]);
PS_DOT: SetDashes([1,1]);
PS_DASHDOT: SetDashes([3,1,1,1]);
PS_DASHDOTDOT: SetDashes([3,1,1,1,1,1]);
PS_USERSTYLE: laz_gdk_gc_set_dashes(GC, 0, CurrentPen^.GDIPenDashes, CurrentPen^.GDIPenDashesCount);
end;
This and @soerensen3's code (where he checked a different pen style, but still got an expected result) makes me think you could be staring at a bug.