Jump to content

GerhardV

uniGUI Subscriber
  • Posts

    385
  • Joined

  • Last visited

  • Days Won

    27

Posts posted by GerhardV

  1. Hi Dominique:

    I use the same approach but to achieve what you want I use a PageControl (Tabs) with the TabBar hidden. The grid is on the first tab and the "editing form/s" on subsequent tabs. So when the user clicks edit or add you change the PageControl's ActivePage property. When the user is done and click on save, the validations is done and the tabs are switched back and call a refresh on the data set. You just have to be careful and take precaution should the user navigates away from that by clicking on something else on the left menu. If that is fine then no worries. Of course all of this is done with frames.

    Gerhard

  2. You can add the following to the TUniJToast.BuildJsonParams  function above for the background color and text color:

    if not bgColor.IsEmpty then
        bstr := bstr + 'bgColor:' + '"' + bgColor + '",';
    
       if not textColor.IsEmpty then
        bstr := bstr + 'textColor:' + '"' + textColor + '",';

     

  3. Not sure what behavior you are expecting and if the grid must be editable when RowSelect is true. If it must not be editable set the grid  ReadOnly = True or set the dgEditing option to false.

    I did notice that when selecting a cell even with RowSelect on, then it will still display a selection rectangle for the cell. I think it has something to do with ExtJS 6.6, behaviour was different in ExtJS 6.5.3.

  4. What you can do is to replace Font-Awesome with Line-Awesome from Icons8 by adding one line to your ServerModule.

    There is a little trick however! I had to edit the "line-awesome-font-awesome.css" file to get it to work with UniGUI. Basically adding "!important" to all CSS selectors to override the Font-Awesome equivalent. See the attached screenshots.

    I have included a project with the file already modified (in the "\LineAwsomeFont\Win32\Debug\files\line-awesome\css" folder) - please note it is not the "minified" version of the file that was edited.

    See more details here:

    https://icons8.com/line-awesome

     

    bds_2018-11-23_18-34-09.png

    Edit After.png

    Edit Before.png

    explorer_2018-11-23_18-32-38.png

    View After.png

    View Before.png

    LineAwsomeFont.zip

  5. As Farshad said Hyper Server will support a server farm in the for seeing future. 

    If you really need that functionality urgently, then you can write a router yourself that is the main entry point, which takes care of authentication and then redirects the user to the appropriate node (machine) based on your balancing strategy. A simple round robin strategy is easy to implement.

  6. 1 hour ago, wprins said:

    A big reason to prefer more decoupled approaches such as MVC, MVP, MVVM, MV* is testability.  If all your logic is inside event handlers then typically it's quite hard to properly test and not possible to test entirely in isolation.  This may not be a show stopping problem but it is a consideration at least.  (Also see for example the "Humble Dialog" pattern and "Humble View".)

    Absolutely!

  7. Add the following CustomCSS:

    You will also need to change the image sizes for TUniNativeImageList to 32 and load 32px images.

    Play around with the settings below to get the desired alignment for the text and elbow indicators.

    .x-tree-icon {
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
    .x-tree-elbow-img {
        width: 18px;
        height: 30px;
        line-height: 32px;
    }
    .x-tree-node-text {
         line-height: 24px;
    }

     

    opera_2018-10-09_11-06-56.png

    bds_2018-10-09_11-09-06.png

  8. Hi there - if you have purchased my theme pack you can look in the following folder:

    ..FMSoft\Framework\uniGUI\unipackages-6.5.3\themes\css

    There you will find the CSS files for the themes, for example the uni-xtheme-uni_bootstrap.css, inside of that file search for the comment "/* Button font sizes */", where the button font sizes are set. You can also override any other components font by adding to that file. To find the CSS class you right click on the component in Chrome and select "Inspect" from the popup menu. Which will open the developer tools from where you can locate the correct classes and much more.

    • Like 1
×
×
  • Create New...