Jump to content

Tommi Prami

Members
  • Content Count

    511
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Tommi Prami


  1. Thanks man, I'll check...

    Gort to make couple of changes to make it compile, weirdly it did not allow me to assign Returned rect to result.


    Type in Delphi seems to be TMenuBarInfom and last parameter of GetMenuBarInfo is defined as Var-parameter. So I think I'll have to pass the whole record, not just pointer.

     

     

    function GetWindowMenuItemRect(const AHandle: THandle; const AIndex: Integer): TRect;
    var
      LMenuBarInfo: TMenuBarInfo;
    begin
      FillChar(LMenuBarInfo, SizeOf(LMenuBarInfo), 0);
      LMenuBarInfo.cbSize := SizeOf(LMenuBarInfo);
      {$WARN SYMBOL_PLATFORM OFF}
      Win32Check(GetMenuBarInfo(AHandle, Integer($FFFFFFFD), AIndex, LMenuBarInfo));
      {$WARN SYMBOL_PLATFORM ON}

      Result.Top := LMenuBarInfo.rcBar.Top;
      Result.Left := LMenuBarInfo.rcBar.Left;
      Result.Height := LMenuBarInfo.rcBar.Height;
      Result.Width := LMenuBarInfo.rcBar.Width;
    end;

     

    It just gives me System Error.  Code: 1400. Invalid window handle
     

    Tried to pass Windows Handle, MenuITems handle, did not Accept it... 😞

    Weird. 

     

    -Tee-


  2. I think this comes (also) down to how expensive is getting Default Value. If just Constant or some simple value, then it is not an problem, But if it's anything more complicated, then it could be pretty slow if there is significant instances of other than default.


  3. I believe Embarcadero acquired rights to Ide FIX pack and changes are added to IDE it self, embarcadero only knows which ones and how tough...

     

    Andy is now trying to make DDevExtensions for Rio, but had some problems with debugging Ide bpls, I think I saw tweet yesterday.

     

    -Tee-


  4. 19 hours ago, pyscripter said:

    This is a very promising change in Windows.  However right now it breaks many things including Excel addins.

    Sure is, but in other hand, why not use "Unicode API" at first place.

     

    I would guess  they use Ansi API just as proxy to and from Unicode UTF16 API.  

    SomeWindowsApiA -> String Conversion to UTF16 -> SomeWindowsApiAW 

    Have not checked, just my hunch...

    In other hand If they have UTF-8 enabled API that is not just proxy to Wide API, then it could provide speed improvement if App uses UTF-8 strings.


  5. Wiki Article of the Change

    https://en.wikipedia.org/wiki/Unicode_in_Microsoft_Windows#cite_note-10

     

    One of out customer had selected that and we started to experience very weird problems and took some time to find out why it misbehaves.

    None of the application could connect to Firebird SQL server (Ours or third party) successfully.

    So would be smart to go through all tooling and code with that setting, we never know what M$oft will do with that, will it ever be released or will it soon be default for all.

     

    One coder switched this on and started to get weird results, he could not specify what all symptoms, but said that lot of work to be done before that setting can be enabled.

    Could be smart to Check how your environment, tools and code will behave.

    MicrosoftRegionalSettingsBetaFeature.png

    • Like 2

  6. Might be pretty difficult to make it but sometimes  I've been pondering what would be quick way.

    1. Get screenshot of the Form
    2. Paint line(s) in order you'd like tabs go.

    Not best in all cases, but many it would be super fast. 

     

    -Tee-

     


  7. On 11/2/2018 at 3:41 PM, Johan Bontes said:

    What does that mean? Do you want a Pascal parser, or an any/all language parser?

    The former exists, the latter does not.

    Obviously there are parsers for other languages, just not one parser for every language.

     

    There is however Langserver   you might want to have a look at that.

    OK, i'll rephrase 🙂

     

    Any syntax chosen. Forgot abo8ut DelphiAST, that could be first stepping stone to look from.

     

    I've just been thinking that would be cool to study how it is done, and maybe do some small app in the process.

     

    -Tee-

     


  8. Once tried to do something like this on FMX, 1. Could not get it to look right 2. Was so much work. 

     

    Memory of the process is very vague, tried to make some style thingy and use that.

     

    My observation was so that some things on Fmx are very complicated. Easier to make style than totally new VCL component with similar support build in, maybe. it depends I guess.

     

    Should give fmx a new change, do simple project with it.

     

    -Tee-

×