Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-06 Thread fredvs
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 to do that check with fpc?

Fre;D







--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Fonts

2019-08-06 Thread fredvs
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.font.width;
ATlabel.caption := '-'; 

width_of_char := ATlabel.width ;  > here the width you want.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Fonts

2019-08-06 Thread fredvs
>   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 I dont have any idea how to do it with font with variable width.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compilation error with FPC 3.2.0

2019-08-06 Thread fredvs
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.

The little (very little) good news is that it appends inside Rev 41903 and 
Rev 42482.

Huh, I did not catch how you did to fix it.

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Fonts

2019-08-06 Thread mohamed hamza
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 
Envoyé : lundi 5 août 2019 22:22
À : mseide-msegui-talk@lists.sourceforge.net 

Objet : Re: [MSEide-MSEgui-talk] Fonts

Hello Med.

> How to get font width and height in pixels  of an  object.frame.caption  ?

If a font was assigned in object.frame.font:  :

fontwidth := object.frame.font.width;
fontheight := object.frame.font.height;

It the font assigned is , you should check for the font used by
parent of the object.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk