-
Content Count
620 -
Joined
-
Last visited
-
Days Won
11
Everything posted by corneliusdavid
-
RAD Studio 10.4 Community Edition - missing Delphi.Personality
corneliusdavid replied to TCH's topic in General Help
Well, it sounds like you're up against a no-win situation if the customer can't pay enough to support a professional development tool. Even if you did get the Trial working, it only lasts for 30 days. -
RAD Studio 10.4 Community Edition - missing Delphi.Personality
corneliusdavid replied to TCH's topic in General Help
It sounds like, perhaps, you have no experience with Delphi. So I have to wonder why you would take on a project that requires Delphi? And by talking with the previous developer, you'd realize you would need the Professional version and that it costs money--which is another reason to question why you would take on this project. So either get a down-payment from the customer or use the trial and get some billable hours in--you will very likely need to own a purchased copy of Delphi Professional. Maybe there's more to this story than that... The Trial version is the Architect version which has all the FireDAC components (the CE version does not). Perhaps it's just not installed correctly? -
Getting input from a TListBox and continuing execution
corneliusdavid replied to giomach's topic in VCL
I mistyped; that line should've been: FocalFormResult := FocalForm.ShowModal; -
OK, good. I'm glad my suggestion might be useful. I know there's a way to present a list of windows as well (involves digging into Windows APIs and calling FindWindow if you don't build this list yourself) but I don't have a link ready to give you for that. I know I've seen blogs about how to do it in the past.
-
Sorry--my reply was totally off. I thought you wanted to solve the problem of windows getting stuck behind other windows.
-
10.4: Removing directories from Find in Files
corneliusdavid replied to joelstell54's topic in Delphi IDE and APIs
In the "Find in Files" dialog, there are two buttons next to the Directories edit box. The first one is "Browse for Folder" and does what you think, browses for and selects one folder and puts it in the Directories box. The second button is "Folders and Groups" and allows you to build a custom list of folders and even have named groups of folders (for different projects, for example). So instead of excluding certain folders, you create a list of all folders you want to include, then uncheck "Include subdirectories." -
Getting input from a TListBox and continuing execution
corneliusdavid replied to giomach's topic in VCL
I'm re-reading your post and realize you're accessing a different form, FocalForm. So if that's on a different form than the posted code, use ShowModal instead of Show and call that after you've loaded the items. ShowModal will show the form and wait for it to be closed before continuing: begin ... else if ChooseFocalForm then begin FocalForm.LemmaListBox.Clear; for i := nwordfirst to nwordlast do begin getword (i, jstoretmp, jhmgrphtmp, whead, nheadlast); FocalForm.LemmaListBox.Items.Add (jstoretmp); end; FocalFormResult := FocalForm.LemmaListBox.ShowModal; // <--waits for Windows to handle form and return if FocalFormResult = mrOK then nwordfirst := nwordfirst + FocalForm.LemmaListBox.ItemIndex end else ... -
Getting input from a TListBox and continuing execution
corneliusdavid replied to giomach's topic in VCL
You need to give control back to Windows to let it send your application an OnClick event. So instead of handling the selected item within the same procedure, load the ListBox and that's all; move the rest of the code to your OnClick event handler--it will be called once the ListBox is clicked. This book might be useful: https://dalija.prasnikar.info/delphiebap/index.html -
One of the regular attendees of the Oregon Delphi User Group did a lot of research last summer on this very issue because he had the exact same problem you have. We were meeting virtually and actually recorded this particular meeting. You can view the recording and listen to his explanation and complete solution in the first 25 minutes of the video here: https://odug.org/2021-06
-
Delphi PAServer arm RPi compilation
corneliusdavid replied to nighthawk2032's topic in Cross-platform
Yeah, the first video is a web-based solution. I offered it in case it would interest you. The second link is a blog but contains a couple of videos and even though it's about 5 years old, contains a lot of information about the plethora of small system-on-a-chip computers. IIRC, it touches on why it's there isn't native compilation for that platform yet. As an alternative, you can put Android on a Raspberry Pi and then use Delphi to create an Android app deployed there. I've done it--and explain how in my book--and Jim McKeeth shows it in the video in that second link. -
Delphi PAServer arm RPi compilation
corneliusdavid replied to nighthawk2032's topic in Cross-platform
Here's a way to do it without the PAServer: https://learndelphi.org/how-to-develop-applications-for-the-raspberry-pi-with-delphi-11/ More information (a little older) about building apps for various small devices: https://blogs.embarcadero.com/delphi-on-raspberry-pi/ -
Which ones and in what version of Delphi? I looked through IDE plug-ins I have and they're either either fully configurable (GExperts, Parnassus Bookmarks and Navigator) or don't have shortcuts (EurekaLog, CodeSite, UniDAC, etc.). DDevExtensions allows you to disable the Ctrl+D shortcut to start the source code formatter. Plug-ins I use in older versions of Delphi (Castalia and Documentation Insight) also have configurable shortcuts. I don't have CnPack or MMX Code Explorer--perhaps one of those are causing the anguish?
-
The quick and lazy way to handle this is to turn off the Scaled property in all your forms but then all your controls will be really tiny when the Windows scaling is cranked up. What you'll need to do is change several aspects of your forms to gracefully rearrange themselves as heights and widths change. Notice I didn't say "re-design" your forms but it does take some work. Get to know the Align and Anchors properties first. Consider using container components that automatically rearrange components but keep them in their place like the TFlowPanel and TGridPanel. There are many other things you can do--a quick internet search will reveal many blog posts and articles over the years. Here's a good starting point: https://zarko-gajic.iz.hr/writing-and-enabling-delphi-application-to-support-high-dpi-displays-and-4k-screen-resolutions/
-
Newly released book: Delphi Legacy Projects
corneliusdavid replied to Bill Meyer's topic in Tips / Blogs / Tutorials / Videos
I don't buy printed tech books anymore--electronic only. That way I can take my library anywhere I go--like when I go to a meeting or when I'm camping. I never know when I'll need a reference for something and I'm constantly switching projects. And yes, I pay for every one I get. -
Delphi 11.1 Stuck While Opening Project
corneliusdavid replied to stacker_liew's topic in Delphi IDE and APIs
Do you have any IDE plugins that may be hung up? Have you configured a version control tool in Delphi? -
You might consider posting questions about C++Builder in the "C++Builder Questions and Answers" section instead of the Delphi section. The RAD Studio editor takes a different approach to code editing; it doesn't force you to a strict coding standard as you type but lets you write code free-form. Then, as an option and with a single shortcut key, you can format the entire source with formatting rules you've set up.
-
Newly released book: Delphi Legacy Projects
corneliusdavid replied to Bill Meyer's topic in Tips / Blogs / Tutorials / Videos
Is there a PDF version available? Or even Kindle? -
Delphi 11.1 - a month later
corneliusdavid replied to Mike Torrettinni's topic in Delphi IDE and APIs
Yes, I misspoke. I should've said, "I need to use a VirtualImageList to automatically scale images ..." -
Delphi 11.1 - a month later
corneliusdavid replied to Mike Torrettinni's topic in Delphi IDE and APIs
I'm just starting to use Delphi 11 (having been working on a big project in 10.4). This was what I saw at first and just re-read the blog about High-DPI mode and checked the option to use it in the VCL form designer--and now the forms are scaled properly in the IDE! Basically, I was using the unaware mode because of the tiny forms. But now, comparing both aware and unaware modes, I've noticed two things: 1) the bitmaps in the forms are smaller in the High-DPI aware version of Delphi which means I need to use a VirtualImageList and include various sizes of the bitmaps so the app will use the right version as the scale changes; and 2) the code is a little crisper and a few more lines show on the screen using the same font and size. -
Delphi 11.1 - a month later
corneliusdavid replied to Mike Torrettinni's topic in Delphi IDE and APIs
Same here. I use Delphi on a high-DPI monitor and if I use the "aware" version, my forms are so tiny, I can't read them. -
Cant Install App on IOS Err(8000051) Error 0xe8000051: Could not inspect the application package
corneliusdavid replied to rihar's topic in Cross-platform
If you're doing mobile development with Delphi, you have no choice but to upgrade--or better, keep a subscription active. That's not a paid advertisement, it's just reality. -
Cant Install App on IOS Err(8000051) Error 0xe8000051: Could not inspect the application package
corneliusdavid replied to rihar's topic in Cross-platform
You might need to run xcode on your Mac and get it updated. I had problems until I did that and it needed to install some stuff. Then I refreshed the SDK in Delphi and it upgraded to SDK 15.5. I also got the patch for Delphi 11.1. With that combination I was able to compile/deploy a simple test app to my iPad via PAServer 22.0. Any reason you can't upgrade? There are always patches coming out for everything--it's a pain to keep everything up to date, I know. -
macOS where to save downloaded executable?
corneliusdavid replied to softtouch's topic in Cross-platform
You should be able to download and execute them wherever you can write to files--a data directory under a user folder is just fine. Executable files are not restricted to running only from special "Program Files" type of folder. The only caveat is that an anti-virus program may catch it and block saving/launching it if it's not signed and/or well-known. -
I confirm this crashes on my iPad when those 4 lines are commented out. It's not a terribly inelegant work-around but since the same code doesn't crash on Win/MacOS, it does seem like there's a bug in there.