C Claude Brun Active Member Licensed User Longtime User Dec 6, 2019 #1 Hi, I use B4Xdrawer and I arrive to change the color of BarButton with this code Dim nx As NativeObject = NavControl Dim no As NativeObject =App nx.GetField("navigationBar").RunMethod("setTintColor:", Array(no.ColorToUIColor(c))) I would like to change bitmap of the button (on for open, on for close) but I do not arrive to do this. (initial load of bitmap is Ok) Is it possible? Thank
Hi, I use B4Xdrawer and I arrive to change the color of BarButton with this code Dim nx As NativeObject = NavControl Dim no As NativeObject =App nx.GetField("navigationBar").RunMethod("setTintColor:", Array(no.ColorToUIColor(c))) I would like to change bitmap of the button (on for open, on for close) but I do not arrive to do this. (initial load of bitmap is Ok) Is it possible? Thank
Semen Matusovskiy Well-Known Member Licensed User Dec 6, 2019 #2 BarButton supports InitializeBitmap method. I added some statements to Erel's sample. Attachments test.zip 42.2 KB · Views: 302 Last edited: Dec 7, 2019 Upvote 0