Ian Branch
Members-
Content Count
1470 -
Joined
-
Last visited
-
Days Won
4
Everything posted by Ian Branch
-
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
Standby I may have found the issue. -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
Same error message. -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
OK. Two things. When I went to download initially, there wasn't the x64 .bpl there so I just downloaded the original again just iin case you had changed it. Now I see there is a x86 & x64 version available. I downloaded the x64 version, placed it in the suggested directory and got the same result using Install Packages. Both the x86 & x64 versions seem to be the same size. -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
OK. I am going to need further help here. I have never used the "Install Components" option. I will need instruction on what goes in the respective fields. I have allways used the "Install Packages" option but in this case I get -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
How to get it into the 64-bit IDE? I have it loaded into the 32-bit IDE OK. -
AppWatcher - Remote Application Management for Delphi Developers
Ian Branch replied to maumsti's topic in I made this
FWIW, I use an Application based Time-out that shuts the application down if there hasn't been any application activity, mouse or keyboard, for a defined period. -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
I'll live. 😉 Not if I click on the same node. If I click a different node it corrects itself. -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
Any progress on this one. Extremely annoying... Ian -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
Nope. Components unexpectedly moved on forms. 😞 Back to to dpi-unaware. -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
Cheers. As an experiment I have switched to the dpi-aware IDE. It is a lot better than I remember. All good with the Fonts now. Ian - Hi Team, Is there a setting to increase the 'view'/ working area in the design window of the dpi-aware Delphi? On my 4k monitor the design working area looks like this: This is my dpi-unaware screen which I much prefer: All my Apps are built to 96dpi as they are being used on Windows 7 PCs with fixed resolution monitors. Regards & TIA Ian
-
IDE Design window size in dpi-aware Delphi...
Ian Branch replied to Ian Branch's topic in Delphi IDE and APIs
I found it: All good now. -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
OK. I have the fonts set as I like them using the dpi aware delphi, and all good in the dpi unaware version. -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
Sorry, I meant the actual font. -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
I don't have the 'Close Welcome screen when opening a new project' option checked: -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
Yes. That is all I ever use. P.S. What was your original Font style? I have changed it so many times I have forgotten. P.P.S. I just tried the non dpi unaware version of Delphi and the Font settings all work OK. -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
Here's another one for you: When building a proj or group it shows one column. That's fine: When I close all projects it goes back to two columns width but shows only one column. If I minimize and then maximize Delphi the two columns show again. Ian -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
Better: This is for these settings: Trouble is that for both settings I select a font size of 8: Again, cosmetic, but workable. Ian -
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
Thank you for the Fonts mod. You are right about the Treeview. 🙂 I am using a 4k monitor which runs as 125%. I selected 10 for the font size for th Treeview and got this: Which displayed as this: There also seems to be a bug, perhaps resolution based, in the displaying of the .dproj names in the Controllist: Note the indenting of the names. No biggie, just cosmetic, all still workable. Regards, Ian - Hi Team, Background: My Pacific Island Customer is still in the 'Dark Ages' when it comes to his Network/Workstation environment. Old HP Server with Win Server 2012 r2 64bit. Two HDD in Raid 1 but one is 3Gb/s the other is 6Gb/s. 😞 His LAN workstations are old as well, running Win 7. Users can also access my Delphi database apps on his Server via RDP and/or via the Web using Cybele's ThinFinity. The Database engine is ElevateSoft's ElevateDB 64bit. His philosophy is, 'If it ain't broke, don't fix it.'. To which I respond, 'If it ain't as good as it can be, then it's broke'. He just doesn't want to spend any money on it unless he absolutely has to. Anyway, with 26+ Users and multiple multi-User Apps, things tend to bog down. Surprise!! Idea: As he won't spend money at his end, what can I do application wise to improve the apparent database performance and therefore the User experience? Right now you have many ideas going through your mind... 😉 What I decided, as much for the perceived need as for an exercise, was the concept of a Cacheing TDatasource. TCachedDatasource. Development: With the assistance of two Associates, Claude & ChatGPT 4o, I developed and put the design concept/spec to them. They each came back with a proposal which I vetted and selected one as the most promising. Also the one I could understand. 😉 So, between the three of us, playing one against the other and back, we developed a basic component that worked. We then refined it further, eliminating some errors, optimising some areas, until I was generally satisfied and it appeared to work. Replaced the existing TDatasource components in one of my apps with the new TCachedDatasource and tested general functionality. All good at this stage. So, keeping this 'original' code aside, I put it to them and raised questions about various scenarios. i.e. Autoinc fields, searching, filtering, etc. The component was slowly refined. Playing each of the AIs against each other for issues/refinements. The overall priority was Data integrity. No loss or corruption of data. This to the detriment of any other functionality. Result: After a day of interaction we have what is attached here. Note some additional properties: 1. Active:- True (default) - the caching is turned on. False - The component acts like a normal TDatasource. 2. CacheSize:- This is the number of records to cache. This is associated with VisibleRecords. 3. EnableLogging:- False (default) - No logging. True - Logging enabled. A text Log will be sent to what is defined in the LogFileName property. 4. LogFileName:- Full path/name of the Log file for logging. If only a Name is entered it will be written to the Apps directory. If there is no entry here then EnableLogging is ignored. 5. RefreshInterval:- The interval, in seconds, that the cache will be refreshed. Default is 60 seconds. 6. VisibleRecords:- The number of visible records that a DBGrid may be showing. This feeds back to the CacheSize and allows dynamic adjustment if the DBGrid height is adjusted and therefore shows more, or less, records. Conclusion: As I said, this was as much a desire to improve things for the User, as it was an exercise for myself using AI. I'm sure it isn't perfect, and could do with some tweaks here and there. Feel free. If you find anything notable and fix it, please publish it here, I'm sure others will appreciate your submissions. I haven't done any performance testing. This was developed in Delphi 12.2. I think it should be good back to XE2. Learnings: There is a lot that goes into something like this when multiple factors need to be considered. Claude tends to forget existing code when proposing/integrating new code suggestions. Claude was/is limited in the 'length' of Chats. ChatGPT was reasonable but not as code particular as Claude. Don't do this again. 🙂 I hope somebody finds this of some use, even if it is as an exercise in how not to do it. Feel free to can the whole idea. 🙂 P.S. As this was a Human/AI collaborative effort, who owns the IP?? 😉 Regards, Ian uCachedDataSource.pas
-
wuppdi Welcome Page for Delphi 11 Alexandria?
Ian Branch replied to PeterPanettone's topic in Delphi IDE and APIs
gkobler, It would be nice to be able to change the font size. Pretty small on a 4k monitor. 😉 - Hi Anders, See, I knew alternatives would be suggested. 🙂 Until refresh. I don't believe so. I did say it wasn't perfect... 😉
- Interesting. I was not aware of that. Food for thought. On what basis does UPX allocate the space/block of memory? I guess this wouldn't really be an issue with modern Windows/PCs, but my Customer's Users are using older Win 7 SP1 PCs with 4GB of memory.
- Hi Guys, I acknowledge the previous two commentors and their valid inputs, however it is horses for courses. I was simply offering a suggestion. I have used UPX for many years without any issues. Note: I use Eurekalog not MadExcept. It provides not only compression, but also therefore a small level of obfuscation to casual file browsers. That is all I need. Like? Yes I could, but, the other end is so computer illiterate that they would screw up the unzip and save process. Pacific island users. It has to be simple for them to just copy into their directory. Even then they screw it up sometimes...:-(
- If it simply the size of the .exe you are looking to reduce, I use UPX, https://github.com/upx/upx/releases, it handles 32 & 64 bit Apps. I use a compression value of 7 and get a roughly 30% reduction in .exe size. It will also handle wild card file names, i.e. upx -7 *.exe.
![Delphi-PRAXiS [en]](https://en.delphipraxis.net/uploads/monthly_2018_12/logo.png.be76d93fcd709295cb24de51900e5888.png)