Jump to content

Shrinavat

Members
  • Content Count

    63
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Shrinavat


  1. Maybe the 'Allow tabs to use custom colors' option is like the Force in Star Wars - a mystical power that only a few chosen ones can truly understand and control. May the colors be with you, young Padawan. ...on a more serious note, has anyone cracked the code on how to actually use this mysterious option? Does anyone actually know how to change the tab colors?

     

    tab1.png


  2. Quote

    Allow tabs to use custom colors Enabled by default. This option allows you to activate the custom colors support in the editor tabs.

    What is the purpose of this feature? How can I change the color of the tab in the code editor? I am unable to find an option to modify the color in the tab settings.

    tabs.png


  3. Upon each launch of IDE, the Component Palette panel consistently shifts to the right by a specific distance. This behavior requires me to manually drag the panel back to its original position on the left side every time I start Delphi 12.
    Additionally, I have observed that the "Lock Controls" icon from the "View" toolbar disappears. I have manually added this icon to the toolbar, but it vanishes. It reappears only after selecting the same action through the "Edit|Lock Controls" menu. I have attached a screenshot illustrating the issue.

     

    I would like to inquire if there is a solution or workaround to address this problem. Is there a way to lock or fix the position of the Component Palette panel, so it remains in place across Delphi 12 sessions?

    Additionally, I am curious about where the configuration data for the panel's position is stored. Does Delphi 12 save this information in the registry, a configuration file, or elsewhere?

    screenshot.png


  4. I've found the source of the problem. It turned out to be third-party components - ESBPCS for VCL. If they are disabled, then the problem disappears. As @balabuev rightly pointed out, here's what's to blame: "Non-standard property editors are installed. More technically, this happens when a property editor implements the ICustomPropertyDrawing interface but does not implement the more recently introduced ICustomPropertyDrawing80 interface."
    The developer of these components has already been notified.

    • Like 2
    • Thanks 1

  5. I'm encountering a problem with the color names in freshly installed Delphi 12, and this issue also existed in Delphi 11.x. The problem is observed as a text "overlay" in any Object Inspector field related to color, as illustrated in the attached animation. It seems to occur regardless of whether any experts or updates are installed. How can I address this issue?

    animation.gif


  6. I recently installed RAD Studio 12 Pro with Delphi. Now a ProjectName.dsv file is being created in the project folder. What is this, and how can I disable the creation of this file? Here's what its contents look like for example:
     

    [ClosedView_RDpcRGVscGhpX3Byb2plY3RzXENhbGxDZW50ZXJcQ2FsbENlbnRlci5kcHI=]
    Module=D:\Delphi_projects\CallCenter\CallCenter.dpr
    CursorX=1
    CursorY=18
    TopLine=1
    LeftCol=1
    Elisions=
    Bookmarks=
    EditViewName=D:\Delphi_projects\CallCenter\CallCenter.dpr
    [ClosedView_RDpcRGVscGhpX3Byb2plY3RzXENhbGxDZW50ZXJcX3VuaXRzXGZyYW1lc1xmclJlcG9ydF9UcmFu
    c2ZlcnJlZFRvQW5vdGhlckRlcGFydG1lbnQucGFz]
    Module=D:\Delphi_projects\CallCenter\_units\frames\frReport_TransferredToAnotherDepartment.pas
    CursorX=1
    CursorY=1
    TopLine=1
    LeftCol=1
    Elisions=
    Bookmarks=
    EditViewName=
    [ClosedView_RDpcRGVscGhpX3Byb2plY3RzXENhbGxDZW50ZXJcX3VuaXRzXGZvcm1zXGZybVJlZmVyZW5jZS5w
    YXM=]
    ...

     


  7. On 3/21/2023 at 12:51 AM, rgdawson said:

    The new editor feature that highlights words that you select where visible elsewhere in the editor causes the editor to scroll unexpectedly if you are using folding, which I do, so I had to disable that feature.

    Yes, I also turned off this feature because of the spontaneous jumps of the text. It's very annoying. Is there any RSP about this?

    • Like 1

  8. Hello,

    I know there are advanced Clever Internet Suite users here who might be able to help me with advice.

    To send an image to a Telegram channel, I use the following code:

    const
      urlTGSendPhoto   = 'https://api.telegram.org/bot%s/sendPhoto';
      BOT_API_KEY      = 'xxxxxxxxxxxxxx';
      CHANNEL_NAME     = 'xxxxxxxxxxxxxx';  
    ...
    clHttpRequest.AddFormField('chat_id', CHANNEL_NAME);
    clHttpRequest.AddSubmitFile('photo', 'chart.png');
    var s := clHttpTG.Post(Format(urlTGSendPhoto, [BOT_API_KEY]), clHttpRequest);

    where 'chart.png' is the name of the image file on disk. It works great.

    Can someone please tell me how to use a stream (TMemoryStream/TFileStream) or TPngImage/TJPEGImage/TBitmap instead of a file (that is, without the need to save the file to disk)?


  9. There is current code, in which I think the use of dictionaries is redundant:

    const
      N = $1;
      S = $2;
      E = $4;
      W = $8;
      
    var
      DX, DY, OPPOSITE: TDictionary<Integer, Integer>;
    
    // init dictionares
      DX := TDictionary<Integer, Integer>.Create;
      DX.Add(E, 1);
      DX.Add(W, -1);
      DX.Add(N, 0);
      DX.Add(S, 0);
      DY := TDictionary<Integer, Integer>.Create;
      DY.Add(E, 0);
      DY.Add(W, 0);
      DY.Add(N, -1);
      DY.Add(S, 1);
      OPPOSITE := TDictionary<Integer, Integer>.Create;
      OPPOSITE.Add(E, W);
      OPPOSITE.Add(W, E);
      OPPOSITE.Add(N, S);
      OPPOSITE.Add(S, N);
    
    // Usage of these dictionaries is shown below in the example code:
      var nx := x + DX[dir];  
      var ny := y + DY[dir];
      grid[ny, nx] := grid[ny, nx] or OPPOSITE[dir];

    To improve performance, I would like to avoid using dictionaries and use a simpler code instead... but I don't know which one?

    Any help in this arena would be greatly appreciated.

×