Jump to content

mierlp

uniGUI Subscriber
  • Posts

    572
  • Joined

  • Last visited

  • Days Won

    35

Posts posted by mierlp

  1. i need to pas the string of the datasebase field showform (it can be show of showmodal)

    to the FORM.

    But something like this is not working

    Form.+table.fieldbyname('howtoshowform').asString;

    or

    Form+'.'+table.fieldbyname('howtoshowform').asstring;

    or with

    quotedStr(table.fieldbyname('howtoshowform').asString

    i can do something like this but there must be a more elegant way

    if table.fieldbyname('howtoshowform').value = 'show' then
       form.show
    else
      form.showmodal

  2. Hi,

    My application contains around 90 tables for lookup use. Because I do not want to put this in a menu - it is getting too large,
    I want to do this in a database.The user sees a dbgrid with 2 columns:
    - table name as I would in the menu, for example, Type Payment
    - explanation in the form of a short sentence  

    When the user double clicks on a line, the screen must be opened.In the database I save:
    - FormName (formTypePayment) or frmTypePayment (file name)
    - how to open 'show' or 'showmodal'

    So the form is already part of the application and normally I would call it FormTypePayment.show as follows
     

    How can I do this based on the data in the database?

  3. The easiest way is bulksms.com. my example is based on bulksms and works great. Send every day about  200 sms with a unigui and vgl application.

    Just  create an account with  bulksms and use my example. Replace the dummy username and password with your bulksms account and you van send messages

  4. Hi Sherzod

    When trying :

      if UniMainModule.GetFormInstance(TFormTableBank, False)<>nil then begin
         FormTableBank.WebForm.JSInterface.JSCall('toFront', []);
      end;

    or 

         FormTableBank.WebForm.JSInterface.JSCall('toFront', []);
     

    is NOT working

     

  5. Hi

    The forum offers a lot of information / solutions ... but unfortunately distributed and not grouped.
    Is there a need for a structured wiki among you where you can find solutions at component level,

    Example:

    Several questions have been asked about a page control.
    So there will be a PageControl topic where you can find all the solutions
    related to the pagecontrol such as tab height, width, color and so on.

    If there's enough interest, i want to set this up with the help of all of us.
     

    For example one of those knowledge bases :


    Regards

    Peter

    • Upvote 1
  6. Hi,

    The user can  open the forms from within the menu. So he opens first FORM-1 then FORM-2 and then FORM-3

    When  he clicks on the menu option ''FORM-2'', -which is already opened,  than this

    opened form has to be on the foreground.

    In VLC you can do something like :

    Quote

    if (not Assigned (Form2)) then begin
       Form2 := TForm2.Create(Application);
    end;
    Form2.Show;
    if (Assigned(Form2)) then begin
       ShowWindow(Form2.Handle, sw_restore);
    end;


    How can it be done in uniGui?

    Regards Peter

  7. Hi

    I am going to convert my 2nd vcl application within the next 6-9 months to uniGui. My first application is designed the more traditional way whereby
    forms are opened like with a vcl application.For my second application I want to see if another approach offers more benefits,
    This second application is also a large application with around 140-160 forms and tables. Many tables are often filled once and used as kind of a lookup table.
    I have separate forms for each table for maintenance.

     

    Here are a few design questions:

    • what do you mainly use ... forms / frames and why?
    • how do you open forms / frames, is this, for example, each time on a separate tab or within the same tab and do you close an existing form?
    • what is the advantage of such a model versus the vcl-like way where you can open multiple forms at the same time, for example
    • what is the best way to do that if you choose to load forms into separate tabs so that you have control over the opened form / frame?
    • if you have a form to maintain a table, for example, do you open it as a show / show modal on the screen or also in a separate tab?
    • the look-and-feel of a small form (with for example 4 fields / 2 buttons) in a full screen tab is often not nice compared to displaying that form
      through show / show modal because you adjust the form format to the amount of components ... how do you solve that ?.
    • how do you design with regard to the different screen resolutions and how do you ensure that everything stays on the form?
    • is there an example 'framework' how to build this, by which I mean for example mainform, menu, pagecontrol to open the tabs in it and that it also looks neat / professional.

    Both variants have advantages and disadvantages and combinations are of course also possible. The biggest disadvantage of opening everything in separate tabs is that
    it quickly becomes unclear for i user (i think).Especially when you get so many tabs that you get multiple rows and 2 rows of tabs on your screen.
    On the other hand, multiple forms on your screen can also be tricky, but you can minimize them. What I don't want is that the user cannot do multiple things at the same
    time and must be able to switch within a number of important forms.

    What are your experiences, tips, tricks, suggestions, examples

×
×
  • Create New...