- This topic has 7 replies, 2 voices, and was last updated 15 years, 6 months ago by shadow_tj.
-
AuthorPosts
-
April 23, 2009 at 2:36 pm #32874shadow_tjParticipant
In the TsCurrencyEdit .. there is the option of GlyphMode.
there you can insert glyphs for the button.also the button can be enabled and disabled.
only when i insert a glyph.. i see no button.is this a bug in TsCurrencyEdit ??
Using sources of AlphaSkin 6.22
in the version 5.23 there where some errors with Height and Width. … that glyps height and wide are /3 … but thats been fixed now.
but that works now for the TsCustomComboEdit.But deeep deep inside the TsCurrencyEdit.. the ancester is also TsCustomComboEdit.
but there i can not show buttons in the edit..April 23, 2009 at 2:42 pm #38801shadow_tjParticipantwhat i can see is that the Button Height and width are screwed.
when i set them manual.. the i can set them back toheight := 16;
width := 16;only problem is the left… looks like the speedbutton is 8 pixels to far to the right side.
April 23, 2009 at 3:04 pm #38804SupportKeymasterHello
Button is not drawn in this control, only glyph.
Maybe button drawing will be added later (will be enabled optionally)April 24, 2009 at 7:47 am #38811shadow_tjParticipantprehaps 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
April 27, 2009 at 7:43 am #38814SupportKeymasterThank 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.May 4, 2009 at 8:47 am #38960shadow_tjParticipantthis is not fixed yet in 6.31 ??
because i still have the problem with the 6.31 releaseMay 4, 2009 at 9:03 am #38962shadow_tjParticipantfound 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 ?May 4, 2009 at 10:04 am #38964shadow_tjParticipantok 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. -
AuthorPosts
- You must be logged in to reply to this topic.