Jump to content

Czar

Members
  • Content Count

    392
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Czar

  1. Czar

    Development updates

    that is what I had done already-
  2. Czar

    wysiwyg

    Very cool. A wysiwyg widget would be very nice
  3. Czar

    IDE & Documentation

    I concur renaming a project is buggy. I would also love to be able to add a search path for units. At the moment we have to create a symlink inside the RTL folder to a network folder to store our common units. However, it would be much nicer if we could add a path to the IDE which is read when the RTL units are loaded. It would also be very excellent if when you go "open" it opens the last folder you were in rather than the SMS folder. We keep our projects on a network drive and it takes a significant number of clicks to take us back to the folder where are working.
  4. Czar

    Development updates

    I have updated using SmartUpdate /changechannel /showhidden If I subsequently run smartupdate by double clicking I get a message that development not available. Can you update smartupdate so that we don't have to run from DOS using SmartUpdate /changechannel /showhidden every time - or set up a batch file
  5. Czar

    Save tw3image to desktop?

    Colleagues have asked me if it possible to set a system where-by franchisees can edit text for social media ads. i.e., I display an image in their browser, they can edit the text and when they are done a PNG or JPG can be downloaded. I am just not sure about the last step - downloading. I know javascript is not supposed to access local machine but there must be a way to do it - my question is how easy is it to implement and can someone point me in the right direction? cheers
  6. I simply edited settings.ini [Settings] Channel=MASTER RelativePaths=1
  7. Czar

    forum login

    I have not had any login issues. I login regularly from three different devices. I don't have to enter info though - the forum remembers me from last time.
  8. Czar

    forum search problem

    confirmed
  9. I use this app instead http://www.harddisksearch.com/ I can search folders like projects and RTL for anything I am trying to find.
  10. Czar

    Yikes!!!

    Thanks for the update Jarto, it does look dire from our point of view so more activity and engagement from the stake holders would be seen as positive
  11. Czar

    Yikes!!!

    I just read the news and I believe you are correct IELite. Without Jon's major input the project feels like it will fold. Jarto is the only other member that I am aware of. If the other shareholder's don't show some significant leadership then it will flounder. Personally I hope it doesn't disappear and perhaps a better solution would be to opensource everything. SMS is a product we use everyday and it fits very well into part of our development requirements. Shame to see it end.
  12. There have been a few threads about this topic but I couldn't get any of them to work with my current challenge. My challenge was accessing a label (child) on a panel. The problem I was having was GetChildCount and GetChildObject are not accessible from the objects so I cast them a Tw3TagContainer instead, probably ok to cast as something else. I will post my solution as an example. procedure TForm1.InitializeForm; begin inherited; // this is a good place to initialize components var W3Panel1 := tw3panel.create(self); W3Panel1.setbounds(10,10,400,400); var mylbl := TW3Label.create(W3Panel1); mylbl.SetBounds(10,10,80,30); mylbl.caption := 'label on panel'; mylbl.tagvalue := 2; for var i := TW3TagContainer(W3Panel1).GetChildCount -1 downto 0 do begin var obj := TW3TagContainer(W3Panel1).GetChildObject(i); if obj is TW3Label then tw3label(obj).caption := 'IT WORKED'; end; end;
  13. Czar

    Size of Components at Runtime

    That would be a useful solution
  14. Czar

    Size of Components at Runtime

    Wouldn't that boil down to css? I open sms drop down a tw3button at 128x32. If I leave the border then seems a bit bigger - if I remove border then 128x32
  15. Czar

    ShowModal and Measuring Text

    I assume you have checked the obvious, that FMessageText is not blank? What happens if you fudge a size, does work correctly otherwise?
  16. Czar

    tw3slider mouseup

    if you have a tw3slider and you add a mouseup event then it breaks the component. Once you have clicked on it you cannot stop it reacting to the mouse.
  17. Czar

    inheritance

    I have been working on rendering fonts onto the canvas. After getting a few pointers I managed to get what I am after. However, I have been hacking direct into the smartcl.legacy procedure TCanvas.TextOut(dx,dy: integer;aText: string;aColor:TColor); var mTemp: Variant; begin mTemp:=FDC.fillStyle; FDC.fillStyle:=ColorToWebStr(aColor); FDC.lineWidth:=4; FDC.shadowBlur := 7; FDC.shadowColor := 'black'; FDC.strokeText(aText,dx,dy); FDC.shadowBlur:=0; FDC.fillStyle:="white"; FDC.FillText(aText,dx,dy); FDC.fillStyle:=mTemp; I thought i could simply inherit type TMyCanvas = class(Tcanvas) procedure MyTextOut(dx,dy: integer;aText: string;aColor:TColor); end; procedure TMyCanvas.MyTextOut(dx,dy: integer;aText: string;aColor:TColor); var mTemp: Variant; begin FDC.lineWidth:=4; FDC.shadowBlur := 7; FDC.shadowColor := 'black'; FDC.strokeText(aText,dx,dy); FDC.shadowBlur:=0; FDC.fillStyle:="white"; FDC.FillText(aText,dx,dy); FDC.fillStyle:=mTemp; end; However, I get an error FDC not visible in this scope. What basic 101 am I violating? Syntax Error: Member symbol "FDC" is not visible from this scope [line: 54, column: 10, file: Form1]
  18. Czar

    inheritance

    I managed to a solution which is probably better var Context := JCanvasRenderingContext2D(LBitmap.canvas.context.handle.getContext('2d')); Context.font:="75px verdana"; Context.shadowColor:="black"; Context.shadowBlur:=7; Context.lineWidth:=5; Context.strokeText("TEstMe",25,100); Context.shadowBlur:=0; Context.fillStyle:="white"; Context.fillText("TEstMe",25,100);
  19. Czar

    canvas font rendering

    Hi I am trying to understand what my options are when I textout to canvas. LBitmap.Canvas.Context.DC.font := 'bold 24px verdana '; When I google I get lots of results for CSS but that is presumably not quite the same as above. I am looking to understand what this type of definition is referred to. Why because I would like to render with a text-shadow or blur or some other nice effect. I am struggling with some basic gaps in understanding. Is this referred to context.font? https://www.w3schools.com/Tags/canvas_font.asp
  20. Czar

    canvas font rendering

    The bit that I don't follow is how do I go from say this function drawStroked(text, x, y) { ctx.font = "80px Sans-serif" ctx.strokeStyle = 'black'; ctx.lineWidth = 8; ctx.strokeText(text, x, y); ctx.fillStyle = 'white'; ctx.fillText(text, x, y); } drawStroked("37°", 50, 150); to this LBitmap.Canvas.Context.DC.font := 'bold 24px verdana '; where can I find out what "'bold 24px verdana '; " can be replaced with?
  21. Czar

    Translucent Panel Blur Effect

    Would the ImageFilters demo get you there? The stack blur could be used with opacity etc
  22. Czar

    smartcl.effects

    Suggestion - the fxmove etc are very good - easy to use. However, there doesn't appear to be a simple rotation effect. You can go the whole rotation system using TW3RotateCSSAnimation however, if you simply want to adjust the angle a bit, like a rocking boat of swaying palm trees then you appear to have to make your own. procedure TForm1.RockBoat; begin visual.boatangle := visual.boatangle +0.2; visual.boatimg.Angle := sin(visual.boatangle); TW3Dispatch.Execute( procedure begin RockBoat end, 75); end;
  23. Czar

    Background uploading files

    Cheers Nico, the client app is as simple as I could make it. The creation app (not linked) has a bit more going for it. It is a bit rough but it is easy for my colleague to create new items with a minimum of fuss for franchisees to then customise and use for their social media requirements. It will save us many hours of work not having to customise on demand in Illustrator. I am in no way a fan of Edge - it is just that my years of educating our franchisees in using a real browser haven't paid 100% dividends. I will check out the links. I have insufficient understanding of javascript and find interfacing with SMS mostly hocus pocus. I will see how I get on tomorrow - as for now I am back to painting architraves and window sills
  24. Czar

    Background uploading files

    This app is now almost done https://numberworksnwords.com/adtoolkit/index.html However, it won't download the resulting image in MS Edge writeln('About to create image for downloading'); TW3URLObject.Download( LEncodedData, textbox[0].imagefilename); // only works in a external browser writeln('encoded '+LEncodedData); The LENcodedData is there but no image is created when TW3URLObject.Download is called. Works no probs with Chrome and Firefox Any ideas why edge is different and if there is possible to work around? I have attached simple example testedge.rar
×