Ray Konopka

Forum Replies Created

Viewing 15 posts - 166 through 180 (of 343 total)
  • Author
    Posts
  • Ray Konopka
    Keymaster

      What is the precise error message that is being displayed? A screenshot may be helpful.

      Also, how are you trying to install the package? Are you right-clicking on the package and selecting install? Or, are you using the Component > Install Packages dialog box?

      What does the Package1.dpk look like?

      Ray

      Ray Konopka
      Keymaster

        Hi Larry,

        From the information that you provided, the Package1.bpl appears to be referencing the RaizeComponentsVcl runtime package in the requires sections of Package1.dpk source file. BTW, I would strongly recommend changing the name of your package to something more useful.

        When Delphi tries to load Package1.bpl (the compiled package), the Windows loader will try to also load any dependent runtime packages. For example, vcl270.bpl and rtl270.bpl, as well as any other runtime packages that the package requires.

        What I am not so clear on is what version of Delphi you used to build the package? You stated that you were able to compile your package and it installed, but you are getting an error when you try to install it into 10.4. Compiled package files (i.e. *.bpl files) are not compatible between versions of Delphi. You will need to compile your custom package using 10.4.

        But as I said, I’m not too clear on just what is happening from what you posted. Another thing to check is to make sure that the KSVC Lib\RX10.4\Win32 directory is listed in your Delphi search path. Delphi will need this path in order to locate the RaizeComponentsVcl.dcp file.

        Ray

        in reply to: FormState Oddity #2616
        Ray Konopka
        Keymaster

          Hi Barry and Steve,

          I’ve been trying to duplicate the behavior you are describing but the TRzFormState component is working properly for me.

          If you create a brand new VCL Forms Application and drop a TRzFormState component along with a TRzRegIniFile component, connect the TRzFormState to the TRzRegIniFile and then run the app, does the form start up properly?

          I’m wondering if you both have code in your initialization or startup that is interfering with the TRzFormState component.

          Ray

          in reply to: ToolButton image disappears when pressed (ver. 7.0) #2615
          Ray Konopka
          Keymaster

            Hi Marek,

            I’m sorry to hear you are having issue with Embarcadero’s Quality Portal (i.e. Jira). I have not had those experiences.

            As for your fix, that is interesting. I’ll have to look more closely at the code when I get some time, but I find it odd that the PaintGradient call is causing the problem. I suspect it is masking something else.

            Ray

            in reply to: TRzBitBtn #2614
            Ray Konopka
            Keymaster

              Hi Ken,

              I found out from Marco Cantu at Embarcadero that bug reports for the KSVC can be entered using Quality Portal. Marco recommended adding “KSVC” in the title to help them filter for them since they do not have a specific category for the component library.

              Please fill out a Quality Portal (https://quality.embarcadero.com/secure/Dashboard.jspa) report for this issue so that Embarcadero can track it and fix it.

              Ray

              in reply to: TRzDBGrid.QuickCompare #2613
              Ray Konopka
              Keymaster

                Hi Peter,

                Sorry for the delay. You can get the value of other fields in the record by using the Column parameter. For example,

                var
                  GamesField: TField;
                begin
                  GamesField := Column.Field.DataSet.FieldByName( 'G' );
                  if GamesField.Value > 50 then 
                    . . .

                In this example, I have a grid displaying baseball statistics. Field G represents the number of games. I can use the Column parameter to get the field object of any other field I’m interested in. I do this to get the GamesField object, from which I can get the value and alter the appearance of the fields in that record appropriately.

                Ray

                in reply to: File Viewer “Save…” just saves #2612
                Ray Konopka
                Keymaster

                  Hi Hans,

                  For the upcoming 5.4 release, the Save menu item and button in the File Viewer displays the Save Dialog box so you can save the contents to a new file if you wish.

                  Ray

                  in reply to: “Methods -> Collapse All” hangs #2611
                  Ray Konopka
                  Keymaster

                    Hi Hans,

                    Thanks for the report. That’s a good catch. The issue has been fixed and will included in the upcoming 5.4 release.

                    Ray

                    in reply to: TRzDBGrid.QuickCompare #2598
                    Ray Konopka
                    Keymaster

                      Hi Peter,

                      The QuickCompare functionality is designed to test a condition for each row and if the condition is met, the row is colored using the QuickCompare.Color value. As such, it really is not designed to handle what you are suggesting.

                      Allowing multiple conditions would be a way to handle that, but that would require changing the QuickCompare property to a collection. It is certainly something that you should request from Embarcadero. (BTW, I’m trying to find out from Embarcadero, what is the property way customers can submit bug reports and enhancement requests for the KSVC. I’ll post my findings in this forum).

                      As an alternative, you may be able to accomplish what you wish by handling the OnDrawColumnCell event.

                      Ray

                      in reply to: ToolButton image disappears when pressed (ver. 7.0) #2597
                      Ray Konopka
                      Keymaster

                        Hi Marek,

                        Thanks for the report. I am able to duplicate the issue. I’ll have to dig into the changes that Embarcadero made for version 7 to see what is going on. I am also finding out from Embarcadero how customers should report bugs (like this) on the components.

                        Ray

                        in reply to: Alternate Row Shading problem #2596
                        Ray Konopka
                        Keymaster

                          Hi Barry,

                          First of all, I want to apologize for what happened to this post and your other one on the same topic. I’m still not entirely sure how it happened, but your two posts were flagged by the forum software that our site uses and required approval before being published. Unfortunately, I missed the notification and noticed them when I was doing some site maintenance.

                          As for the behavior that you are reporting, that is actually coming from the lower-level TCustomGrid code and the default setting for DrawingStyle of gdsThemed. The low-level code is blending the highlight color with the color of the cell, which is resulting in the darker blue color for the shaded cells.

                          To work around this, you can try using a different setting for DrawingStyle, or write an event handler for the OnDrawColumnCell event. For example,

                          procedure TForm16.RzDBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn;
                            State: TGridDrawState);
                          begin
                            if gdSelected in State then
                            begin
                              RzDBGrid1.Canvas.Brush.Color := clRed;
                              RzDBGrid1.Canvas.Font.Color := clWhite;
                            end;
                            RzDBGrid1.DefaultDrawColumnCell( Rect, DataCol, Column, State );
                          end;

                          The above code will result in the selected row always being displayed as white text on a red background.

                          Ray

                          in reply to: TRzBitBtn #2595
                          Ray Konopka
                          Keymaster

                            Hi Ken,

                            I have been unable to duplicate the behavior you show in your screenshots. Are you able to duplicate the issue in a test project? It appears that you have HotTrack turned on, but you must also have the ThemeAware property turned off. What I do not know is if you are using a VCL style for the rest of the form, etc.

                            Ray

                            in reply to: TRzMenuController – UseMenuColorForMainMenu #2571
                            Ray Konopka
                            Keymaster

                              Hi,
                              Thanks for the post. Since Embarcadero owns the controls, I would suggest submitting a bug or enhancement request for them to fix this. Also, I’m not sure if the code you posted is complete. I’m not sure where Form is defined.

                              Ray

                              in reply to: Order of Status Bar Panes. #2570
                              Ray Konopka
                              Keymaster

                                Hi Steve,

                                The TRzStatusBar uses the built-in Align functionality to manage the positions of the status panes. The panes are separate controls and their position is defined by the Align property and their relative location to the other status panes. This is essentially no different than a panel with a bunch of labels (or other controls) with their Align properties set.

                                With that said, in the VCL it is possible for controls to be repositioned relative to other controls that have the same Align value. Typically, this happens when controls are dynamically created, or the size of the control is changed at startup.

                                The easiest way to fix the order is to set the Left property of the out of order control. Suppose Pane6 appears to the left of Pane5. To move Pane6, set Pane6.Left := Pane5.Left + 1; By change the Left property, the VCL will re-align the controls and position Pane6 to the right of Pane5.

                                Hope this helps.
                                Ray

                                Ray Konopka
                                Keymaster

                                  Hi Steve,

                                  Unfortunately, not directly using the component. The Custom Framing properties (e.g. FrameVisible) will affect the frame of the control, but the client area is managed by Windows and it treats the csDropDownList style as special.

                                  Now, as an alternative, you could use a custom VCL style for the combo box and get the appearance you are looking for. The new per-control VCL Styling could be very useful in this case where you could just customize the particular combo box that you are trying to color.

                                  Ray

                                Viewing 15 posts - 166 through 180 (of 343 total)