Jump to content

PeterPanettone

Members
  • Content Count

    1354
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by PeterPanettone


  1. I have analyzed what GExperts exports as HTML clipboard format:

    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>*

     

    This is what CnWizards image.png.23b1b4236580995fae08791627221cfd.png exports as HTML format:

    Version:1.0
    StartHTML:000000176
    EndHTML:000003298
    StartFragment:000001389
    EndFragment:000003263
    StartSelection:000001389
    EndSelection:000003263
    SourceURL:http://www.cnpack.org/
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="CnPack Source2Html Wizard (http://www.cnpack.org)">
    <style type="text/css">
    <!--
    body { font-family: "Courier New"; font-size: 11pt;color: #000000 }
    
    .u0 { font-family: "Courier New"; font-size: 11pt;color: #000000 }
    .u1 { font-family: "Courier New"; font-size: 11pt; font-style: italic;color: #008000 }
    .u2 { font-family: "Courier New"; font-size: 11pt;color: #0000FF }
    .u3 { font-family: "Courier New"; font-size: 11pt;color: #008080 }
    .u4 { font-family: "Courier New"; font-size: 11pt;color: #000000 }
    .u5 { font-family: "Courier New"; font-size: 11pt; font-weight: bold;color: #000080 }
    .u6 { font-family: "Courier New"; font-size: 11pt;color: #FF0000 }
    .u7 { font-family: "Courier New"; font-size: 11pt;color: #000000 }
    .u8 { font-family: "Courier New"; font-size: 11pt;color: #0000FF }
    .u9 { font-family: "Courier New"; font-size: 11pt;color: #000000 }
    .u10 { font-family: "Courier New"; font-size: 11pt;color: #0000FF }
    -->
    </style> 
    </head>
    <body bgcolor="#FFFFFF">
    <!--StartFragment--><span class="u5">function</span>&nbsp;<span class="u4">PAIsWindowMinimized</span><span class="u9">(</span><span class="u4">h</span><span class="u9">:</span>&nbsp;<span class="u4">HWND</span><span class="u9">):</span>&nbsp;<span class="u4">Boolean</span><span class="u9">;</span>
    <br><span class="u9"></span><span class="u1">//&nbsp;Detects&nbsp;whether&nbsp;a&nbsp;window&nbsp;is&nbsp;minimized&nbsp;or&nbsp;not</span>
    <br><span class="u5">var</span>
    <br>&nbsp;&nbsp;<span class="u4">wp</span><span class="u9">:</span>&nbsp;<span class="u4">Winapi</span><span class="u9">.</span><span class="u4">Windows</span><span class="u9">.</span><span class="u4">WINDOWPLACEMENT</span><span class="u9">;</span>
    <br><span class="u5">begin</span>
    <br>&nbsp;&nbsp;<span class="u4">wp</span><span class="u9">.</span><span class="u4">length</span>&nbsp;<span class="u9">:=</span>&nbsp;<span class="u4">SizeOf</span><span class="u9">(</span><span class="u4">Winapi</span><span class="u9">.</span><span class="u4">Windows</span><span class="u9">.</span><span class="u4">WINDOWPLACEMENT</span><span class="u9">);</span>
    <br>&nbsp;&nbsp;<span class="u4">Winapi</span><span class="u9">.</span><span class="u4">Windows</span><span class="u9">.</span><span class="u4">GetWindowPlacement</span><span class="u9">(</span><span class="u4">h</span><span class="u9">,</span>&nbsp;<span class="u9">@</span><span class="u4">wp</span><span class="u9">);</span>
    <br>&nbsp;&nbsp;<span class="u4">Result</span>&nbsp;<span class="u9">:=</span>&nbsp;<span class="u4">wp</span><span class="u9">.</span><span class="u4">showCmd</span>&nbsp;<span class="u9">=</span>&nbsp;<span class="u4">Winapi</span><span class="u9">.</span><span class="u4">Windows</span><span class="u9">.</span><span class="u4">SW_SHOWMINIMIZED</span><span class="u9">;</span>
    <br><span class="u5">end</span><span class="u9">;</span>
    <!--EndFragment--></body>
    </html>
    *

     

    BTW, the fragment exported by CNWizards does not create the squares in the faulty WinWord document.


  2. I've tried it now with a fresh new WinWord document where I pasted the clipboard content. No squares there.

     

    Then I retried it with the document where the squares have appeared yesterday. The squares appeared again.

     

    So I have to conclude that the problem appears only in a specific WinWord document.

     

    I could not find out why.


  3. 2 hours ago, dummzeuch said:

    I guess you mean the squares on the left hand border? (You should have said so, because i just starred at this picture for several minutes before i noticed them.) Everything else looks fine to me.

    Yes. What are the squares doing there?


  4. When I create a new VCL Application from scratch in the Delphi 10.3.1 IDE with File -> New -> Windows VCL Application then everything including CODE INSIGHT works well. :classic_smile:

     

    This newly created VCL Application project has the "Use MSBuild externally to compile" project option set to FALSE as default:

     

    image.thumb.png.cd3bec94a689fec0856a30155ca2c8a4.png

     

    But when I set the "Use MSBuild externally to compile" project option manually to TRUE: 

     

    image.thumb.png.4cc93da90b4247b126460937a199ba58.png

     

    ...(and then rebuild the project) then CODE INSIGHT does not work anymore: This affects the Code Insight popup menu which normally is invoked after typing a DOT:

     

    image.thumb.png.68145ea3efe60155167684e570bf5116.png

     

    ...and so the Code Insight popup menu does not show up anymore!

     

    Question: Is this a BUG in the IDE?

     


  5. 1 hour ago, Stefan Glienke said:

    What should it show?

     

    scnr 😉

    Where did you get this? Marco Cantù answered at the Quality Portal:


    "RAD Studio IDE offers Help Insight, which can grab XMLDoc documentation from the source and displays is alongside in a very similar way. The limitation is we don't have large coverage in terms of XMLDoc."

     

    Stefan, maybe you confuse something here. We are talking about SOURCE CODE DOCUMENTATION.


  6. I am using the CnWizards version of "Intellisense" (code-completion) as it has several advantages with respect to the native Delphi code-completion (see the screenshot). However, both code-completion popups lack the ability to show whether a selected property is published or public:

     

    image.thumb.png.b52d5cf2f878580e1834f09bb93dc8d1.png

     

    Or is there a distinction which I do not see?


  7. 15 hours ago, pyscripter said:
     
    • Andreas Hausladen. Obones and  and a few others have been quite active in maintaining JCL/JVCL. 
    • Although, there are no recent releases the recommended installation procedure involves using the GitHub master.  See https://github.com/project-jedi/jcl for details.
    • JCL/JVCL support all Delphi versions including the most recent ones.
    • There have been tens of commits fixing warnings and minors bugs over the last few months (https://github.com/project-jedi/jcl/commits/master)
    • There are masses of gems in both JCL and JVCL that are still worth using in production code.

    Embarcadero should hire them and pay them a decent salary!

     

    Embarcadero should also hire a few dozens of first-class Delphi developers and maintain the major open source Delphi libraries!

     

    What is Embarcadero doing with the many billions of $$$ they get from Delphi licenses?


  8. 8 minutes ago, dummzeuch said:

    I'm afraid recursive hardlinks word result in an infinite loop right now.

    Who would be so stupid to create recursive hardlinks? (I am not sure whether Windows allows to create recursive hardlinks at all?)

     

    And What does this have necessarily to do with Grep Search?

×