Martin Schreiber | 1 Mar 07:34 2011
Picon

Re: So many heavy changes :)

On Monday, 28. February 2011 20.25:34 IvankoB wrote:
>
> > Interestingly even "modern" X.Org
> > implementations (example current Ubuntu) are noticeable slower than the
> > old
> > XFree86 of Suse 9.0.
>
> There's DirectFB technology for instant response graphics. Seems to be
> widely used in embedded devices.
> And there's DirectFB Xorg server to run X-apps under that ( though
> obsoletes to latest Xorg).
>
I did not mean running OpenGL on X but normal X11 applications. For example 
MSEgui X11 applications are noticeable slower on current Ubuntu than on old 
Suse 9.0. Drawing on Suse 11.3 is faster than Ubuntu but still slower than 
Suse 9.0 .

Martin
Smile Girl | 1 Mar 09:42 2011
Picon

Limit number of decimal places in trealdisp:

  Hi,
        Is there any format specifiers in fpc?

How do I limit the number of decimal places?
Its like I divide a number with another, for eg if I get 1.23456,
I want to do display only 1.23 in trealdisp..
How can I do this?

Thanks
Smile :-)
Julio Jiménez | 1 Mar 09:56 2011
Picon

Re: Limit number of decimal places in trealdisp:

Using trealdis  you can format the output. If you want to display only two decimals, select your trealdis widget and in object inspector set the property 'format' to 0.00  this will render only two decimals.

Keep in mind, in this way you aren't limiting the number of decimals (you are only limiting the number of decimals shown). It depends of the real type used. You can take a look here: http://www.freepascal.org/docs-html/ref/refsu6.html#x28-310003.1.2  and for float formating, here: http://www.freepascal.org/docs-html/rtl/sysutils/formatfloat.html

Cheers.


Julio


2011/3/1 Smile Girl <smilling.girl26-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
 Hi,
       Is there any format specifiers in fpc?

How do I limit the number of decimal places?
Its like I divide a number with another, for eg if I get 1.23456,
I want to do display only 1.23 in trealdisp..
How can I do this?



Thanks
Smile :-)
_______________________________________________
MSEide-MSEgui-talk mailing list
MSEide-MSEgui-talk <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk

<div>
<p>Using trealdis&nbsp; you can format the output. If you want to display only two decimals, select your trealdis widget and in object inspector set the property 'format' to 0.00&nbsp; this will render only two decimals.<br><br>
Keep in mind, in this way you aren't limiting the number of decimals (you are only limiting the number of decimals shown). It depends of the real type used. You can take a look here: <a href="http://www.freepascal.org/docs-html/ref/refsu6.html#x28-310003.1.2">http://www.freepascal.org/docs-html/ref/refsu6.html#x28-310003.1.2</a>&nbsp; and for float formating, here: <a href="http://www.freepascal.org/docs-html/rtl/sysutils/formatfloat.html">http://www.freepascal.org/docs-html/rtl/sysutils/formatfloat.html</a><br><br>Cheers.<br><br><br>Julio<br><br><br></p>
<div class="gmail_quote">2011/3/1 Smile Girl <span dir="ltr">&lt;<a href="mailto:smilling.girl26 <at> gmail.com">smilling.girl26@...</a>&gt;</span><br><blockquote class="gmail_quote">
 &nbsp;Hi,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Is there any format specifiers in fpc?<br><br>
How do I limit the number of decimal places?<br>
Its like I divide a number with another, for eg if I get 1.23456,<br>
I want to do display only 1.23 in trealdisp..<br>
How can I do this?<br><br><br><br>
Thanks<br>
Smile :-)<br>
_______________________________________________<br>
MSEide-MSEgui-talk mailing list<br><a href="mailto:MSEide-MSEgui-talk@...">MSEide-MSEgui-talk <at> lists.berlios.de</a><br><a href="https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk" target="_blank">https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk</a><br>
</blockquote>
</div>
<br>
</div>
Christian Nobel | 1 Mar 13:45 2011
Picon

Form on top/front Windows.

Hi.

Having an application where I first have a login/splash which after
login opens the mainform.

In Linux the mainform is on top, but in windows the mainform opens below
other Windows applications.

How do I ensure that the application is in front? - mainfo.bringtofront
does not make any difference in this game.

/Christian

Julio Jiménez | 1 Mar 14:01 2011
Picon

Re: Form on top/front Windows.

