Jump to content

Int3g3r

Members
  • Posts

    40
  • Joined

  • Last visited

Posts posted by Int3g3r

  1. I'm displaying the Forms always full screen. I don't use menus like you do.
    I tested your solution this doesn't work for me.

    It's like i can see through the displayed form. Here is a other example.
    You can see here a Button, Input Field and a Grid that should not get displayed. (yellow marked)
    Those components are from the Formular before.

    Regards Int3g3r

    example.JPG

  2. Hello,

    I created a UniGuiMobile application. Now i need to create PDF files out of a Firebird Database.
    I want to use FastReport because you already used it on UniGui(Non-Mobile).

    I placed the FrxPDFExport, FrxReport, FrxDesigner, FrxBarCodeObject and FrxDBDataset on the MainModule Formular
    The application compiles and executes without any errors.
    I can access the Page from my browser (firefox), no issues here.

    The main goal is to run the application on a Android device.
    On the Android device i have a small FMX application with a TWebbrowser.
    In the TWebbroser i want to present my application.

    As soon i've added the FastReport components to the MainModule Formular i got follow exception:

    "Class TfrxBarCodeView not found"

    This exception only shows in the TWebbrowser (FMX Application).
    If i use a normal webbrowser like Chrome or Firefox this Error doesn't show up!

    Had anyone a simmilar issue ?

    Regards Int3g3r

  3. The problem occures in both cases, manual and with the scanner.
    It seems like that some background process is not finished, because of that it cannot clear the field.
    If i add a short delay then the edtScan gets correctly cleared.
    I don't know what is exactly causing this problem but it's a temporary workaround.

    Thank you for the Help.

          if isOmScanned then
          begin
    	Sleep(500);				//Added
            ShowMessage('MyMessage!');
            edtScan.Clear;                      //This Clear doesn't get updated screen. The scanned number gets still displayed
          end
  4. Hello,

    I have a formular with a TUnimEditField on it.
    I'm scanning barcodes with this application. The EditField contains the scanned barcode.
    After scanning i need to to some checks for no duplications in the database and some other tasks.

    I the database already contains the scanned barcode i need to create a ShowMessageDialog.
    This works just fine. I already set the "TUniGUIMainModule.EnableSynchronousOperations" to true.

    I want to clear the EditField after the message was showed. But this doesn't work correctly.
    I already created a sample application but on there it works just fine. On my real application the EditField doesn't get cleared.

    procedure TfrmEkScan.edtScanChange(Sender: TObject);
    begin
      if edtScan.Text <> '' then
      begin
        if Length(edtScan.Text) = 12 then
        begin
          if Pos('0756',edtScan.Text) = 0 then
          begin
            edtScan.Text := '0756'+edtScan.Text;
          end;
        end;
    
        if Length(edtScan.Text) = 16 then
        begin
          if isOmScanned then
          begin
            ShowMessage('MyMessage!');
            edtScan.Clear;                      //This Clear doesn't get updated screen. The scanned number gets still displayed
          end
          else
          begin
            agateAbfragen;
            edtScan.Clear;
            btnCancel.SetFocus;
            sc.Visible := true;
            btnCancel.Enabled := true;
            btnAdd.Enabled := true;
          end;
        end;
      end;
    end;
    
    
    function TfrmEkScan.isOmScanned: boolean;
    var OmScan: String;
    begin
      Result := false;
      OmScan := edtScan.Text;
      dmMain.qryPool.First;
      while not dmMain.qryPool.Eof do
      begin
        if dmMain.qryPoolSTRICHCODE_OM.AsString = OmScan then
        begin
          Result := true;
          edtScan.Clear;
          Break;
        end;
        dmMain.qryPool.Next;
      end;
    end;

    If i run this application with a breakpoint on the "edtScan.Clear;" it just work.
    It seems like that the display doesn't get updated.

    Can anyone tell me what the problem might could be ?

    Regards Int3g3r

  5. Hello,

    I've created a form with a scrollbox. By default the scrollbox is set to "visible:=false", because i need the same form for diffrent tasks.
    In the first task i set "visible" property to "true" when i press a button. This works just fine.
    In the second task i need to set the "visible" property to true as soon the form gets showed.

    I noticed that the forms don't get destroyed on close. Because of that i tried to implement the second behavior like follow example:

     public
        procedure showModalEdit;
    
    procedure TfrmEkScan.showModalEdit;
    begin
      self.ShowModal();
      self.scrollbox.Visible := true;
    end;

    The form gets showed but the scrollbox is not visible. Can someone explain me why ?
    Is it possible to redraw/repaint the scrollbox ? I tested most of the default methods but they don't work.

    Regards Int3g3r

  6. Hello,

    Thank you for the instructions.

    I have still some problems:
    - How do i layout not equal width input fields ? (screenshot)
    - Is it not possible to set the width (%) and margins and the space gets equally adjusted ?
    - Is it possible to adjust the space between the label and Edit ? In my scetch the label is right above it.
       In the unigui application is space between label and edit, i would like to shrink that space.
     

    layout2.JPG

  7. On 10/22/2020 at 3:16 AM, asapltda said:

    Goodnight,

    1. When it shows the color button it does not show the text, it should be white for example, could you explain how to do it

    2.It is possible to put a complete example, I have not been able to make them work

    thanks 

    TMainmForm -> AligmentControl : uniAligmentClient
    TUnimButton -> ClientEvents -> UniEvents ... ->

    function afterCreate(sender)
    {
      sender.element.select('.x-inner-el').setStyle('background-color','#FF0000');
    }

    TUnimButton -> Font ... ->
    - Select Color, Bold, Size and Style

    This works for me atleast.

  8. Hello,

    I'm trying to create a UniGuiMobile application.
    I'm having big difficulties with layouting my application.
    I've looked into the UniGuiMobile touch examples. I've found no examples that shows what i'm looking for.
    The examples are quite simple. I need to layout a lot of edit fields with a working scroll box.
    I found follow article on the Developer's Guide. http://www.unigui.com/doc/online_help/user-interface.htm
    It is quite helpful but its written for UniGuiWeb (not Mobile).
    As example there is no "Columns" property for the TUnimFieldContainer.
    A gridstyle container would be really cool for the future.

    Can somone create an example application with the layout showed in the attachment ?

    Requirements:
    - Scrolling needs to work
    - Using only UniGuiMobile Components
    - Label needs to be close to the UnimDBEdit
    - The DBEdits needs to be equally paced between eachother. (picture is only a scetch)
    - If the users enters a edit field the virtual keyboard get's showed. The virtual keyboard must not cover the field.

    Best Regards,
    Int3g3r

    FormularLayout.JPG

  9. 5 minutes ago, x11 said:

    But there are problems with infinite scrolling in Smart Load mode

    Disabled infinite scroll and it works now .... ^_^

    11 minutes ago, Sherzod said:

    Can you make a simple app?

    So you want a example, or what do you mean with this ?

  10. Hello,

    I'm using TIBC Components on all other projects so far. www.devart.com/ibdac/
    It's the first time that i'm trying to make a Firebird Database Connection in UniguiMobile.

    So i did the same thing as always.

    1) Created a Datamodule
    2) Placed TIBCConnection, TIBCQuery and a TIBCDatasource
    3) Connected it to a UnimDBGrid.
    4) Data gets Displayed without any trouble.

    Now i need to search in this Grid.
    I created a new SQL Query Statement like follow:

    dmMain.qryAIs.SQL.Text := 'select * from ais WHERE ais.AIS_NAME CONTAINING '+QuotedStr(edtSearch.Text);
    dmMain.qryAIs.Execute

    This code gets executed and the UnimDBGrid displays "Loading".
    The loading screen doesn't disappear. I waited for 20 Seconds. The table has 100 records in it so it sould be finished for sure.

    My Question:

    a) Is UniguiMobile compatible with IBDAC ?
    b) Why does the "Loading" screen not dissappear ?
    c) Is there any example with a real database ? (The UniGuiDemos don't connect to a real database so i don't know how to setup TClientDataset)

    Regards,
    Interger

  11. Hello,

    My feature request relates to this forum.
    I didn't find a correct place to post this so i'm posting it here.

    Is it possible to add a signature in the Profile?
    I would like to add Unigui/Version/Build/Exjs to every post so no one has to ask.

    grafik.png.583df99d03503546a679b63f2d285ae4.png

    If this is not possible i would suggest to add somehting like this.

    Regards,
    Int3g3r

×
×
  • Create New...