PeterPanettone
Members-
Content Count
1318 -
Joined
-
Last visited
-
Days Won
5
Everything posted by PeterPanettone
-
In Delphi 10.3.1 License Manager, when I REPEATEDLY click on a Workstation License node in the "Workstation Licenses" tree (or press ANY KEY) then EACH TIME the "This License Activates:" list shows different items: Items shown on first click: Items shown on consecutive click:
-
Bug in Delphi License Manager?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
This is very confusing for the user. I have never seen such strange behavior. Is this intentional? Maybe a gimmick? Or was the programmer bored? Or a virus? -
Best practices for system migration?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Unfortunately, the Delphi License Manager does not have an "Export" feature where I can export all my licenses shown in the License Manager. It has only an "Import" feature: -
Best practices for system migration?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
How does Delphi know that I am the same person on the new computer as on the old computer? -
Best practices for system migration?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
How should the license be transferred from the old computer to the new computer? -
Best practices for system migration?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Thanks for your hints. Do you mean having the whole Windows 10 operating system in a VM? AFAIK there is no way to run only a single application in a VM? -
IDE Command Line Switch for NOT auto-loading the previous project
PeterPanettone posted a topic in Delphi IDE and APIs
In Delphi, I have configured the IDE to automatically load the previous project at startup. Is there an IDE Command Line Switch to DEACTIVATE the auto-loading of the previous project? I have looked here but did not find any: http://docwiki.embarcadero.com/RADStudio/Rio/en/IDE_Command_Line_Switches_and_Options -
In Delphi Rio 10.3.1, the Project is configured for Debugging: Steps: 1. First I make sure that all source files are saved. 2. Then I start debugging (F9) 3. Then, at the first breakpoint, I press F8 (Step Over). This makes this dialog appear: When I look in the project folder, the only file which has been changed since debug start is MyProject.res. So why this file gets changed after the start of the debug session? This is the content of the RES file: This is very annoying and did not happen in previous Delphi versions. How can this be avoided?
-
RIO: Start Debug Session changes source
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
There is truth in this. -
RIO: Start Debug Session changes source
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Well, it could be useful to specify a specific version of the program independently from the version number. -
RIO: Start Debug Session changes source
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
I will ask the CnWizards developer to add an option to not be used in debug mode. If you think about it, there is no sense using the compilation date in when debugging. -
RIO: Start Debug Session changes source
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
It is called "VERSION CONTROL"! -
RIO: Start Debug Session changes source
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
I HAVE FOUND THE CULPRIT!!! It is one of the CnWizards experts which inserts the compile date into the version record: I believe there is no chance to avoid this when inserting the compile date. -
RIO: Start Debug Session changes source
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Yes, even when I do a build right before starting the debug session. -
RIO: Start Debug Session changes source
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
What do you mean with "source control"? The res file is not part of the project files tree: -
So you are hopeful? Thank you for giving me new hope!
-
We really need a genius who writes an add-in which replaces the native Delphi Code Insight with a working one. Such an add-in should also be highly configurable. I would pay up to $100 for such an add-in.
-
Configuration is: Formatted text/RTF/HTM: After pasting in WinWord 2010 it looks like this:
-
It's also interesting: If I save the fragment from GExperts to a RTF file and then open it in WinWord, then it looks correct. But when I copy that from WinWord and paste it into a Thunderbird e-mail I get lines as paragraphs: This means that the saved RTF file lacks paragraph information (or Thunderbird is not able to transform paragraphs to lines).
-
You must use Einfügen - > HTML:
-
BTW, in the file \gexperts-code-r2671-trunk\Projects\DelphiXx103\GExpertsRS103_version.ini there is this typo: InternalName=GExperts for Delphi 10.3 Tokyo Shouldn't it be "Rio"?
-
Probable.
-
BTW, I've found the Fragment prefix useless: Version:0.9 StartHTML:0000000105 EndHTML:0000002128 StartFragment:0000001413 EndFragment:0000002112 This becomes clear when you try to paste the HTML from the clipboard clip exported by GExperts into a Thunderbird e-mail with Insert/HTML: In this case, you should omit the first five lines shown above. Despite many experiments I made, I have not found an easy and satisfactory way to export source code with correct syntax highlighting to a Thunderbird e-mail. So I will either try to correct the GExperts expert or to create my own solution, where I tend to the latter.
-
BTW, I've found absolutely no use for the "HTML fragment text" export option: ... since this option copies a very simplified HTML text to the clipboard which seems to be useless: <pre> <code><span style="font: 10pt Courier New;"><span class="pas1-reservedword">function</span><span class="pas1-space"> PAIsWindowMinimized(h: HWND): Boolean; </span><span class="pas1-comment">// Detects whether a window is minimized or not </span><span class="pas1-reservedword">var </span><span class="pas1-space"> wp: Winapi.Windows.WINDOWPLACEMENT; </span><span class="pas1-reservedword">begin </span><span class="pas1-space"> wp.length := SizeOf(Winapi.Windows.WINDOWPLACEMENT); Winapi.Windows.GetWindowPlacement(h, @wp); Result := wp.showCmd = Winapi.Windows.SW_SHOWMINIMIZED; </span><span class="pas1-reservedword">end</span><span class="pas1-symbol">; </span></span> </code></pre>
-
Test results: Nothing seems to have changed. This means that pasting in the faulty WinWord document still shows the squares at line starts. In a normal new WinWord document, there is no problem, the fragment looks as desired with the correct syntax highlighting. Here is the HTML exported by GExperts: Version:0.9 StartHTML:0000000105 EndHTML:0000002128 StartFragment:0000001413 EndFragment:0000002112 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Fragment of MainForm.pas</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="generator" content="SynEdit HTML exporter" /> <style type="text/css"> <!-- body { color: #000000; background-color: #FFFFFF; } .pas1-assembler { background-color: #FFFFFF; color: #000000; } .pas1-character { background-color: #FFFFFF; color: #0000FF; } .pas1-comment { background-color: #FFFFFF; color: #008000; font-style: italic; } .pas1-float { background-color: #FFFFFF; color: #0000FF; } .pas1-hexadecimal { background-color: #FFFFFF; color: #0000FF; } .pas1-identifier { background-color: #FFFFFF; color: #000000; } .pas1-number { background-color: #FFFFFF; color: #0000FF; } .pas1-preprocessor { background-color: #FFFFFF; color: #008000; font-style: italic; } .pas1-reservedword { background-color: #FFFFFF; color: #000080; font-weight: bold; } .pas1-space { background-color: #FFFFFF; color: #000000; } .pas1-string { background-color: #FFFFFF; color: #0000FF; } .pas1-symbol { background-color: #FFFFFF; color: #000000; } --> </style> </head> <body> <!--StartFragment--><pre><code><span class="pas1-reservedword">function</span><span class="pas1-space"> PAIsWindowMinimized(h: HWND): Boolean; </span><span class="pas1-comment">// Detects whether a window is minimized or not </span><span class="pas1-reservedword">var </span><span class="pas1-space"> wp: Winapi.Windows.WINDOWPLACEMENT; </span><span class="pas1-reservedword">begin </span><span class="pas1-space"> wp.length := SizeOf(Winapi.Windows.WINDOWPLACEMENT); Winapi.Windows.GetWindowPlacement(h, @wp); Result := wp.showCmd = Winapi.Windows.SW_SHOWMINIMIZED; </span><span class="pas1-reservedword">end</span><span class="pas1-symbol">; </span></code></pre><!--EndFragment--></body> </html>