PeterPanettone
Members-
Content Count
1231 -
Joined
-
Last visited
-
Days Won
5
Everything posted by PeterPanettone
-
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>
-
Yes, I will test it. Thank you very much!
-
Marking of the main form in a multiform VCL Application
PeterPanettone posted a topic in Delphi IDE and APIs
Every multi-form VCL Application has a MAIN-FORM which is labeled in the Project Options dialog: Unfortunately, in the Project Explorer panel, there is no indication which is the unit associated with the MAIN FORM: Wouldn't it be useful if such an indication would be automatically shown by the IDE in the Project Explorer panel? (For example, with a different font color of the specific unit). -
Marking of the main form in a multiform VCL Application
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
For some, it's a strategy. -
Marking of the main form in a multiform VCL Application
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
This discussion is meant as a preparation for a feature request. -
Marking of the main form in a multiform VCL Application
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
MMX. All these usage scenarios of how people use the IDE is somewhat interesting. Maybe it would fit into a topic named "How do you personally use the IDE?" But it has nothing to do with the subject of this topic: "Marking of the main form in a multiform VCL Application" Maybe this could also be considered for a psychological or sociological study on how people in discussion forums tend to deviate from a given topic. -
No, for the user abstract DPI values are useless. In the practice, the user will just visually set an icon size which pleases his eye. I rather think that you are not able to scale them freely as in my demo.
-
It is as I thought: Your demo CANNOT freely scale button icons as my demo (Freely_Scale_Toolbar_Controls_With_SVG_v2.zip) does. It can scale the button icons only in pre-defined steps: 75, 100, 125, 150, 175. For that, I don't need any SVG, just a few standard image-lists in different icon-sizes! The floppy image seems to be an SVG image overlay which can also be freely scaled with the SVG Magic library. The advantage of the SVG Magic library is that it contains a SVG Image-List component which allows you to do the things as shown in my demo.
-
Marking of the main form in a multiform VCL Application
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
The idea of the proposal is that the marking is done automatically by the IDE, for example with a different font color of the specific unit name in the Project Explorer panel. Then, you can always name your forms as you want. -
Then I am sure you can indicate me a demo where button icon sizes can be freely changed without scaling like in my demo. If you cannot then it is proof that you are here to slander the products of other people.
-
Marking of the main form in a multiform VCL Application
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Don't you understand what we are talking here about? We are not talking about naming forms. Please read the original SUBJECT of this topic: "Marking of the main form in a multiform VCL Application" -
Have you at least downloaded and looked at my demo? NO? Then what are you writing about? Just spreading bad emotions?
-
Marking of the main form in a multiform VCL Application
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
I could not do the IDE enhancement. How could I?