Jump to content

Ian Branch

Members
  • Content Count

    1272
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ian Branch

  1. Ian Branch

    Parnassus Bookmarks issue..

    Just to close this off. I did a complete D10.4.1 De/Re and all is fine now.
  2. Ian Branch

    Prevent editing in a TComboBoxEx..

    100% agree, but in this case the Customer's Users are not the quickest and unless something is in their face, it doesn't get much attention/credence. 😞
  3. Ian Branch

    Prevent editing in a TComboBoxEx..

    I saw the observation about the DEL/Backspace, I am prepared to accept the risk att. OK. Noted on not using dialogs in this case. Unfortunate. I will revise.
  4. Ian Branch

    Prevent editing in a TComboBoxEx..

    I did read them and they were noted. FYI - This is what I now have in place.. procedure TCustomersForm.IndexOrdKeyPress(Sender: TObject; var Key: Char); begin if not(Key = '') then // if any char was typed by user! begin MessageBeep(MB_ICONERROR); TaskMessageDlg('Editing not permitted!', 'You are not permitted to edit this entry. Please select from the drop-down options!', mtError, [mbOK], 0); IndexOrd.Text := 'Customer #'; Key := #0; // imiting "Read-Only" effect! end; end; Regards & Tks again, Ian
  5. Ian Branch

    Prevent editing in a TComboBoxEx..

    Hi Emailx45, Oh, that is excellent! Thank you. I do like the added logging functionality. I am going to save that as a code snippet for the future. Regards, Ian
  6. Ian Branch

    Edit toolbars have dissappeared??

    Hi emailx45. I deleted the Users registry entry as suggested. It recreated the Embarcadero registry entry OK but when I fired up Delphi and answered the relevant questions, I still didn't have the design or code edit toolbars. 😞 Thanks for the thought/suggestion. Regards, Ian
  7. Hi emailx45. I deleted the above. It recreated the Embarcadero registry entry OK but when I fired up Delphi and answered the relevant questions, I still didn't have the design or code edit toolbars. :-( Thanks for the thought/suggestion. Regards, Ian
  8. Ian Branch

    Parnassus Bookmarks issue..

    Hmmm. Is it an issue if Bookmarks is at rev 1.6.2 & CoreEditor is at 1.6.1?
  9. Ian Branch

    Palette not showing anything..

    Hi emailx45 Registry all OK. I backup and deleted the directory as suggested. WOW! didn't that screw up Delphi... See attached. Restored the original.. Ian
  10. Ian Branch

    Palette not showing anything..

    Hi Uwe, ATT I don't have MMX installed. No it didn't. What I have done and it seems to have saved it is delete the .dst files and disabled 'Save project desktop when closing'. I don't know if it was one or the other or both that did it but I am back in business. I note the .dst file(s) haven't been re generated and all is looking good att. I also not I was getting a lot of "A component named DotNetForm already exists." error messages. They too have disappeared. Ahhh me. The joys of the IDE. ;-) Regards, Ian
  11. Ian Branch

    encrypt a date field in delphi??

    Hi Team, D10.4.1. 32bit Apps. I have the need to disguise a Date in a table, currently stored as a Date field, so the actual date cannot be read by any normal User/Utility. Ideally, something to encrypt and decrypt as required. Doesn't need to be super secret, it's just to deter the casual 'hacker'. Currently the Date is stored in a Date field but this is not compulsory. Having said that, it will need to encrypted from a TDateTime (Now), and decrypted back to a TDateTime variable. Thoughts, suggestions, recommendations appreciated. Regards & TIA, Ian
  12. Ian Branch

    encrypt a date field in delphi??

    Update - I have gone a combined route using the field as suggested by emailx45 and TEA, via EurekaLog, pointed to by Kas. Thanks Guys, Appreciated, Ian
  13. Ian Branch

    encrypt a date field in delphi??

    emailx45 & Kas, Thank you for your suggestions. Both appreciated. I do use Eurekalog so that is a good option. Not to waste an opportunity to learn I will try both methodologies and see how they go. Thank you again, Regards, Ian
  14. Ian Branch

    You Tube Video Channel????

    Hi Guys, D10.4.1, Win 10. Is something supposed to happen when I hover over one of the entries and click? It doesn't and I don't recall it ever. If it is supposed to, how/where do I enable it please? Ian
  15. Ian Branch

    You Tube Video Channel????

    Hi Lars, Yes, sorry, on the Welcome page. Nothing happens in my case. I have Chrome as my default Browser. Ian
  16. Ian Branch

    Issue with UsesCleaner..

    Hi Tim, You are quite correct and I implied that in my feature request. https://sourceforge.net/p/gexperts/feature-requests/128/ Old saying - You can please some of the people all of the time and all of the people some of the time, but not all of the people all of the time. 😉 (Poet John Lydgate as made famous by Abraham Lincoln) Ian
  17. Ian Branch

    Issue with UsesCleaner..

    Yep, just as I couldn't find where, I found where. On it.
  18. Ian Branch

    Issue with UsesCleaner..

    Happy to do so. Umm. Where please?
  19. Ian Branch

    Issue with UsesCleaner..

    Hi Vincent, You are of course quite correct. As my Apps were originally developed in D7 and have just grown up through the Delphi editions to now D10.4.1, without the necessary tweaking/refinement, UsesCleaner gave me the tool to do that painlessly. In regard to my 'preference', I was referring to the formatting of the uses clause. I use GExperts and the Uses Clause Manager will do the same thing, I just hadn't had the explicit need/urge to use it on every unit. I don't know if there is a setting somewhere to have GExperts format the Uses Clause the same as UsesCleaner. If there is I would appreciate being pointed to it. If there isn't it would be a nice enhancement. Ian
  20. Ian Branch

    Issue with UsesCleaner..

    FWIW - UsesCleaner was about moving from this.. uses Windows, Messages, System.SysUtils, System.StrUtils, Classes, Graphics, Controls, Forms, Dialogs, Grids, DBGrids, System.UITypes, System.TimeSpan, System.ImageList, System.RegularExpressions, System.Variants, DB, ImgList, ComCtrls, StdCtrls, ExtCtrls, DateUtils, ImageHlp, Vcl.DBCtrls, vcl.wwdbgrid, Vcl.Mask, vcl.wwdbedit, vcl.wwdbigrd; To this.. uses Winapi.Windows, Winapi.Messages, Winapi.ImageHlp, System.SysUtils, System.StrUtils, System.UITypes, System.TimeSpan, System.ImageList, System.RegularExpressions, System.Variants, System.Math, System.Classes, System.DateUtils, Data.DB, Vcl.DBCtrls, vcl.wwdbgrid, Vcl.Mask, vcl.wwdbedit, vcl.wwdbigrd, vcl.wwdatsrc, Vcl.Buttons, vcl.wwspeedbutton, vcl.wwdbnavigator, vcl.wwclearpanel, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids, Vcl.DBGrids, Vcl.ImgList, Vcl.ComCtrls, Vcl.StdCtrls, Vcl.ExtCtrls; Where the relevant units are now properly qualified and unexpectedly but nicely organised. This is clearly a personal preference thing but it is now my preference. Ian
  21. Ian Branch

    Issue with UsesCleaner..

    They both have a place in my programming toolkit.
  22. Ian Branch

    Issue with UsesCleaner..

    Yes.
  23. Ian Branch

    Issue with UsesCleaner..

    Hi Uwe, Cheers & Tks. Regards, Ian Update - Excellent!! Ran it over all my files. Really like what it does with the Uses. Thumbs Up. :-) Ian
  24. Ian Branch

    Issue with UsesCleaner..

    Thanks Uwe, There wasn't a UsesCleaner.cfg in the .zip, should there have been? Anyway, I have created one based on your example in the reference you gave. Regards, Ian
  25. Ian Branch

    Issue with UsesCleaner..

    Ahhh. Thank you. I has sorta deduced that it was a Uses order thing but didn't know why. I note that most of the units in my App have winapi.windows as the first uses entry. So. Given the procedure was expecting a TSearchRec type, and Sysutils is now after Windows, suggests that the units further down the uses list override the previous as it were. i.e. SysUtils.FindClose overrode Windows.FindClose. Something I never considered/realised. Regards & Tks. Ian
×