Jump to content

Ian Branch

Members
  • Content Count

    1431
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ian Branch

  1. Ian Branch

    Theme issue...

    Hi Uwe, Yes, it caught me out. I am now setting the theme first thing in the 'Create' of the Main form rather than the project file. Works fine. Regards & Tks, Ian
  2. Ian Branch

    ImageLists. One or Multiple??

    Hi Team, This may be as much a philosophical as a practical question.... Given a multi form (30+) App with a Datamodule. Is it better to have one ImageList in the Datamodule with all the images/icons in it, or, a separate imagelist in each form with just the form's images/icons in it? Many images/icons, i.e. 'Close' are shared in many forms. Given that the forms are created/destroyed at during the App's run time. I'm inclined to go for individual form imagelists. What are your thoughts? Is there a 'best practice' for this? Regards, Ian
  3. Ian Branch

    ImageLists. One or Multiple??

    Hi Stano, Tks. Now I see the picture. I have implemented it without issue. Regards, Ian
  4. Ian Branch

    ImageLists. One or Multiple??

    Hi Team, So It appears I am missing some practical knowledge in regard to the usage of TImageCollection & TVirtualImageLists. 😞 I had a read of the Documentation and am still somewhat confused. I don't/can't see how having a TImageCollection in a datamodule, and TVirtualimagelists on the visible forms referring back to the TImageCollection, is better than having a just a TImageList on the datamodule and referring to it in the forms. Could someone enlighten me please? Regards & TIA, Ian
  5. Ian Branch

    GExperts Replace Components..

    Hi Team, So what is it exactly that is broken that now prevents this extremely useful functionality from working? "Due to a bug in the Open Tools API since Delphi XE3 XXXXXXXX cannot be replaced because it has sub components" I have, where possible, been doing replacements in D2007, where I can, but that is annoying to say the least. Is there an EMB issue open on it? Number please so I can vote. If it can't be fixed, are we better off not showing the option in XE3 & up? Regards, Ian
  6. Ian Branch

    GExperts Replace Components..

    Hi Thomas, Thanks for checking. Unfortunate/disappointing. I voted for the issue a long time ago. 🙂 Regards, Ian
  7. Ian Branch

    ANN: Skia4Delphi v3.4.0

    Cheers & Tks.
  8. Ian Branch

    Survey of Delphi Versions in use??

    Tke Uwe, SwiftExpat. Which would be the most appropriate area to put it under??
  9. Ian Branch

    ANN: Skia4Delphi v3.4.0

    Hi Team, I build exclusively Win 32bit Apps. Primarily database Apps with support utilities. Nothing fancy, no whizz-bang graphics etc. My Customers are still mired in Win 7 OS & Hardware. They access their apps via their local LAN, RDP into a Win 2012 Server and the web into the same Server via Cybele's ThinFinity. The only 'Graphics' involved, aside from the nor Icons, are the saving/showing of images of equipment, currently in .jpg format. Whilst I am intrigued by Skia4Delphi, I am curious if incorporating it in my Apps would provide any benefit to/for the end Users? Regards & TIA, Ian
  10. Ian Branch

    GExperts Replace Components..

    That is because they have no sub components.
  11. Ian Branch

    GExperts Replace Components..

    I get this message when a replace is attempted in D11.1. 😞
  12. Ian Branch

    GExperts Replace Components..

    Is OTAPI still an issue for the GExperts Replace Components functionality in the latest Delphi??
  13. Ian Branch

    So here's my challemge...

    Hi Team, I need a mechanism/code where a 3 letter Company code is combined with an autoinc number, but, the autoinc number is related to the Company code. The combined are to fit in a 10 char field. These are to be individual Company Asset Numbers to go on to QRCode labels and into the table. To clarify: Let's say there are 3 companies, there will be lots more in practice, with Company codes of ABC, DEF, and GHI. I need to be able to generate as/when required, and sequentially, ABC0000001 to ABC9999999, and DEF0000001 to DEF9999999, and GHI0000001 to GHI9999999, etc, on an as needed basis. Thoughts/suggestions appreciated. Regards & TIA, Ian
  14. Ian Branch

    So here's my challemge...

    Hi Lars, Thank you for your input. In reality the maintenance (editing/adding) of assets is vested in one person, the Storeperson, so there won't be any clash. Security is not a big issue in this environment. The action of my code above is almost instantaneous however I am still considering if I should put it in a transaction, or not. Just for the added peace of mind. Ian
  15. Ian Branch

    So here's my challemge...

    Hi Team, Thank you for your inputs. I have slept on it and come up with using an AssetKeys table. Two fields - CoyCode - Char 3 and AssetNo - Integer. The Char field will hold the Company code and the Integer field will hold the next Asset # to use. The CoyCode field will have a unique index. When a new Company is added the AssetKeys table will have the new Coy code added and the AssetNo field set/used. The AssetKeys table will be linked to the Assets table via the CoyCode. When a new asset is added the, current AssetNo will be retrieved and then incremented in AssetKeys. The CoyCode and retrieved AssetNo will then be manipulated to give a 10 char Asset # per my examples above. Here is my preliminary code in the BeforePost Event.. // // Get current Asset # for the Relevant Company based on the Coy Code. AssetKeys.Open; if AssetKeys.eof then AssetKeys.AppendRecord([CoyAssets.FieldByName('CoyCode').AsString]); // AssetKeys.AssetNo defaults to 1 on a new record. iAssetNo := AssetKeys.FieldByName('AssetNo').AsInteger; AssetKeys.Edit; AssetKeys.FieldByName('AssetNo').AsInteger := AssetKeys.FieldByName('AssetNo').AsInteger + 1; AssetKeys.Post; AssetKeys.Close; // // Now create the actual Assset #. sAssetNo := IntToStr(iAssetNo); sAssetNo := sAssetNo.PadLeft(7, '0'); sAssetNo := CoyAssets.FieldByName('CoyCode').AsString + sAssetNo; // // set the CoyAssets Asset #. CoyAssets.FieldByName('AssetNo').AsString := sAssetNo; // Ian
  16. Ian Branch

    Windows has broken it - again.

    Hi Team, Windows 11 64bit. Latest Dev update. Just downloaded and tried to install GE rev 3826 for D2007. Got this... Following the link, thanks Thomas, it looks like Windows has struck again.. Will follow the instructions and see how it goes. Ian
  17. Ian Branch

    Windows has broken it - again.

    Ahhh Yes. Senior's moments.... 😉 I'm noticing more of them lately... ;-(
  18. Ian Branch

    So here's my challemge...

    Hi FPiette, I haven't decided which way to go yet. Still considering options/alternatives. Ian
  19. Ian Branch

    Windows has broken it - again.

    Success! The build for D2007 now works. Per the instructions, I copied the files here... "D:\GExperts\buildtools\dotNET2007" into here.. "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727" HTH someone else.
  20. Ian Branch

    Deputy IDE Expert

    Done. All good now. No etch-a-sketch lines at start-up of my Delphi 11.1 Thank you. Ian
  21. Ian Branch

    Deputy IDE Expert

    Fair comment. All I know is that if I disable GExperts or Deputy the Delphi Opening effect disappears. I have seen no operational impact as yet.
  22. Ian Branch

    Deputy IDE Expert

    There appears to be a conflict with GExperts. I am running Windows 11, 4k screen, D11.1, GExperts rev 3823, Deputy rev 2.4.1 via Getit. This occurs after the Deputy install and Delphi is restarting. Further, as D11.1 is starting I see this... If I disable GExperts this disappears.
  23. Hi Team, I seem to have misplaced my Code Format menu option in my D11.1.. Any thoughts on where it may have gone?? I disabled all IDE experts to no avail. It was there yesterday.. Ctrl-D still formats the unit OK. Regards & TIA, Ian
  24. Ian Branch

    Lost Code Format Menu option....

    Done.. https://quality.embarcadero.com/browse/RSP-37837
  25. Ian Branch

    Lost Code Format Menu option....

    Ah Ha! So I wasn't going mad. So, it is Format Project Sources in the Project Menu that has gone missing. 😞 I can do this - Projects Window | right-click a project file | Format Project Sources but I prefer the menu option.. 🙂
×