Forum > General
how to make windows application responsive in lazarus
Prakash:
how to make windows application responsive in lazarus
cdbc:
Hi
Code it right!
Regards Benny
MarkMLl:
--- Quote from: cdbc on July 31, 2024, 01:52:09 pm ---Code it right!
--- End quote ---
+1 for that.
OP: what on Earth do you think you're doing, asking such a dumb open-ended question but providing neither example code nor some minimal explanation of what you're doing and what you think should be happening?
In fact I've been looking back through your posting history and am puzzled: you're hopping around from one topic to the next, with no coherent pattern and with no apparent overall project or interest in a particular application area.
Are you actually a tech support guy, booting anything you can't answer immediately up to us as unpaid second-level gurus? Or are you an AI, teasing us with barely-interpretable questions and trying to parse the results into a knowledgebase?
MarkMLl
Martin_fr:
"responsive" may be misleading here.
In web design, nowadays it refers to "respond to screen size", i.e. ability to display on small and large screens, as well as on other media such as printers (where there is no scrolling of embedded views).
On desktop (and "Windows application" to most here will imply Desktop), "responsive" would mean "fast". React to user input without noticeable delay.
The latter question really is answered by: Make sure you write good code (threaded if needed). At least unless you present a specific bit of code, which you need ideas how to speed up.
If you meant the first, you need to explain how that applies to windows apps. But any changes that go beyond resizing controls while keeping the layout, well those you will need to code yourself => have different layouts prepared in your code (or as exchangeable TFrames).
The LCL is not going to change your form from one layout for widesceen, to another for portrait mode.
Handoko:
@Prakash
Please provide more information so we can better understand your question.
If you mean windows programs like Photoshop, CorelDraw, AutoCAD, etc, which are not developed using Lazarus. They have nothing to do with Lazarus, no much you can do. Perhaps it is the time to upgrade your machine.
Or did you mean how to build a tool to make other program more responsive? I remember I ever saw a tool to can unfreeze unresponsive/crashed programs in Win95/98 era.
But if you meant how can we develop programs that have better user responsiveness. As you've been told, code it right. There are many 'tricks', one of them is reduce the program performance. In a long tight loop, the program's performance usually is opposite with user responsiveness. If you're interested, you can study my code here:
https://forum.lazarus.freepascal.org/index.php/topic,43806.msg307101.html#msg307101
Navigation
[0] Message Index
[#] Next page