Jump to content

Ian Branch

Members
  • Content Count

    1435
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ian Branch

  1. Ian Branch

    Library Path disappeared??

    Hi emailx45, Thanks for your input/suggestion. I went to that registry entry and it was empty. I then remembered the Delph keeps a history of sorts of changes to the Library Path. See attached. I selected the last one, it was incomplete, but was able to add those paths missing. Relatively painless. So, I have two questions now.. 1. Why did it happen in the first place?? I will leave that in the hands of the Windows Gods. 2. Where does Delphi keep this History? I would like to make sure it is appropriately backed up. Regards, Ian
  2. Ian Branch

    Internet time sync - with some timeout

    Hi Remy, Ahhh. I see it now. Didn't think at all of a separate App. Regards & Tks. Ian
  3. Ian Branch

    Internet time sync - with some timeout

    Hi Remy, Ahh. Thank you. At least I know it is possible. :-) Pardon my ignorance but which would be the easiest to achieve? Without giving me the answer, can you point me where to look? Regards, Ian
  4. Ian Branch

    Internet time sync - with some timeout

    You might also want to test the success of SyncTime.. ... .... if Sntp.SyncTime() then Log('SetSystemTime(): System clock sync completed') else Log('SetSystemTime(): System clock sync failed'); .... .... It fails on my Win 10 PC and on a 2012 Server. It is OK if the App is run as Administrator. I wonder if there is a way to have just the routine run at elevated level??? Ian
  5. FWIW see attached. Regrettably, I can't recall where I downloaded it from. EIAES Encryption.zip
  6. Ian Branch

    Main Form appearing issue..

    Hi Team, D10.4.1, 32bit App, Windows 10. I think I have chased this up once before but I can neither find it or recall where. Please see the attached short video. At the start the Main Form is open. Click the Audio button and the Audio form is opened, then the Print Listing option selected. Note the Main Form appears at the same time but under the Print dialog. When the Print dialog is closed they both disappear. Obviously I don't want the Main Form to appear when the dialog is called, even though it doesn't hamper the usage. As far as I can tell, everything is being called correctly. I am open firstly to understanding why the Main Form is appearing, and secondly, how to prevent it. Regards & TIA,. Ian MMLIssue.mp4
  7. Ian Branch

    Main Form appearing issue..

    Shouldn't it be that by default?
  8. Hi Team, D10.4.1, Win 10. For some reason I have a project that insists on opening the project file in the IDE rather than the MainForm I would prefer. I deleted the following files: .dproj, .dproj.local, .identicache, .otares. There is no .dsk. The double clicked the .dpr and still it opened the project file rather than the MainForm. I tried closing the project file and then saving from the IDE with just the Mainform open but that didn't work. There is obviously some way to make it not open the .dpr and to open the MainForm but I can't find it. Help! Regards & TIA, Ian
  9. Ian Branch

    Main Form appearing issue..

    Hi Guys, Thanks for the pointers. I found the answer here.. http://www.delphigroups.info/2/e6/483281.html I recall now the User was complaining that dialogs were being hidden by the form. That was in an earlier Delphi. I shall have to experiment a little to see if the issue still persists now I have commented out that piece of code. Thanks again. Ian
  10. Ian Branch

    Main Form appearing issue..

    All, Thank you for your input. Appreciated. Something Lajos said.. Triggered something in my head. Having another look at the code in the Sub Form I found this.. ... .... private { Private declarations } public { Public declarations } protected procedure CreateParams(var Params: TCreateParams); override; end; var And this.. procedure TAudioForm.CreateParams(var Params: TCreateParams); begin inherited; Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW; Params.WndParent := 0; end; Now, I have no recollection of what that code was put in for, oh so long ago, but if I comment it out all is good. No more MainForm appearing. Can someone enlighten me as to why I would have put that there?? I'm sure I put it there for a reason. ;-) Ian
  11. Ian Branch

    Main Form appearing issue..

    And that's a reasonable assumption except I can't find anything to account for it. I have eliminated everything in the MainForm Create & Show events. The Audio form is called with a simple.. AudioForm := TAudioForm.Create(Self); AudioForm.Show; All the AudioForm does on Creation is open tables. There is nothing in the Show event. I thought it might have been something in the Project file but I can't see anything there that would contribute/cause this. Ian
  12. Hi Team, D10.4.1, Win 10, 32bit App. I need to open a sub form, StockPositionForm, from the MainForm, non modal as it is used in conjunction with other forms in the App. At the same time I need to prevent StockPositionForm being reopened again from the MainForm whilst StockPositionForm is already open. StockPositionForm is currently opened with.. procedure TMainForm.StockPosition1Click(Sender: TObject); begin // TStockPositionForm.Create(Self).Show; // end; Thoughts/suggestions, polite :-), appreciated. Regards & TIA, Ian
  13. Ian Branch

    Prevent a sub form being reopened..

    Ahhhh. Excellent! Works perfectly. Thank you. Regards, Ian
  14. Ian Branch

    Project always opens with .dpr file..

    I have it. For some reason Tools|Options|IDE|Save project desktop when closing, was not checked. Don't know when that happened, this project has seemingly always been this way. Oh well. All sorted now. Thanks Uwe for the pointer. Regards, Ian
  15. Ian Branch

    Project always opens with .dpr file..

    HI Uwe, I have never knowingly changed them. All my other projects open at the Mainform. What should I specifically look at/for? Yes, the Mainform is auto-created in the dpr. Application.MainFormOnTaskbar := True; Application.CreateForm(TMainForm, MainForm); Application.Run; Regards, Ian
  16. Ian Branch

    {$IFNDEF for Defined(????

    HI Team, Hope you all had an enjoyable Xmas day as befits your Faith & Family. I know and have used {$IF Defined(xxxx) or Defined(YYYYY)} ..... ..... {$ENDIF} Is there a {$IFN.. hidden in Delphi somewhere?? i.e.... {$IFN Defined(XXXXXX) or Defeined(YYYYY)} ..... ..... {$ENDIF} I have multiple projects sharing common files and in some case it would be shorter to write {$IFN.... conditionals then {$IF.... conditionals. Regards & TIA, Ian
  17. Ian Branch

    SMS via my phone..

    Hi Team, I have been asked if it is possible to send an sms from their Delphi App on their PC via a phone attached to the PC? Doesn't matter if it is Android or Apple, the Customer will supply the phone/phone account. Thoughts, suggestions, recommendations?? Regards & TIA, Ian
  18. Ian Branch

    SMS via my phone..

    He's a Phone repairer so it will be what I figure out. :-)
  19. Ian Branch

    SMS via my phone..

    Hi David, Probably, but I haven't specifically looked into that route. The Customer already has his own Phones/#s and wants to put them to use. Ian
  20. Ian Branch

    Turn off title on a TImage??

    Hi Team, D10.4.1. If I can, where/how do I turn off/blank the title of a TImage. I can't find a .Caption or .Title property, or similar, and it doesn't make sense that you can't so where/how?? Regards & TIA, Ian
  21. Ian Branch

    Turn off title on a TImage??

    Solved. I am going to take myself out the back and beat myself over the head soundly with a piece of 2 x 4. The 'Caption' I was trying to get rid of was actually in the image. :-( Colour me red. :-( Thanks for your input. I will just slink away now.... Regards, Ian
  22. Ian Branch

    Turn off title on a TImage??

    Hi Pat, Didn't make any difference. This is what I am seeing on the form.. The image name there is shown. Above the TImage is a Panel, overlaid on the Image are buttons. Ian
  23. Hi Team, D10.4.1, Win 10 64bit. Suddenly my palette doesn't want to show anything. Any thoughts/suggestions? TIA, Ian
  24. Ian Branch

    TDBGrid - dgTitleClick

    Can anybody tell me when, Delphi version, TDBGrid.Options - dgTitleClick was introduced? Regards & TIA, Ian
  25. Ian Branch

    TDBGrid - dgTitleClick

    Thanks Lajos, I got sent this earlier.. " Delphi 2010 and greater: needs dgTitleClick true (grid options) for this to run: frmItems.DBGrid1TitleClick dgTitleHotTrack : Specifies that list items are highlighted when the mouse passes over them. (highlights the title cell.. maybe other cells in that column too). dgTitleClick & dgTitleHotTrack default to true on new forms. " So I have worked on that basis. Regards, Ian
×