TsCurrencyEdit … no display of glyph button

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #38801
    shadow_tj
    Participant

      what i can see is that the Button Height and width are screwed.
      when i set them manual.. the i can set them back to

      height := 16;
      width := 16;

      only problem is the left… looks like the speedbutton is 8 pixels to far to the right side.

      #38804
      Support
      Keymaster

        Hello
        Button is not drawn in this control, only glyph.
        Maybe button drawing will be added later (will be enabled optionally)

        #38811
        shadow_tj
        Participant

          prehaps im not clear on describing the problem.
          drawing the glyph is not working… height width are screwed… got a 2pixel height speedbutton.

          also got a piece of example code, that can explain a lot more then i can write down.

          Also the left of the speedbutton is bit strange… looks like it 8 pixels to far to the right side.

          greetings,

          Shadow_tj

          #38814
          Support
          Keymaster

            Thank you very much for demo, I understand a problem now <img src="style_emoticons//smile.gif” style=”vertical-align:middle” emoid=”:)” border=”0″ alt=”smile.gif” />
            Problem will be solved in the v6.31 I think.

            #38960
            shadow_tj
            Participant

              this is not fixed yet in 6.31 ??
              because i still have the problem with the 6.31 release

              #38962
              shadow_tj
              Participant

                found a strange thing…

                constructor TsCurrencyEdit.Create(AOwner:TComponent);
                begin
                inherited Create(AOwner);
                SkinData.COC := COC_TsCurrencyEdit;
                Width := 80;

                ControlState := ControlState + [csCreating];
                try
                Button.Parent := nil;
                Button.Width := 0;
                Button.Parent := Self;
                finally
                ControlState := ControlState – [csCreating];
                end;
                end;

                In the create of TsCurrencyEdit …. the button width is set to 0
                where is the button height and width set back to original size ??

                When the glyphmode is set, and a imageindex > -1 then the
                button should be shown … or is this more a hidden feature that im now trying to use ?

                #38964
                shadow_tj
                Participant

                  ok found out…

                  in the scurEdit is another component that draws a speedbutton.
                  TsCalcEdit is drawing its button but the sCurrencyEdit is not.

                  Looking close at the TsCalcEdit i noticed a differance between the 2.

                  TsCalcEdit has a line in the Create.

                  FDefBmpID := iBTN_CALC;

                  the CurrencyEdit has no FDefBMPID … when inserting this line to the create of the currencyedit.
                  then i can draw a button, if i remove this.. no more buttons.

                  Now is the question… is the CalcEdit the same as a CurrencyEdit ?
                  Differance is only a button…. because then is my problem solved.
                  and then i need to use the CalcEdit instead of the CurrencyEdit.

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.