From e2c989d38a762b21be40ed4766ecca1c33219772 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Wed, 4 Sep 2024 16:29:30 +0200 Subject: [PATCH] bitmap bundle only available on wxWidgetsVersion >= version("3.1.6") --- src/wx/widgets/PropertyGrid.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wx/widgets/PropertyGrid.hx b/src/wx/widgets/PropertyGrid.hx index aea5a849..00cd8090 100644 --- a/src/wx/widgets/PropertyGrid.hx +++ b/src/wx/widgets/PropertyGrid.hx @@ -22,7 +22,9 @@ extern class PropertyGrid extends Control { @:native("AppendIn") public function appendIn(parent:RawPointer, property:RawPointer):RawPointer; @:native("GetProperty") public function getProperty(name:WxString):RawPointer; @:native("SetPropertyAttribute") public function setPropertyAttribute(id:WxString, attrName:WxString, value:Bool, argFlags:Int = 0):Void; + #if (wxWidgetsVersion >= version("3.1.6")) @:native("SetPropertyCell") public function setPropertyCell(property:RawPointer, column:Int, text:WxString, bitmap:BitmapBundle, fgCol:Colour, bgCol:Colour):Void; + #end @:native("SetPropertyBackgroundColour") public function setPropertyBackgroundColour(property:RawPointer, color:Colour, flags:PGPropertyValuesFlags):Void; @:native("ShowScrollbars") public function showScrollbars(horz:ScrollbarVisibility, vert:ScrollbarVisibility):Void; @:native("SetPropertyReadOnly") public function setPropertyReadOnly(property:RawPointer):Void;