Jump to content

Czar

Members
  • Content Count

    413
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by Czar

  1. Czar

    UI layout

    For me the most frustrating aspect of using SMS is layouts. Putting together anything beyond a trivial UI takes ages and is very frustrating to achieve. The Tlayout is not intuitive, it has weird and unexplainable side effects and takes a long time to get it right. Once you have it working then generally it is fine. We really need to have a more intuitive system to allow easy to create and maintain UI. I believe simple anchor (left, top, right, bottom)m, Align and "alignWithMargin" like Delphi has would be a great bonus to SMS. I have no idea what would be involved, or how much work it would be, but I would love to see this being developed.
  2. Czar

    UI layout

    Being able to make more complex UI that works on all devices will make life much much easier Looking forward to finished product.
  3. Czar

    Development updates

    I like the lighter default theme for buttons. Thanks for the update.
  4. I am having a number of issues with w3labels and correct wrapping of text. 1. When using a layout wordwrap is not obeyed- text disappears off to the side. 2. Wordwrap does work correctly in a normal non-layout formatted label - chopping off text top and bottom Changing wordwrap and autosize properties does not solve the issues. You can see in the picture the layout version along the top (above the button) and a normal label not in the layout below the button. In the top label the sentence is cut off at ... the sessions your children will be absent for:" (in italics is missing). In the bottom label the wordwrap does not result in sufficient height. ---- No custom css or non-standard settings just opened a new Visual Component Project internal browser set to limited width - e.g., (480x800) labelissue.zip
  5. Czar

    RTL Search

    I use this external program. Just add .pas to search options. It is very quick and it is only way that I can search through rtl and projects. http://www.harddisksearch.com/
  6. Czar

    css styling

    Aha. Ok I now understand. I will take a closer look on monday as this approach does sound promising
  7. Czar

    css styling

    I really not sure what I supposed to see. Here is a screen recording
  8. Czar

    css styling

    Hi, I might be missing the point - I click on tailwind one and see "oh" in a dialog. I click on tailwind 2 and nothing happens, no visual change. checked firefox and chrome
  9. Czar

    RoadMap 2019

    I too would love to see a roadmap plan for the next 12 months. The efforts have been going into special projects that not many people will probably have a use for and the bread-and-butter has been left at a usable but not great state. For example, the IDE could do with love. The fact that the visual components don't surface basics like font size/colour etc and requires work arounds and non-intuitive knowledge suggests low hanging fruit for improvements. The ide has lots of bugs and irritating issues. for example events on buttons will often be reoved or doubled up. e.g., OnSubmitClick for button can be set once but if double click on it again often it breaks. Would the team consider open sourcing the IDE? Or maybe looking at a completly different model. I am invested in using SMS but I did so in the hope of meaningful improvements. Jarto I believe you are only active owner and I really appreciate your efforts but you are one person and this project could be so much more with greater input from more people.
  10. Czar

    Font size and style in buttons

    It would be awesome if we had a few more CSS options/themes available. I find it difficult to come up with a consistent style that varies from the ones provided. Maybe we could create a bounty to encourage someone to develop some themes?
  11. Czar

    layout, wordwrap and label nightmare

    Hi @jarto, I have tried all the permutations, autosize on/off and wordwrap on/off and the label doesn't behave nicely. With a label and Tlayout, I would have thought that the layout determines the width of the label and the label's content would determine the height if wordwrap is true. As a normal label (not using tlayout), if autosize is false and Wordwrap:=true then the the height of the label should increase within the provided width so that the content fits.
  12. Czar

    layout, wordwrap and label nightmare

    Any progression on this? It really is a problem with a basic component
  13. Czar

    layout, wordwrap and label nightmare

    @warleyalex thanks for the project. I tried it on my own project and it didn't work as expected. I figure dout that if the caption is set in onactivate then the resize does not change the height of the label correctly. procedure TForm1.Form1Activate(Sender: TObject); begin Label1.Caption := '<b>Today''s date '+FormatDateTime('dddd d of mmmm yyyy', now) +'</b><br>Here are your upcoming booked sessions. Please select the sessions your children will be absent for:<br>MOre writing.'; Label2.Caption := Label1.Caption; end; Then you end up with the image attached So there are two issues - 1, tw3label and the clipping 2 How do we get the label height to be recalculated if caption set in "activate", or even within the "resize" procedure. projTeste.zip
  14. Czar

    layout, wordwrap and label nightmare

    Hi, Ok I will zip manually - I used "zip entire project" from file menu - so that function is not working correctly anymore. testlabel.zip
  15. Czar

    restrict width of page?

    I am using a Tlayout to layout my UI. However, if the browser is on a very wide screen it stretches out to the width of the screen. I see two easy options. Restrict the width of the whole page (preferred) But I couldn't get that to work, I tried the following in the template <style> .content { max-width: 100px; margin: auto; } <body><?pas=Compiler.LinkedScriptTag?><div class="content"> <!-- Page content --> </div></body> The other easy option would be to set a maxwidth for the layout - but I couldn't get that to work either. I tried setting a width, and padding. Width seemed to be ignored and padding made some of the components (client type) format in weird ways. So, how can I restrict the max width of the app? Or, how I can set a max width on the tlayout?
  16. Czar

    restrict width of page?

    Thanks that worked ok - except it would offset the form when the form was reactivated. So instead I used the following in resize and that seems to work in my project which has 3 forms. procedure CentreForm(f : TW3Form); const scrwdth = 600; begin if f.ClientWidth> scrwdth then begin var p := (f.ClientWidth - scrwdth) div 2; p := round((p / scrwdth) * 100); f.Handle.style['max-width'] := inttostr(scrwdth)+'px'; f.Handle.style['left'] := '50%'; f.Handle.style['transform'] := 'translateX('+inttostr(p)+'%)'; end; end;
  17. Czar

    UI layout

    Yes I am hoping that a more robust and intuitive solution is made available. I have it sorted for my current project but it took quite a while to get it right, much much longer than it should have.
  18. Czar

    Calendar Control

    That works a treat. I will have to take a proper look at work tomorrow.
  19. Czar

    Calendar Control

    I have a job I need to do requiring a calendar and while the example above seems to work I am rather like the dhtmlxCalendar calendar component https://docs.dhtmlx.com/calendar__index.html Here is a mockup of what I am after https://numberworksnwords.com/makeup/ My skills are not really up to it when it comes to integrating js into sms Not sure how to proceed without some help.
  20. Czar

    Development updates

    that is what I had done already-
  21. Czar

    wysiwyg

    Very cool. A wysiwyg widget would be very nice
  22. 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.
  23. 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
×