Search the Community
Showing results for tags 'unicanvas'.
-
Hi! For the showing dynamic data i create runtime instance of TUniCanvas and it image change periodicaly via BitmapCanvas. Once created, it is transparent. But as soon as I draw something (even a simple line or change the color of one pixel) - transparency is lost Can I make it transparent permanently? Thanks!
-
I am trying to apply some styling to the border of a TUniCanvas using the following, but nothing appears: procedure TMainForm.UniFormShow(Sender: TObject); begin with UniCanvas1.JSInterface do begin JSConfig('style', ['border-style: solid']); JSConfig('style', ['border-width: 1px']); JSConfig('style', ['border-color: red']); end; end; If I comment out the border-width and border-color lines then the border appears. How can I apply all the border styling to the Canvas.
-
Hi All, Is it possible to move entities around on the canvas, for example if I create a rectangle - UniCanvas1.BitmapCanvas.Rectangle(X1, Y1, X2, Y2); How would I go about selecting this rectangle and moving the position of it on the canvas with the mouse? Thanks for any suggestions Infact what I am trying to to is create a simple tool to allow a user to build a 'layout' diagram. I need to be able to add entities - shapes, lines and maybe some text. I also need to be able to select ,move and delete items. I then need to save it as an image. It only needs to be very basic - what is the best way to go about this?