i have button links view control. trying change text of button segmented control. using jared davidson tutorial on segmented controls changing text of labels . how change text of button? also, when attempted japanese characters, got error on line: "invalid character in source file". thank you! you can change button title japanese characters way: yourbutton.settitle("ボタンのタイトル", forstate: uicontrolstate.normal)
say have multiple objects selected on fabric.js canvas , can group of objects using getactivegroup. can provide example of how copy , paste group new group, where: (a) each object in copied group retains relative position other copied objects (b) copied group whole positioned @ specified x,y position (c) copied group objects selected group after paste, if selection cleared treated individual objects on canvas i have tried pasting cloning , adding cloned group this: canvas.getactivegroup().clone(function(clone) { clone.left = 100; clone.top = 100; canvas.add(clone); canvas.deactivateall(); canvas.setactivegroup(clone).renderall(); }); now after code run cloned group objects seem added, positioned , selected ok, click canvas clear selection cloned group objects jump different spot on canvas. cloned objects not individually selectable , selection location out of sync new object location. anyways i'm sure i'm missing i'm not sure what. ap...
Comments
Post a Comment