Jump to content

GerhardV

uniGUI Subscriber
  • Posts

    385
  • Joined

  • Last visited

  • Days Won

    27

Posts posted by GerhardV

  1. Hi all:

    I finally got around to complete the update to the UniGUI Theme Pack 1 (-x30). Everyone that have purchased the theme pack already will receive an email during the course of next week with the update.

    Please note that all themes have been standardized, thus they have the same size and dimensions, making it easier to swap between them. They also use the same font namely Roboto. This is the "-x30 package" meaning that Window, panel and grid headers are 30px in height. Apart from the themes in the original package,  a "-x30" version of the Emerald theme has been added, as well as an additional theme called ext-theme-uni_office-charcoal-x30. It is compatible with UniGUI 1.50, 1.70 and 1.90.

    For those that are not familiar with the theme pack please see the link below for more details:

    UniGUI Add-on Theme Pack 1

    Attached are some images of the themes.

    Regards,

    Gerhard

     

     

    1.png

    2.png

    3.png

    4.png

    5.png

    6.png

    7.png

    8.png

    9.png

    10.png

    11.png

    12.png

    13.png

    14.png

    15.png

    16.png

    17.png

    18.png

    19.png

    20.png

    21.png

    22.png

    23.png

    24.png

    25.png

    26.png

    27.png

    28.png

    29.png

    30.png

    31.png

    32.png

    33.png

    34.png

    35.png

    36.png

  2. Peter it is because of the default CSS values for the type of layouts for supported by FieldSets (GroupBox is also translated into a FieldSet). You can add the following CSS to the CustomCSS in the ServerModule and then play with the values until it suits your needs. The values below are the default values, if you decrease the values of the margin-bottom and padding-top you would see a significant change.

    .x-fieldset-header-default {
        padding: 2px 5px 0px 5px;
        line-height: 20px;
    }
    
    .x-autocontainer-form-item, .x-anchor-form-item, .x-vbox-form-item, .x-table-form-item {
        margin-bottom: 10px;
    }
    
    .x-form-item-label-default.x-form-item-label-top > .x-form-item-label-inner {
        padding-top: 5px;
    }

     

  3. Hi Peter - see attached - you also have to set the AlignmentControl to uniAlignmentClient for the main form.

    Tabsheet:

    Layout = vbox

    LayoutAttributes:

    Align = center

    Pack = start

    Your margins are correct on the form.

    opera_2019-03-04_10-54-30.thumb.png.a9817cc17b1ec381a13d3599c112fb1c.png

    TestCase_fixed.zip

    And I would also suggest using a frame instead of a form as others did, unless you have a specific reason for that..

    • Like 1
  4. It works for me:

    procedure TMainForm.UniComboBox1TriggerEvent(Sender: TUniCustomComboBox; AButtonId: Integer);
    begin
      if AButtonId = 1 then
      begin
        ShowMessage(Sender.Text);
      end;
    end;

    By the way if I copy this line from your code above and paste it I noticed that there are strange characters just after the "d" in Sender and just before the two slashes. see picture. Try and delete the code and type from scratch. You probably copied it from somewhere on the forum, I have noticed the issue with the new forum.

    UniForm1.UniEdit1.Text := Sender.Text; // Doesn't work

    chrome_2019-01-23_14-23-01.png.24188d5d546d601e4eeda11b64cb2027.png

  5. I think this maybe your problem:

    https://stackoverflow.com/questions/10762380/mysql-error-in-your-sql-syntax-near-key

    You have a column named Key and Key is a reserved word and should be specified with the identifier quote which is a backtick ( ` ) in MySQL. Try do a select without the * but actually specify the column names and then quote Key like this:

    select AppointmentID,..., `Key`,... from Appointment.

     

    Edit: By the way I used the following in a Google search: "mysqlexception #42000 near 'Key as _8"

  6. Roberto, I have not stress tested Hyper Server yet but I can vouch for the easy deployment and update functionality. If you don't have any database structural updates but only the application...it is an absolute breeze! 

    BTW UniGUI is rock solid even without Hyper Server.

    Switching to UniGUI will obviously be a time consuming effort and an important business decision seeing that you have just "re-written" the VCL app into web app ...but it would be worth the effort in my opinion. Plus you get a lot of extras with UniGUI ;)

    P.S. one can stuff up even the best frameworks with bad design and coding!

    • Upvote 1
×
×
  • Create New...