Jump to content

paul.coshott

uniGUI Subscriber
  • Posts

    42
  • Joined

  • Last visited

Everything posted by paul.coshott

  1. Hi Guys, I got the example code above from Abaksoft working, but I'm not sure about the best way to use the code in my situation. I'm simply trying to save the position of a splitter when the user closes the form, and then retrieve that position when the user opens the form next. Say I've got : panLeft - TUniPanel : alignment set to alLeft splitter1 - TUniSplitter : alignment set to alLeft panClient - TUniPanel : alignment set to alClient I'm doing the setItem in the OnClose event of the form. Is this the correct place, and what code should I use? And then in the OnBeforeShow event, I'm trying to do the getItem. Should this be in the OnBeforeShow or OnAfterShow? And how do I code to reset the splitter position? Thanks for any help, Paul
  2. Thanks so much to Abaksoft and Hayri for your help with learning how to use local storage. Great stuff. Cheers, Paul
  3. procedure TfStaffMnt.btnDeleteClick(Sender: TObject); procedure mbDeleteStaff(Sender: TComponent; Res: Integer); begin //code here to delete the staff record qStaffDelete.ParamByName('pStaffId').AsInteger := qStaff.FieldByName('pStaffId').AsInteger qStaffDelete.ExecSQL; end; begin MessageDlg('Delete the selected staff member?', mtConfirmation, mbYesNo, mbDeleteStaff); end; I find this code much neater and easier to maintain. Any way this can be done? Cheers, Paul
  4. Quick question - where should i put the java script code to save to local storage and where should the code go to read? Thanks, Paul
  5. Thanks heaps for the help. Appreciate it. Cheers, Paul
  6. Hi All, I have seen the topics on cookies, but I was hoping uniGUI could access Local Storage. Is this possible, and how do I do it? Thanks for any help, Paul
  7. Hi Dominique, Thanks for the info. I've got it working now. Cheers, Paul
  8. Thanks for the answer. I'm not sure how I should do it though, as I don't have a control to attach to. I am opening a modal popup form, and in the OnAfterShow event, I am opening a number of tables, and then creating some components. So I'd like to show the mask before the tables start to be opened, and then hide the mask after the components have been drawn. And is it possible to cover the entire browser window with the mask? How would I do this? Cheers, Paul
  9. Hey Everyone, Can anyone tell me how to use the TUniScreenMask component? I have a few places in my app where I'd like to show the mask over the entire browser window with a simple message ("Please wait..." or something similar). Can I put the component on the MainModule and use it anywhere? Or does it need to be on the currently active form? And how do I start and stop it. I played around with it today, but couldn't figure it out. Cheers, Paul
  10. Hi Ron, Thanks for the info. Can I ask what you mean by blocking? And I'm not sure the test would tell me much, as I'm running it locally, so I may not see any problems. Cheers, Paul
  11. Hi All, Is it possible to show a popup form modally that is sizeable, but with no caption bar at the top? Delphi 10.2 and uniGUI trial 1.7 Cheers, Paul
  12. Hi All, What it the correct way to execute multiple queries one after another? The queries are being run server side, so I assume I can expect synchronous behaviour? Can I do: qryStaff.Close; qryStaff.ParamByName('StaffId').AsInteger := 1; qryStaff.Open; qryStaffJobs.Close; qryStaffJobs.ParamByName('JobListId').AsInteger := qryStaff.FieldByName('JobListId').AsInteger; qryStaffJobs.Open; The second query depends on a value from the first query. Is this ok? Or do I need to open the second query in the OnAfterOpen event of the first query? I am using Delphi 10.2, uniGUI trial 1.7 and Firebird 3. Thanks for any help, Paul
  13. Hi All, I am embedding a form into a panel on my MainForm. If the user chooses to open another form, what is the correct procedure to close and destroy the loaded form, before loading the requested form? Cheers, Paul
  14. Thanks for the help. On my main form, I have a panel aligned to the top (height = 60) and then a second panel aligned to the top (height = 60) and then a third panel aligned to client. It's the third panel I'm trying to embed the form in. But when the AlignmentControl = uniAlignmentClient the web app doesn't display properly. The left side of the first top aligned panel is white, hiding an image and a label (exactly where these components are). And also a button on that panel which is aligned to alRight, is there but not drawn with the margins being respected. When the child form appears, it is only appearing in the panel on the main form, but it is positioning itself so the top left corner of the form is right up in the top left corner of the web browser. I have set the properties you indicated above. Thanks so much for your help, Paul
  15. Hi, I am using the trial edition (v 1.70.0.1493). I found that demo and tried to replicate the code, but I must have missed something (maybe a property somewhere), because the child form did not attach itself to the main form at all. Just appeared off to the left. Thanks, Paul
  16. Hi Everyone, I have a main form in my stand alone server. The ServerModule's MainFormDisplayMode is set to mfWindow (I like the way it looks). Can someone explain how I can display the form anchored to the top of the browser and stretched to the bottom of the browser, while keeping the width of the form to a specific value, and having the form stay centered horizontally when the browser is resized. And how do I embed a form into my main form? I want to design an SPA, so need to embed forms into the main form. Can this be done into a panel? Or some other container? Thanks, Paul
×
×
  • Create New...