Jump to content

CastleSoft

uniGUI Subscriber
  • Posts

    205
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by CastleSoft

  1. Bootstrap theme in UniGui Howto:

     

    ** This has only had 10sec of testing **

     

    1) Unzip the 'bootstrap-unigui-ready.zip' file, it contains a css and ext-theme-bootstrap folder

    2) Copy the css contents into your c:\program files (x86)\fmsoft\Framework\uniGui\ext-4.2.2.11144\resource\css' folder.

    3) Copy the ext-theme-bootstrap folder into your 'c:\program files (x86)\fmsoft\Framework\uniGui\ext-4.2.2.11144\resource' folder

    4) Select your 'MainModule' and type 'bootstrap into the Theme field.

     

    That should be it (when you deploy you will need to copy the css & ext-theme-bootstrap folders.)

     

    No warranty. A button/checkbox/page control appear to have the new look.

     

     

     

     

     

    post-14-0-88359400-1412229188_thumb.png

    bootstrap-unigui-ready.zip

    post-14-0-92563100-1412229248_thumb.png

    • Upvote 3
  2. Thanks for the fix.

     

    Another minor funny.

     

    If you do the following:

     

    1) AutoSize = OFF

    2) Switch to View As Text and change the caption to:

     

          'This is my first line'#13#10'and this is my second line'

     

    3) Switch back to design view and resize the height of the label.

     

    All looks good in the designer.

     

    But when you then view in the web its all on one line.

     

    Maybe an option to translate #13#10 to <br> would be nice ?

     

     

  3. It would be nice if there was a UniFrameContainer control.

     

    This would save having to do the Create/Parent/Assign/etc...

     

    The UniFrameContainer could be placed on PageControls or in the case when you want something like:

     

    You have a LONG page with say 3 or more UniFrameContainers down the page:

     

    UniFrameContainer1

    UniFrameContainer2

    UniFrameContainer3

     

    This allows design in multiple segments/Frames flow down the page for the new "1-Page" look.

     

    Andrew

     

    ** Edit ** Multiple Panel's with UniFrames example:

     

    procedure TMainForm.UniFormShow(Sender: TObject);

    var frame1 : TUniFrame1;

          frame2:  TUniFrame2;

    begin

        frame1 := TUniFrame1.Create(self);

        frame1.Parent := UniPanel1;

        frame1.Align   := alClient;

     

        frame2 := TUniFrame1.Create(self);

        frame2.Parent := UniPanel2;

        frame2.Align   := alClient;

    end;

    post-14-0-98988400-1412145412_thumb.png

    post-14-0-51419700-1412145496_thumb.png

  4. A boolean 'multiline' option for the unilabel would be nice.

     

    Instead of having multiple labels per line for large volumes of text, it would be nice if it autowrapped or could be force onto a new line with a NewLine or <br> tag ?

     

     

     

     

  5. Can I call the internal LOGGING used by UniGui ?

     

    If so.. What should I call/initialise ? Can I use it from Server/MainModule/Create -> terminate ?

     

    Any info appreciated.

     

    Thanks

    Andrew

  6. I thought this might be handy for anyone with an IIS box that needs to update a UniGUI ISAPI dll and not STOP/START the IIS Webservice.

     

    Attached is an ISAPILoader.zip file containing the Delphi Source code + Binaries. (source is google).

     

    Its easy to use.

     

    1) Grab the NON_DEBUG and rename it to the name you like.   (ie..      MySuperApp.dll  )

    2) Rename your UNIGUI DLL to the same name with a .RUN extension.   (ie..    MySuperApp.run  )

     

    At this point deploy as normal. The ISAPI Loader will load the .RUN file.

     

    Now to upgrade the UNIGUI ISAPI DLL, simply place your app with a .UPDATE extension.  (ie.    MySuperApp.update)

     

    In < 10 secs it will see the update, unload the old version. Rename the .run file as .backup and rename the .update to .run

     

    No requirement for Stopping/Starting the IIS Service to unload the DLL.

     

    Andrew

     

    Click here for the ISAPILOADER.zip

    • Upvote 3
  7. If you want to buy two products for two different companies (entities) then you can place two separate orders from two separate emails.

    In our design each email address represents a different business or entity.

    For each email you'll be assigned a different account in our customer portal.

     

     

    Thanks done...

     

    I've now purchased a 2nd license for my CastleSoft Pty Ltd. business also.

  8. Hi,
     
    I have a form that allows some selection then redirects to an external form using:
     
       url:= Urls[uniComboBox1.ItemIndex];
       UniSession.AddJS('window.location = ''' + url + ''';');
     
    If the user is on the external form and selects the back button..
     
    You get a BLANK screen on the UniGui form.
     
    Can I trap this and force them back to the same state as if they freshly visited the URL ?
     
    Thanks
    Andrew
     

     

  9. After some playing I think the following is a cleaner solution:

     

     

    1) Drop an FDManager onto the ServerModule (NOT the MainModule as you can only have 1 INSTANCE).

    2) Click on the FDManager Events tab in the Object Inspector, this should show  and event called:   'BeforeLoadConnectionDefFile'

    3) Double click this and enter the the following:

     

    procedure TUniServerModule.FDManager1BeforeLoadConnectionDefFile(Sender: TObject);
    var connDef: string;
    begin
        if FDManager1.ConnectionDefFileName.IsEmpty then
            connDef := 'FDConnectionDefs.ini'
        else
            connDef := FDManager1.ConnectionDefFileName;
     
        FDManager1.ConnectionDefFileName :=  UniServerModule.StartPath + connDef;
    end;

     

    That's it.  You don't have to close connections/activate queries/tables/etc etc.

     

    If you don't enter a name in the ConnectionDefFileName for the FDManager it will default to the standard FDCOnnectionDefs.ini filename.

    • Upvote 1
  10. How do you deploy a FireDac based UniGUI isapi DLL on IIS  so that it finds the FDConnections.ini file ?

     

    Given the doc's say:

     

    http://docwiki.embarcadero.com/RADStudio/XE6/en/Defining_Connection_(FireDAC)

     

    • If ConnectionDefFileName is not specified:
      • Look for FDConnectionDefs.ini in an application EXE folder.
      • If the file above is not found, look for a file specified in the registry key HKCU\Software\Embarcadero\FireDAC\ConnectionDefFile. By default it is C:\Users\Public\Documents\Embarcadero\Studio\14.0\FireDAC\FDConnectionDefs.ini

     

    Because its an isapi.dll and not an EXE what location will UniGui look for the FDCOnnectionDefs.ini file ?

     

    Also with the 'MyApp.dll' running on isapi as non-current user, it won't look in HKCU ??

     

    I could add some extra initial load code to read settings, but it would be nice if I could place it in a folder and be

    loaded automatically ?

     

    Any ideas ?

     

    Thanks

    Andrew

     

     

     

     

  11. I work for 2 business, HVGS and my own 'CastleSoft'.

     

    Can I order 1 for CastleSoft and 1 for HVGS in 2 different orders at the discount price ?

     

    *** Update *** - I just placed an order for 'Andrew Tierney - HVGS', can I also place an order for 'Andrew Tierney - CastleSoft' ?

    • Upvote 1
  12. Do you have a date when we can begin purchasing ?

     

    Also is the following possible ?

     

    I have been a beta tester for some time and will be purchasing for CastleSoft (my business).

    I also do consulting work for a Grammar school and would like to purchase for them (with me as the sole developer), but in their name. 

     

    Can I purchase 1x CastleSoft (at the intro rate) and 1x School (at the intro rate) ? 

    Do I need to setup a beta account now for my school/email/login ?

     

    Thanks

  13. Do you plan on adding LiveBinding support before 1.0 ?

     

    Is it hard to implement ?

     

    This is one feature I would really like to use, all new code uses Firemonkey for Desktop + LiveBindings.

     

    It would be great to have LiveBinding support in UniGui also.

     

    Thanks

    Andrew

×
×
  • Create New...