Re-re-hello code dz.
It seems that the problems come from procedure tstatfile.readstat(const
stream: ttextstream = nil);
That method uses ttextstream that is THandleStream descendant.
So maybe we have to check what fpc did change to THandleStream or one of his
descendant in last commits.
But how
Hello Med.
As work around, I would do this:
- Add a ATLabel somewhere, set to autosize = true and visible = false.
When you need to know the width of a character:
ATlabel.font := theObject.frame.font;
ATlabel.font.height := theObject.frame.font.height;
ATlabel.font.width := theObject.frame.fon
> Suppose you have a simplewidget with bound_x=490, If you want to fill
it's frame.caption with '-'
> the number of chars must be 125
> then the width of char is 490/125=3,92 wich is not the width of the
> font?
Ha, ok,I see, it should work only with font with fixed width.
Sorry but
Re-hello code dz.
I did compile last (?) fpc trunk Rev 42482.
Did compile mseide with it on Linux 64 bit.
And now, like you explained, also on Linux 64, there are problems with
view-layout.
It is like fpc did change the behavior in file-list in directory.
;-( x 1000.
Aaaargh + mama mia.
Hi Fredv,
Suppose you have a simplewidget with bound_x=490, If you want to fill
it's frame.caption with '-' the number of chars must be 125
then the width of char is 490/125=3,92 wich is not the width of the font?
Best Regards.
Med
De : fredvs
Envo
5 matches
Mail list logo