I usually open first main form and then the login dialog in modal mode.. after connected or not connected..., I do changes in main menu to hide or show the desired options.. it seems you do it different. I have no problems with windows order in linux or windows.

2011/3/1 Christian Nobel <chr.nobel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Hi.

Having an application where I first have a login/splash which after
login opens the mainform.

In Linux the mainform is on top, but in windows the mainform opens below
other Windows applications.

How do I ensure that the application is in front? - mainfo.bringtofront
does not make any difference in this game.

/Christian

_______________________________________________
MSEide-MSEgui-talk mailing list
MSEide-MSEgui-talk <at> lists.berlios.de
https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk

<div>
<p>I usually open first main form and then the login dialog in modal mode.. after connected or not connected..., I do changes in main menu to hide or show the desired options.. it seems you do it different. I have no problems with windows order in linux or windows.<br><br></p>
<div class="gmail_quote">2011/3/1 Christian Nobel <span dir="ltr">&lt;<a href="mailto:chr.nobel@...">chr.nobel@...</a>&gt;</span><br><blockquote class="gmail_quote">
Hi.<br><br>
Having an application where I first have a login/splash which after<br>
login opens the mainform.<br><br>
In Linux the mainform is on top, but in windows the mainform opens below<br>
other Windows applications.<br><br>
How do I ensure that the application is in front? - mainfo.bringtofront<br>
does not make any difference in this game.<br><br>
/Christian<br><br>
_______________________________________________<br>
MSEide-MSEgui-talk mailing list<br><a href="mailto:MSEide-MSEgui-talk@...">MSEide-MSEgui-talk <at> lists.berlios.de</a><br><a href="https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk" target="_blank">https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk</a><br>
</blockquote>
</div>
<br>
</div>
Martin Schreiber | 1 Mar 14:16 2011
Picon

Re: Form on top/front Windows.

On Tuesday 01 March 2011 13:45:23 Christian Nobel wrote:
> Hi.
>
> Having an application where I first have a login/splash which after
> login opens the mainform.
>
> In Linux the mainform is on top, but in windows the mainform opens below
> other Windows applications.
>
> How do I ensure that the application is in front? - mainfo.bringtofront
> does not make any difference in this game.
>
Is the mainform focused?

Martin
Christian Nobel | 1 Mar 14:20 2011
Picon

Re: Form on top/front Windows.

On 01-03-2011 14:16, Martin Schreiber wrote:

> Is the mainform focused?

mainfo.setfous; after finishing the login procedure did the trick.

Thanks

/Christian

Julio Jiménez | 1 Mar 16:08 2011
Picon

Re: Form on top/front Windows.

Arg.. sorry.. you were talking about the splash, not login windows :D

<div><p>Arg.. sorry.. you were talking about the splash, not login windows :D<br></p></div>
IvankoB | 1 Mar 17:22 2011
Picon

Re: So many heavy changes :)

> I did not mean running OpenGL on X but normal X11 applications. For  
> example
> MSEgui X11 applications are noticeable slower on current Ubuntu than on  
> old
> Suse 9.0. Drawing on Suse 11.3 is faster than Ubuntu but still slower  
> than
> Suse 9.0 .
>
>

Sounds like at least You want to compensate that performance impact :)
And to reuse extreme calculating power of modern GPUs otherwise mostly  
idle.

Sri Wahono | 1 Mar 22:22 2011
Picon

New Repaz updated!

I change all printing and exporting with libcairo, currently OSPrinter
is deleted and I create new component TUniversalPrinter. This new
component can print in Windows GDI printer, CUPS, export to PDF, PNG,
SVG and PostScript. It's only 2 file (as IvankoB like) :)

All unproportional drawing in printer is fixed now with all printer
type, except in printing text in dot matrix printer, but it can fixed
with check "Print text as graphic" in printer dialog.
But for RAW printing all is OK.

Hi Martin, but I got some trouble. I hope you can help :
1) I can translate gui_fillarc in libcairo, I try with some way but
still got problem, but in gui_drawarc it's OK. Please you update from
SVN and open RepazDemo.
* "Connect DB", choose "Chart" from repaz file, than click preview.
* please you click in chart area in preview form to change chart type
to Pie Chart.
* export it as PDF os PS.
* The pie chart is different with preview. But if you set unactive in
cairo_fillarc procedure, you can see in draw arc is OK.

2) What is graphic type in stockbitmapty?
I got different result in PDF and PostScript, but with some procedure
(cairoimage), I can convert tsimplebitmap to cairo image.

Thanks

Wahono

Gmane