Jump to content

RobYost

uniGUI Subscriber
  • Posts

    207
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by RobYost

  1. I haven't used UniGui for a while, but I going to do a new project in it if I can.   

    My licence expired on 19/9/2019.  When I go to the portal it looks like I should be able to download version 1.90.0.1509. It is in green and the next one is red.  But when I click on the download icon my only choice is to download change log, not the file itself.

    Can you tell me what I am doing wrong?

    Thanks,

    Rob

  2. My real problem is not what is wrong with the code, but why I get an error during the run in the browser, but no error in the IDE? If I got an error on the IDE I think I could fix it.

     

    EDIT: I am ignoring NO exceptions in:Tools->Options->Debugger Options->Embarcadero Debuggers->Language Exceptions

              I also tried both Run Handled and Run Unhandled for Native OS Exceptions 

  3. I show a modal form, and when I click OK or Cancel (mrOK and mrCancel) the message pops up.

    
    
    procedure TfrmModal.ShowRecurringCharge(aRecurringCharge: Integer);
    var
      aFrame: TfraRecurringCharges;
    begin
      aFrame := TfraRecurringCharges.Create(self);
      try
        if aRecurringCharge = 0 then
          frmModal.Caption := 'Create a new scheduled charge'
        else
          frmModal.Caption := 'Edit an existing scheduled charge';
        frmModal.Height := aFrame.Height + 30;
        frmModal.Width  := aFrame.Width + 12;
        aFrame.Parent := frmModal;
        borderstyle   := bsToolWindow;
        borderIcons   := [biSystemMenu];
        aFrame.AddScheduledCharge(aRecurringCharge);
      finally
        aFrame.Free;
      end;
    end;
     
    procedure TfraRecurringCharges.AddScheduledCharge(aNewChargeID: Integer);
    ....
    I commented out all above code (it is just setting defaults on form)
    ....
    if (frmModal.ShowModal = mrOK) then   begin     ....
    the code in here shouldn't matter
    ​ because it also happens when I click cancel. 
    ....
    end;
    end

     

  4. I have had similar errors and received an ajax error within the debugger.  Previously it had a very long javascript piece in the message.  When I pasted it to a jave script beautifer then into jslint.com it would show where the error was (field name) and I could figure out the problem.
     
    But this time all I get is a message in the chrome window:
    Eventclick, Object: O6C1 not found in session list. It could be timed 
    out, refresh page and try again.
    How can I debug this?

     

    post-4889-0-00305100-1519004486_thumb.jpg

  5. Is there any way to send email and texts from a phone?

     

    I am developing a phone app and would like to be able to access the phones email/text apps to send an email or text.

     

    For example, when they collect a rent I create a receipt.  They want to be able to email it to their tenant.

     

    Thanks,

    Rob

     

     

  6. Thanks, it worked perfectly for my test project.

     

    It didn't work on my real project, so I am looking into what is different.

     

    If you have any ideas what could go wrong, please let me know.

     

    Thanks again.

     

    PS: I changed _top to 3000, but it still won't scroll down.

  7. I would like to add a checkbox to the message

     

    I added:

    property CheckBox          : string read FCheckBox write FCheckBox;

    and to Show

      if (CheckBox <> '') then
      begin
        data.add('    input: "checkbox",');
        data.add(Format('    inputPlaceholder: %s,', [QuotedStr(CheckBox)]));
      end;

    This works and a checkbox shows on the alert.

     

    But how do I determine if the checkbox is checked?

     

    Can you help me?

  8. I just found this thread.  When I tried to compile the client with XE6:

     

     

    procedure TfrmMsgCliCtrl.btnSelectTargetClick(Sender: TObject);
    begin
      frmSelectTargetSession.ShowModal( procedure (Res: Integer)
        begin
          if Res = mrOK then begin
            edtTargetSess.Text := frmSelectTargetSession.lbSessions.Text;
          end;
        end
        );
    end;

    [dcc32 Error] UfrmMsgCliCtrl.pas(105): E2250 There is no overloaded version of 'ShowModal' that can be called with these arguments

     

    Does someone know how to fix the syntax for XE6, or am I doing something wrong?

     

    Thanks.

  9. If I fill the scrollbox in the create event it works

     

    If I fill it from a button click it does not.

     

    The project I sent will fail (scroll snaps back to top)

    but if you uncomment the line in the create event it will work.

     

     

    The problem with this is what ever size you load in the create event is how large the scroll box is for the rest of the program.

    ScrollBox.zip

  10. I have a mobile scrollbox.  I slide up to see the hidden part of the screen, when I let go it automatically goes back to the top of the scroll box so I can not select anything at the bottom of the scroll box.

     

    I have attached an mp4 screen capture of the problem, but it wouldn't let me upload a mp4 file, so I renamed it .txt.  You will need to rename it back to mp4 to watch the video.

     

    In the video the first scroll box works OK, the second one is the one that pops back.

     

    Does anyone have any ideas?

     

    Thanks.

     

    UPDATE: I thought it might be related to being on a tabsheet, but I moved the scrollbox to the mainform, but the problem is the same.

    scrollbox .txt

  11. picture 1 is before click on drop down

     

     

    picture 2 is after click on drop down

     

     

    picture 3 is the panel I put letting them know they have no late fees and how to create one.

    The empty drop-down shows through to the panel. I tried making the combo invisible when 

    I pop up the panel, but drop down part still shows.

    post-4889-0-67422600-1512742023_thumb.png

    post-4889-0-04964000-1512742034_thumb.png

    post-4889-0-66905400-1512742050_thumb.png

  12. I am still having this problem.

     

    When running my program on a browser it works fine.

     

    But if I run it in an Android App that I wrote it rotating the phone from portrait to landscape causes the program to go back to the login screen.

     

    The app is very simple.  A single WebView that redirects to my website (https://secure.simple-landlord.com/m)

     

    Does anyone have any ideas how to figure out this problem?

     

    Where should I put the logging?

     

    What are the possible ways that the program would restart?

  13. I wanted to add a message in UniGUIMainModuleSessionTimeout that asks if they want to stay signed in.

     

    If so set extendtimeout to UniServerModule.Servertimeout

     

    But I can not figure out how to pop up a message from that event, and then set ExtendTimeout

     

    any help would be appreciated.

     

     

  14. Has anyone tried to interface with google drive?

     

    I am thinking about letting my users store pictures in the software, but I don't want to have to store all the space for the images.

     

    So I was thinking of using their own storage on their google drive.

×
×
  • Create New...