Jump to content

Uwe Raabe

Members
  • Content Count

    2961
  • Joined

  • Last visited

  • Days Won

    172

Everything posted by Uwe Raabe

  1. Uwe Raabe

    Better TStringList in Spring4D or elsewhere

    I cannot see your new entry either. To make an issue visible to others one should leave the Share with at Share with Embarcadero Customers. You should be able to change that even for your exiting issues to add this group in case it is missing.
  2. Uwe Raabe

    A smart case statement in Delphi?

    You don't even have to provide that function as long as the strings matches the enum identifiers: s := 'three'; case TRttiEnumerationType<TMyStrings>.GetValue(s) of zero: writeln('zero'); one: writeln('one'); two: writeln('two'); three: writeln('three'); four: writeln('four'); end; Or if you prefer a more readable approach: type TMyStrings = (zero, one, two, three, four); TMyStringsHelper = record helper for TMyStrings public class function FromString(const AString: string): TMyStrings; static; end; class function TMyStringsHelper.FromString(const AString: string): TMyStrings; begin Result := TRttiEnumerationType.GetValue<TMyStrings>(AString); end; ... var s := 'three'; case TMyStrings.FromString(s) of zero: writeln('zero'); one: writeln('one'); two: writeln('two'); three: writeln('three'); four: writeln('four'); else Writeln('What?'); end;
  3. Isn't that what Attach to process is for?
  4. Uwe Raabe

    Define conditional symbol in .dpr

    The point is not to prove that it works or that it doesn't, but to find out when it works and when not.
  5. That crashes when Foo = nil and Short-Circuit Boolean Evaluation is off.
  6. Uwe Raabe

    what wrong with this function?

    As mentioned elsewhere, you need to show more code that is before the function. The function code is correct, it is something before it that makes the compiler unhappy.
  7. As the error report mentions a missing radconsole subfolder in that URL, it may as well be an error in the sources affecting all target platforms.
  8. AFAIK, the path to the database is configured in emsserver.ini
  9. Sounds like this one: RSP-40290 - RAD Server Console DLL not working
  10. Uwe Raabe

    FMX Linux - the product and the company

    Not according to the feature matrix:
  11. Uwe Raabe

    FMX Linux - the product and the company

    The reason why FMX Linux is only available for Enterprise and Architect is, that those are the versions targeting Linux as a target platform. With a Professional version you can't compile code for Linux.
  12. Uwe Raabe

    BDE

    It has it when I connect from here: Perhaps it depends on the license and active subscription status. AFAIK, there is no other official way to download it than my.embarcadero.com.
  13. Uwe Raabe

    Rotate a cube to align with a 3D line

    I didn't say anything about X:
  14. Uwe Raabe

    bpl module can't be found

    Make sure that the DLL can be found.
  15. Uwe Raabe

    Rotate a cube to align with a 3D line

    The CreateXX are class functions. Therefore they don't change LocalMatrix itself, but return a new matrix instead. I'm not sure if I understand you right, but it might be sufficient to set the RotationAngle of the StrokeCube according to the vector V between those two spheres. The Y value should get the angle (in degrees) in the X/Z plane, while the Z value should get the inclination angle to that plane (not tested).
  16. Uwe Raabe

    TStyleManager.ActiveStyle...

    When working with styles, the Color property of the form is ignored. Unless seClient is removed from its StyleElements property, the forms client space is controlled by the style.
  17. Uwe Raabe

    TStyleManager.ActiveStyle...

    A TCustomPanel is not filled with a color, but with part of the style bitmap (defined in the GroupBox.Frame object). In a lot of cases this may be similar to a solid color, but it can as well be some texture or even a transparent area for some styles like Amakrits. You might really get the best results with setting the labels Transparent property to True.
  18. Uwe Raabe

    TStyleManager.ActiveStyle...

    What type of control is the Parent of the label (TForm, TPanel,...)?
  19. Uwe Raabe

    TStyleManager.ActiveStyle...

    See here: Update: You can see what colors are returned here: function TUxThemeStyle.DoGetStyleColor(Color: TStyleColor): TColor; begin case Color of scBorder: Result := clWindowFrame; scButtonDisabled: Result := clBtnFace; scButtonFocused: Result := clBtnFace; scButtonHot: Result := clBtnFace; scButtonNormal: Result := clBtnFace; scButtonPressed: Result := clBtnFace; scCategoryButtons: Result := clBtnFace; scCategoryButtonsGradientBase: Result := $C0C0C0; scCategoryButtonsGradientEnd: Result := $F0F0F0; scCategoryPanelGroup: Result := clMedGray; scComboBox: Result := clWindow; scComboBoxDisabled: Result := clWindow; scEdit: Result := clWindow; scEditDisabled: Result := clWindow; scGrid: Result := clWindow; scGenericBackground: Result := clBtnFace; scGenericGradientEnd: Result := $C0C0C0; scGenericGradientBase: Result := $F0F0F0; scHintGradientBase: Result := clInfoBk; scHintGradientEnd: Result := clInfoBk; scListBox: Result := clWindow; scListBoxDisabled: Result := clWindow; scListView: Result := clWindow; scPanel: Result := clBtnFace; scPanelDisabled: Result := clBtnFace; scSplitter: Result := clWhite; scToolBarGradientBase: Result := $C0C0C0; scToolBarGradientEnd: Result := $F0F0F0; scTreeView: Result := clWindow; scWindow: Result := clBtnFace; else Result := clNone; end; end;
  20. Uwe Raabe

    TStyleManager.ActiveStyle...

    That depends on the definition of correct.
  21. Uwe Raabe

    Inactive selection color in code explorer

    As I never use any dark theme myself I am thankfully not affected. Nevertheless, I would rather question the decision to make clBtnFace and clWindow looking quite similar in the dark theme, while they give a perfect contrast in the light theme.
  22. Uwe Raabe

    Inactive selection color in code explorer

    I did some deeper investigation not concentrating on the colors itself and it turned out that HideSelection was True under some conditions. I fixed that in the latest beta. Can you please try and see if this helps a bit?
  23. Uwe Raabe

    Inactive selection color in code explorer

    That would require to configure this color for all possible themes. The IDE comes with three, but works with any valid VCL style. The better approach would be to select a VCL style that matches your preference. This would even work without fiddling around with the MMX sources Another approach would be to file a feature request to change the standard themes color to something more visible. The problem with that is, that it is hard to show with a vanilla IDE installation.
  24. Uwe Raabe

    Inactive selection color in code explorer

    Short answer: It doesn't use any color. The colors are intrinsic to a the selected IDE theme and not part of MMX. The difference you see in the selected colors are caused by comparing different controls. MMX uses a derived TListView for the members and TTreeView for the content, while the IDE uses a special VirtualTree version. Each have separate colors inside a theme. I'm not aware that TTreeView or TListView are used elsewhere in the IDE, which may explain why nobody complained about these colors up to now.
  25. Uwe Raabe

    {$IFNDEF broken?

    Looks here as expected:
×