Re: [MSEide-MSEgui-talk] Fonts

2022-09-23 Thread mohamed hamza
Hi Sieghard,


I agree with you. Behind each development system there is a team responsible

only for documentation and training, it would have been too much to ask to one 
person:Martin.


Regards.


Med.


De : Sieghard via mseide-msegui-talk 
Envoyé : mercredi 21 septembre 2022 19:56
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hallo mohamed hamza,

you wrote at Wed, 21 Sep 2022 10:36:20 +:

>   My question is about MseIde Guide.  In Fact, before Searching
> ( find in file: SumField ) in MseIde.lib the programmer have to know
> that this function exists !!! .That'why I believe there are other
> hiden procedures /  functions .

Sure, but they're not HIDDEN, they're just not (yet) documented. Please
keep in mind that mseide-msegui was the project of ONE SINGLE MAN quite
a time of its development, and when made public, mostly got feature
requests and very few contributions. Admittedly, the author (Martin)
usually fended off attempts from others to interfere with his
constructs. But as mostly developers, notoriously unwilling to
document (I know that, I do develop software myself), were the
participants of the development mailing lists, documentation remained
quite sparse...
In addition to the great documentation of Roland Chastin I mentioned,
there were a couple others as well, e.g. a contribution using the
"ancient" OS/2 help format by Graeme Geldenhuis (who seems to have
disppeared from here) and a PDF from Fred van Stappen, along with some
basic description from Martin Schreiber himself.
Anyway, writing REAL documentation for this project will be a
MONUMENTAL project by itself, regarding the amount of code to describe,
and describe in a way that makes it obvious how to make use of it.
(BTW, the latest original version from Martin himself, 4.6.2 (I suppose
this IS original) comprises nearly 80MBytes of stuff, mainly code, with
the IDE amounting to well over 4MBytes and the library to 20MBytes.
And then there are around 31MBytes of "tools" as well.)

Yes, that's no base for easy-going programming, but it's very capable,
somewhat ideosyncratic, and still quite simple to use for not really
exotic tasks.
But as with any programming system, "your mileage may vary".
(Sorry for the long sermon.)

--
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---



___
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


Re: [MSEide-MSEgui-talk] Fonts

2022-09-21 Thread Sieghard via mseide-msegui-talk
Hallo mohamed hamza,

you wrote at Wed, 21 Sep 2022 10:36:20 +:

>   My question is about MseIde Guide.  In Fact, before Searching
> ( find in file: SumField ) in MseIde.lib the programmer have to know
> that this function exists !!! .That'why I believe there are other
> hiden procedures /  functions .

Sure, but they're not HIDDEN, they're just not (yet) documented. Please
keep in mind that mseide-msegui was the project of ONE SINGLE MAN quite
a time of its development, and when made public, mostly got feature
requests and very few contributions. Admittedly, the author (Martin)
usually fended off attempts from others to interfere with his
constructs. But as mostly developers, notoriously unwilling to
document (I know that, I do develop software myself), were the
participants of the development mailing lists, documentation remained
quite sparse...
In addition to the great documentation of Roland Chastin I mentioned,
there were a couple others as well, e.g. a contribution using the
"ancient" OS/2 help format by Graeme Geldenhuis (who seems to have
disppeared from here) and a PDF from Fred van Stappen, along with some
basic description from Martin Schreiber himself.
Anyway, writing REAL documentation for this project will be a
MONUMENTAL project by itself, regarding the amount of code to describe,
and describe in a way that makes it obvious how to make use of it.
(BTW, the latest original version from Martin himself, 4.6.2 (I suppose
this IS original) comprises nearly 80MBytes of stuff, mainly code, with
the IDE amounting to well over 4MBytes and the library to 20MBytes.
And then there are around 31MBytes of "tools" as well.)

Yes, that's no base for easy-going programming, but it's very capable,
somewhat ideosyncratic, and still quite simple to use for not really
exotic tasks.
But as with any programming system, "your mileage may vary".
(Sorry for the long sermon.)

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---



___
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

2022-09-21 Thread Sieghard via mseide-msegui-talk
Hallo Fred van Stappen,

vous ecrit au Wed, 21 Sep 2022 13:27:16 +:

> > here IS some code documentation, provided by Roland Chastain (also
...
> The sites are (with a "l" at end):

Oh, sorry, I must have lost them when I copied it from a former posting
of yours. Thank you for the correction.

(I'd like to get it for local use and perhaps conversion to PDF format.
After all, PDF knows links just as well as HTML does. It's just quite
a bit of work to do.)

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---



___
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

2022-09-21 Thread Fred van Stappen
Hello Sieghard.

>>> But how did you know that MseLib  has a function which do the job
>>> and called sumfield.
>>>I am sure that there are other Hidden funcs.

>> Sorry but I do not understand.

> Isn't that obvious?

Yes, now it is, I think that Med asked for something that ideU has but is not 
implemented in MSEide.

See video:
https://user-images.githubusercontent.com/3421249/191598856-95ed48c4-3eaa-48f8-bd5e-469b9d95bc31.mp4

https://github.com/fredvs/ideU/releases

Fre;D
___
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

2022-09-21 Thread Sieghard via mseide-msegui-talk
Hallo Fred van Stappen,

vous ecrit au Tue, 20 Sep 2022 18:52:03 +:

> > But how did you know that MseLib  has a function which do the job
> > and called sumfield.
> >I am sure that there are other Hidden funcs.
> 
> Sorry but I do not understand.

Isn't that obvious? Say you want to sum up a column of data in a grid
and wonder how to do that easily. What would be your first attempt,
quick & dirty?
I'm sure you wouldn't start to search through any and all the grid
functions, whether there is such a function already, although it would
do immediatly (I assume) what you need - you probabely would start to
implement such a function yourself. 

> Could you explain what you need, maybe with a example.

Does that suffice as an explanation?


BTW, you wrote on Tue, 20 Sep 2022 02:12:20 +:

> In such case, I use menu Search/Find in files and set directory
> mseide-msegui. See image:

You DO realize that, on Linux at least, but also available fpr Windows,
there are such system provided functions like "find", "grep" and others
that do such a job quite nicely and even better controllable, without
having to fire up a bulky graphics application? And even better, for
repeatedd tasks, they can be used within a script and applied as often
as you like...
(Of course, that's how I produced the "unitslist" web pages. And as I
just have built a small script to list ot the heritge of a class, I
might add this feature to this list. So you can immediately see all the
classes the one in question inherits from without having to scan them
through.)

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---



___
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

2022-09-21 Thread Fred van Stappen
> My question is about MseIde Guide

Re-hello Med.

If you want interactive auto-complete, you may use ideU.
Click on the auto-complete-help icon (the lamp) and when you write something  
it will show a list of all the methods.
If you click on one method, the code is automatically added.

See picture:
https://user-images.githubusercontent.com/3421249/191542268-1cc666a7-086d-429c-905f-78e10be92f99.png

It was proposed to add this feature to MSEide but Martin did not want it.
So I prefer to not enable it for MSEide ( but you may use ideU ;-) )

Fre;D
___
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

2022-09-21 Thread Fred van Stappen
> My question is about MseIde Guide

After check in Roland msegui site, it is **very** complete.

If I understand ok, you would like to have a interactive help if a word is 
selected and you press on F1 (for example).

Yes, it would be great but we need tips and light how to do it.

Any idea is welcome.

Fre;D



De : mohamed hamza 
Envoyé : mercredi 21 septembre 2022 12:36
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hello Fred,

  My question is about MseIde Guide.  In Fact, before Searching   ( find in 
file: SumField ) in MseIde.lib the programmer have to know that this function 
exists !!! .That'why I believe there are other hiden procedures /  functions .

Regards

Med

De : Fred van Stappen 
Envoyé : mardi 20 septembre 2022 18:52
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hello Med.

> But how did you know that MseLib  has a function which do the job  and called 
> sumfield.
>I am sure that there are other Hidden funcs.

Sorry but I do not understand.
Could you explain what you need, maybe with a example.

Thanks.

Fre;D
___
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

2022-09-21 Thread Fred van Stappen
> here IS some code documentation, provided by Roland Chastain (also a -
> former? - member of this list), which can be found under the URLs
>  (fpc) and
>  (msegui),

The sites are (with a "l" at end):

https://www.msegui.net/doc/fpdoc/index.html
https://www.msegui.net/doc/pasdoc/index.html>
___
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

2022-09-21 Thread mohamed hamza
Hello Fred,

  My question is about MseIde Guide.  In Fact, before Searching   ( find in 
file: SumField ) in MseIde.lib the programmer have to know that this function 
exists !!! .That'why I believe there are other hiden procedures /  functions .

Regards

Med

De : Fred van Stappen 
Envoyé : mardi 20 septembre 2022 18:52
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hello Med.

> But how did you know that MseLib  has a function which do the job  and called 
> sumfield.
>I am sure that there are other Hidden funcs.

Sorry but I do not understand.
Could you explain what you need, maybe with a example.

Thanks.

Fre;D
___
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

2022-09-20 Thread Fred van Stappen
Hello Med.

> But how did you know that MseLib  has a function which do the job  and called 
> sumfield.
>I am sure that there are other Hidden funcs.

Sorry but I do not understand.
Could you explain what you need, maybe with a example.

Thanks.

Fre;D
___
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

2022-09-20 Thread mohamed hamza
Hello Fred.

But how did you know that MseLib  has a function which do the job  and called 
sumfield. I am sure that there are other
Hidden funcs.

Regards.

Med

De : Fred van Stappen 
Envoyé : mardi 20 septembre 2022 02:12
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hello Med.

> How to know that there is sumfield function ?

In such case, I use menu Search/Find in files and set directory mseide-msegui.
See image: 
https://user-images.githubusercontent.com/3421249/191151535-2ab77c18-fb74-41f1-924e-97d85e3bf74d.png

It shows that sumfield is in 
/mseide-msegui/lib/common/db/msebufdataset.pas(1404,14).
___
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

2022-09-19 Thread Fred van Stappen
Hello Med.

> How to know that there is sumfield function ?

In such case, I use menu Search/Find in files and set directory mseide-msegui.
See image: 
https://user-images.githubusercontent.com/3421249/191151535-2ab77c18-fb74-41f1-924e-97d85e3bf74d.png

It shows that sumfield is in 
/mseide-msegui/lib/common/db/msebufdataset.pas(1404,14).
___
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

2022-09-19 Thread Sieghard via mseide-msegui-talk
Hallo mohamed hamza,

you wrote at Mon, 19 Sep 2022 09:30:21 +:

>How to add some other fonts to MseIde.

You can simply fill in the name of a font (e.g. "Lucida Console") in
the "Font" field of the "Editor" page on the "Project/Options" page.
(And possibly adjust a couple other settings pertaining to that, too.)
Yes, the font setting is project specific, as it only applies to the
source editor. The IDE itself (menus etc.) cannot be changed.

> In fact MseIde-Msegui  suffers from lake of any guide except this
> mailist .  Martin did a huge work and no one can write down all the
> properties of objects he created. I think we can spend many years.
> For example : How to know that there is sumfield function ?

There IS some code documentation, provided by Roland Chastain (also a -
former? - member of this list), which can be found under the URLs
 (fpc) and
 (msegui),
hopefully still available.
And there are some other attempts at documentation on (or in?) the
"mseuniverse" project. But indeed, it's kind of a puzzle game to find
together sufficient information to be able to effectively use this
system. After all, it hasn't been meant to be broadly used from the
outset, and it was mainly a one-man development as long as Martin was
around. And now, it suffers from all kinds of missing information.


You wrote at Mon, 19 Sep 2022 17:42:56 +:

> I tried to build the PRJ . I got errors on windows 7 .  Please see
> ATTN

Yes, this is a Linux-only implementation for now, and porting it to
Windows, as welcome as it is, does suffer from my lack of availability
of a current version of Windows beyond a just halfway working W7 setup.
So it will probabely take quite some while until this might happen.

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---



___
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

2022-09-19 Thread Fred van Stappen
Re-hello Med.

Indeed, I did try to complie MSEclock for Windows but get the same error 
message as you.
I think that MSEclock project is not yet ready for Windows.

Fre;D



De : mohamed hamza 
Envoyé : lundi 19 septembre 2022 19:42
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hi Fred

I tried to build the PRJ . I got errors on windows 7 .  Please see ATTN

Regards.

De : Fred van Stappen 
Envoyé : lundi 19 septembre 2022 15:00
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Re-hello Med.

>How to add some other fonts to MseIde.

If you want a font dialog for your project, with all the fonts insalled on your 
system, there is the MSE-font-dialog created by Sieghard.
It is in /MSEclock/newdialogs/ from Sieghard-MSEclock project.
http://schs.de/download/mse/

It is not yet completely finished but already works well.

Fre;D



De : Fred van Stappen 
Envoyé : lundi 19 septembre 2022 16:19
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hello Med!

> How to add some other fonts to MseIde.

At the moment MSEide dont give the opportunity to add fonts "out-of-the-box".
You may use ideU, it does that.
Take a look at source:

https://github.com/fredvs/ideU/blob/main/src/conflang.pas
---> procedure tconflangfo.listlangfont(lang : String);

> In fact MseIde-Msegui  suffers from lake of any guide except this mailist .

Yes we all agree with that and also we dont have any control on the mse mailing 
list, it can be closed without any warning ;-(
But anybody is welcome to contribute, for example giving a mse-database demo in 
mse-universe... ;-)

Fre;D
___
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

2022-09-19 Thread Fred van Stappen
Hello Med.

Hum, I dont have Windows installed so I cannot try.
I will install wine for Linux tonight and see.

Maybe Sieghard can answer.

Anyway, if you want to try the dialog font, it is in there: 
/MSEclock/msefontdialog.pas
Just copy msefontdialog.pas, msefontdialog.mfm and msefontdialog_mfm.pas in 
your project and load it like a other mse dialog.

Note that I did not try it for Windows yet.

Fre;D

De : mohamed hamza 
Envoyé : lundi 19 septembre 2022 19:42
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hi Fred

I tried to build the PRJ . I got errors on windows 7 .  Please see ATTN

Regards.

De : Fred van Stappen 
Envoyé : lundi 19 septembre 2022 15:00
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Re-hello Med.

>How to add some other fonts to MseIde.

If you want a font dialog for your project, with all the fonts insalled on your 
system, there is the MSE-font-dialog created by Sieghard.
It is in /MSEclock/newdialogs/ from Sieghard-MSEclock project.
http://schs.de/download/mse/

It is not yet completely finished but already works well.

Fre;D



De : Fred van Stappen 
Envoyé : lundi 19 septembre 2022 16:19
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hello Med!

> How to add some other fonts to MseIde.

At the moment MSEide dont give the opportunity to add fonts "out-of-the-box".
You may use ideU, it does that.
Take a look at source:

https://github.com/fredvs/ideU/blob/main/src/conflang.pas
---> procedure tconflangfo.listlangfont(lang : String);

> In fact MseIde-Msegui  suffers from lake of any guide except this mailist .

Yes we all agree with that and also we dont have any control on the mse mailing 
list, it can be closed without any warning ;-(
But anybody is welcome to contribute, for example giving a mse-database demo in 
mse-universe... ;-)

Fre;D
___
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

2022-09-19 Thread mohamed hamza
Hi Fred

I tried to build the PRJ . I got errors on windows 7 .  Please see ATTN

Regards.

De : Fred van Stappen 
Envoyé : lundi 19 septembre 2022 15:00
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Re-hello Med.

>How to add some other fonts to MseIde.

If you want a font dialog for your project, with all the fonts insalled on your 
system, there is the MSE-font-dialog created by Sieghard.
It is in /MSEclock/newdialogs/ from Sieghard-MSEclock project.
http://schs.de/download/mse/

It is not yet completely finished but already works well.

Fre;D



De : Fred van Stappen 
Envoyé : lundi 19 septembre 2022 16:19
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hello Med!

> How to add some other fonts to MseIde.

At the moment MSEide dont give the opportunity to add fonts "out-of-the-box".
You may use ideU, it does that.
Take a look at source:

https://github.com/fredvs/ideU/blob/main/src/conflang.pas
---> procedure tconflangfo.listlangfont(lang : String);

> In fact MseIde-Msegui  suffers from lake of any guide except this mailist .

Yes we all agree with that and also we dont have any control on the mse mailing 
list, it can be closed without any warning ;-(
But anybody is welcome to contribute, for example giving a mse-database demo in 
mse-universe... ;-)

Fre;D
___
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

2022-09-19 Thread Fred van Stappen
Hello Med!

> How to add some other fonts to MseIde.

At the moment MSEide dont give the opportunity to add fonts "out-of-the-box".
You may use ideU, it does that.
Take a look at source:

https://github.com/fredvs/ideU/blob/main/src/conflang.pas
---> procedure tconflangfo.listlangfont(lang : String);

> In fact MseIde-Msegui  suffers from lake of any guide except this mailist .

Yes we all agree with that and also we dont have any control on the mse mailing 
list, it can be closed without any warning ;-(
But anybody is welcome to contribute, for example giving a mse-database demo in 
mse-universe... ;-)

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


[MSEide-MSEgui-talk] Fonts

2022-09-19 Thread mohamed hamza
Hi all,

   How to add some other fonts to MseIde.

In fact MseIde-Msegui  suffers from lake of any guide except this mailist .  
Martin did a huge work and no one can write down all the properties of objects 
he created. I think we can spend many years.
 For example : How to know that there is sumfield function ?

Regards

Med

Nb: I am still hooked to MSEIDE 5.6.8 . I did not find better till now . I am 
wondering  where programmers migrate to ?
___
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-13 Thread fredvs
Hello Med.

>   Afaik,  clicking  on frame.caption  does the job.

Do you mean you found the solution?

If so, please, could you create a new topic "Set focus with frame.caption"
(or something similar) and explain how to do.

This for other people that have the same problem.

Many 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-12 Thread mohamed hamza
Hello Fred,

   Afaik,  clicking  on frame.caption  does the job.

Med.



De : fredvs 
Envoyé : lundi 12 août 2019 08:54
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hello Med.

> but I am sure that this code exists in msewidgets. because

Yes, maybe (surely) code to make selection cliquing on frame.caption exists.
But, sorry, I do not know how to do.

The good news is that your are a frame.caption-guru now and I have no doubt
that you will find the code!

;)

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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-11 Thread mohamed hamza
Re-Hello,

  Caption and frame are  hotzones but I   want to extend catption zone from  
bounds_x to (bounds_x + bounds_cx-1).
 Using MouseEvent is one solution but I am sure that this code exists in 
msewidgets. because : select ing  caption or frame area fire Onenter event of 
grid or groupbox.

Med.





De : mohamed hamza 
Envoyé : dimanche 11 août 2019 18:12
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hi Fred,

  Until now I did find any bug in msewidgets.pas

  I just want extend the hot zones. there



De : fredvs 
Envoyé : dimanche 11 août 2019 13:45
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hello Med.

>   The best solution is to update lib/common/msewidgets.pas line 3356 .

Could you develop a little more?
IMHO there is no bug, it was wanted.
If you fix the code like you want (click on frame caption ---> select the
object), it would be very difficult for people that do prefer the actual
behavior (click on the object only to have focus) to come back to this old
behaviour.

But it is my opinion, of course.

So, IMHO, there should be a kind of vote to decide what to do.

By the way, what is the problem with code that I gave you (using
mouse-event)?

> I did not find how to assign a new  framerect?

Tip: If you dont know something about a mse component, use "Search in
Directories" using msegui as directory to search.
It will give you lot of gems. ---> do a search for "framerect", you will be
surprised with the result.

Fre;D


Fe;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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-11 Thread mohamed hamza
Hi Fred,

  Until now I did find any bug in msewidgets.pas

  I just want extend the hot zones. there



De : fredvs 
Envoyé : dimanche 11 août 2019 13:45
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hello Med.

>   The best solution is to update lib/common/msewidgets.pas line 3356 .

Could you develop a little more?
IMHO there is no bug, it was wanted.
If you fix the code like you want (click on frame caption ---> select the
object), it would be very difficult for people that do prefer the actual
behavior (click on the object only to have focus) to come back to this old
behaviour.

But it is my opinion, of course.

So, IMHO, there should be a kind of vote to decide what to do.

By the way, what is the problem with code that I gave you (using
mouse-event)?

> I did not find how to assign a new  framerect?

Tip: If you dont know something about a mse component, use "Search in
Directories" using msegui as directory to search.
It will give you lot of gems. ---> do a search for "framerect", you will be
surprised with the result.

Fre;D


Fe;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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-11 Thread fredvs
Hello Med.

>   The best solution is to update lib/common/msewidgets.pas line 3356 .

Could you develop a little more?
IMHO there is no bug, it was wanted.
If you fix the code like you want (click on frame caption ---> select the
object), it would be very difficult for people that do prefer the actual
behavior (click on the object only to have focus) to come back to this old
behaviour.

But it is my opinion, of course.

So, IMHO, there should be a kind of vote to decide what to do.

By the way, what is the problem with code that I gave you (using
mouse-event)?

> I did not find how to assign a new  framerect?

Tip: If you dont know something about a mse component, use "Search in
Directories" using msegui as directory to search.
It will give you lot of gems. ---> do a search for "framerect", you will be
surprised with the result.

Fre;D


Fe;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-11 Thread mohamed hamza
Hello Fred,

  The best solution is to update lib/common/msewidgets.pas line 3356 .  I did 
not find how to assign a new  framerect?

Med.



De : fredvs 
Envoyé : samedi 10 août 2019 20:40
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hello Med.

> Do you have a better idea ?

No.

> By the way do you have any guide about mse class

Nor really, I just look inside mse code.
For classes, it is in:
/mseide-msegui/lib/common/kernel/mseclasses.pas

But maybe some doc exists, I do not know.

> because  I want to know if there is a common ancestror between groupbox
> and grid ?

To know the ancestor, you may use mseide and, in code editor, click+ctrl on
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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-10 Thread fredvs
Hello Med.

> Do you have a better idea ?

No.

> By the way do you have any guide about mse class

Nor really, I just look inside mse code.
For classes, it is in:
/mseide-msegui/lib/common/kernel/mseclasses.pas

But maybe some doc exists, I do not know.

> because  I want to know if there is a common ancestror between groupbox
> and grid ?

To know the ancestor, you may use mseide and, in code editor, click+ctrl on
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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-10 Thread mohamed hamza
Re-Hello,

   By the way do you have any guide about mse class  because  I want to know if 
there is a common ancestror between groupbox and grid ?

  I want to change the last proc  OnMouseEv(..)  to include groupbox  .

Regards

Med




De : mohamed hamza 
Envoyé : samedi 10 août 2019 11:20
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hi Fred,

   As you suggested to work with onMouseEvent instead of changing Msegui lib we 
can write alo:

procedure tmainfo.onmouseev(const sender: twidget; var ainfo: mouseeventinfoty);
var i:integer;

begin
if ainfo.eventkind = ek_buttonpress then
for i := 0 to childrencount-1 do
if   (children[i] is twidgetgrid) then
with twidgetgrid(children[i]) do
   if (ainfo.pos.x >= bounds_x)
   and (ainfo.pos.x <= bounds_x + bounds_cx-1)
   and (ainfo.pos.y >= bounds_y)
   and (ainfo.pos.y <= bounds_y + bounds_cy-1)
  then
begin
setfocus();
exit
end;

end;

Do you have a better idea ?

Regards



Med



De : fredvs 
Envoyé : vendredi 9 août 2019 22:09
À : mseide-msegui-talk@lists.sourceforge.net 

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

> PS: Not tested.

This one yes! (replace in demo onmouseev with this):

procedure tmainfo.onmouseev(const sender: twidget; var ainfo:
mouseeventinfoty);
var
i : integer;
begin
if ainfo.eventkind = ek_clientmouseenter then
begin

for i := 0 to ChildrenCount - 1 do
  if  (children[i] is  twidgetgrid) and (ainfo.pos.x >=
twidgetgrid(children[i]).left)
   and (ainfo.pos.x <= twidgetgrid(children[i]).left +
twidgetgrid(children[i]).width)
   and (ainfo.pos.y >= twidgetgrid(children[i]).top)
   and (ainfo.pos.y <= twidgetgrid(children[i]).top + theheight)
 then
  begin
  twidgetgrid(children[i]).setfocus();
  exit;
  end;

end;

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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-10 Thread mohamed hamza
Hi Fred,

   As you suggested to work with onMouseEvent instead of changing Msegui lib we 
can write alo:

procedure tmainfo.onmouseev(const sender: twidget; var ainfo: mouseeventinfoty);
var i:integer;

begin
if ainfo.eventkind = ek_buttonpress then
for i := 0 to childrencount-1 do
if   (children[i] is twidgetgrid) then
with twidgetgrid(children[i]) do
   if (ainfo.pos.x >= bounds_x)
   and (ainfo.pos.x <= bounds_x + bounds_cx-1)
   and (ainfo.pos.y >= bounds_y)
   and (ainfo.pos.y <= bounds_y + bounds_cy-1)
  then
begin
setfocus();
exit
end;

end;

Do you have a better idea ?

Regards



Med



De : fredvs 
Envoyé : vendredi 9 août 2019 22:09
À : mseide-msegui-talk@lists.sourceforge.net 

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

> PS: Not tested.

This one yes! (replace in demo onmouseev with this):

procedure tmainfo.onmouseev(const sender: twidget; var ainfo:
mouseeventinfoty);
var
i : integer;
begin
if ainfo.eventkind = ek_clientmouseenter then
begin

for i := 0 to ChildrenCount - 1 do
  if  (children[i] is  twidgetgrid) and (ainfo.pos.x >=
twidgetgrid(children[i]).left)
   and (ainfo.pos.x <= twidgetgrid(children[i]).left +
twidgetgrid(children[i]).width)
   and (ainfo.pos.y >= twidgetgrid(children[i]).top)
   and (ainfo.pos.y <= twidgetgrid(children[i]).top + theheight)
 then
  begin
  twidgetgrid(children[i]).setfocus();
  exit;
  end;

end;

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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-09 Thread fredvs
> PS: Not tested. 

This one yes! (replace in demo onmouseev with this):

procedure tmainfo.onmouseev(const sender: twidget; var ainfo:
mouseeventinfoty);
var
i : integer;
begin
if ainfo.eventkind = ek_clientmouseenter then
begin

for i := 0 to ChildrenCount - 1 do
  if  (children[i] is  twidgetgrid) and (ainfo.pos.x >=
twidgetgrid(children[i]).left)
   and (ainfo.pos.x <= twidgetgrid(children[i]).left +
twidgetgrid(children[i]).width)
   and (ainfo.pos.y >= twidgetgrid(children[i]).top) 
   and (ainfo.pos.y <= twidgetgrid(children[i]).top + theheight) 
 then 
  begin
  twidgetgrid(children[i]).setfocus();
  exit;
  end;

end;

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-09 Thread fredvs
Hello Med.

 for i:= 0 to form1.childrencount - 1 do begin
 if  form1.children[i] is  twidgetgrid then
  if (ainfo.pos.x   and .  )   then  twidgetgrid(
form1.children[i].setfocus 
  exit  
 else  

PS: Not tested.

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-09 Thread mohamed hamza
Hi Fred,

Many thanks for  your help.

  I wanted  to do an  universal solution but I do not know how to get the count 
of components in the current form   and of course the current object .
  There is not a guide to mseide class

I want to write something like

 For i := 1 to   n // n is the count  of twidget(sender)
   if object [i] is  twidgetgrid then
 if (ainfo.pos.x   and .  )   then  twidgetgrid( object[i]. 
setfocus
  exit
 else

Regards

Med


De : fredvs 
Envoyé : vendredi 9 août 2019 14:03
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hello Med.

Here demo of working focus-frame-caption:
demo_focusframecaption.zip
<http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/demo_focusframecaption.zip>

And here the video of the result:
focus_framecaption.mp4
<http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/focus_framecaption.mp4>

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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-09 Thread fredvs
Hello Med.

Here demo of working focus-frame-caption:
demo_focusframecaption.zip

  

And here the video of the result:
focus_framecaption.mp4
  

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-09 Thread mohamed hamza
Hello Fred,

In MouseEvent Procedure we have to search the object to setfocus to  . I do 
not know the structure of ainfo  does it contain the object   selected?

Regards

Med.

De : fredvs 
Envoyé : vendredi 9 août 2019 00:35
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hello Med.

I think that you can do that without changing anything in mse.

With theobject.setfocus() + theform.onmouseevent().

You just have to know the area of frame.caption (but you know now how to get
his height + width).

Pseudo code:

procedure tmainfo.onmouseev(const sender: twidget; var ainfo:
mouseeventinfoty);
begin
if mouseclick_is_in_ frame.caption_area then theobject.setfocus();
end;

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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-08 Thread fredvs
Hello Med.

I think that you can do that without changing anything in mse.

With theobject.setfocus() + theform.onmouseevent().

You just have to know the area of frame.caption (but you know now how to get
his height + width).

Pseudo code:

procedure tmainfo.onmouseev(const sender: twidget; var ainfo:
mouseeventinfoty);
begin
if mouseclick_is_in_ frame.caption_area then theobject.setfocus();
end;

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-08 Thread mohamed hamza
Sorry the the text is not displayed well in mailist archive.

I continue:

CAPTION <   ADDED HOTZONE >





--

To have this enhancement we have to make a change to mseide.lib

Is it safe and a good  idea?

Regards

Med


De : mohamed hamza 
Envoyé : jeudi 8 août 2019 21:25
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Fonts

Hi All,

   Currently   grid and groupbox are activated only when we click inside them 
or on their caption.
I wanted to paddR the caption and then extended this zone ( frame.caption) .

CAPTION <  HOTZONE ALSO 

   >





































































































I think we have to redefine that  in mseide lib. Is it a good Idea?

Regards

Med



De : fredvs 
Envoyé : jeudi 8 août 2019 20:35
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hello Med.

> so the only solution is oncreate form which is not so  smart.

Indeed, I would use oncreated vs oncreate.

Maybe if you explain what you want to archive we can find better solution.

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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-08 Thread mohamed hamza
Hi All,

   Currently   grid and groupbox are activated only when we click inside them 
or on their caption.
I wanted to paddR the caption and then extended this zone ( frame.caption) .

CAPTION <  HOTZONE ALSO 

   >





































































































I think we have to redefine that  in mseide lib. Is it a good Idea?

Regards

Med



De : fredvs 
Envoyé : jeudi 8 août 2019 20:35
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hello Med.

> so the only solution is oncreate form which is not so  smart.

Indeed, I would use oncreated vs oncreate.

Maybe if you explain what you want to archive we can find better solution.

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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-08 Thread fredvs
Hello Med.

> so the only solution is oncreate form which is not so  smart.

Indeed, I would use oncreated vs oncreate.

Maybe if you explain what you want to archive we can find better solution.

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-08 Thread mohamed hamza
Hi all,

Now the problem is clear and the solution found. Thanks to all .

According Fred's advice  onPaint is avoided.

I tried  baseform.onfocusedwidgetchanged( newwidget ...)

It works only when  newwidget object  is  a Mse*Object ?

I mean

  If (newwidget is myownobject )  return false then
 I can not adjust the  caption

  see :   
https://www.mail-archive.com/mseide-msegui-talk@lists.sourceforge.net/msg12722.html

so the only solution is oncreate form which is not so  smart.

Regards

Med.



De : Sieghard 
Envoyé : mercredi 7 août 2019 22:53
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hello mohamed,

you wrote on Tue, 6 Aug 2019 16:35:58 +:

>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?

That's because you probabely use a proportional font, where all the
characters have their individual width and font.width returns that of a
"representative" character, often an "m". If you used a monospaced font,
the font.width would be the same for all characters, although, of course,
it looks different.
But maybe you can make use of one of the "textrect" functions of the
"msedrawtext" unit, which generally take a canvas object as their first
parameter (implicitely specifying the font to check) and several other
parameters, often a string to be evaluated. They return a "rectty" record,
where the "cx" field contains the width value you are looking for.
You probabely will have to select the appropriate version of the function
according to your needs; the unit is located in the "mse.common/graphics"
directory, the file name is "msedrawtext.pas".

--
--
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---




___
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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-07 Thread Sieghard
Hello mohamed,

you wrote on Tue, 6 Aug 2019 16:35:58 +:

>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?

That's because you probabely use a proportional font, where all the
characters have their individual width and font.width returns that of a
"representative" character, often an "m". If you used a monospaced font,
the font.width would be the same for all characters, although, of course,
it looks different.
But maybe you can make use of one of the "textrect" functions of the
"msedrawtext" unit, which generally take a canvas object as their first
parameter (implicitely specifying the font to check) and several other
parameters, often a string to be evaluated. They return a "rectty" record,
where the "cx" field contains the width value you are looking for.
You probabely will have to select the appropriate version of the function
according to your needs; the unit is located in the "mse.common/graphics"
directory, the file name is "msedrawtext.pas".

-- 
-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---




___
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-07 Thread fredvs
Hello Med.

It seems to me that you created a perpetual loop in your code.
You assigned this to onpaint():

procedure tmainfo.paintGrEv(const sender: twidget; const acanvas: tcanvas);
begin
// this will be a perpetual loop because it will re-paint after the
execution of the procedure
twidgetgrid(sender).frame.caption:=inttostr(length(twidgetgrid(sender).frame.caption));
end;

IMHO, you should use something else than onpaint().

Could you try the demo,zip in attachment:

demo.zip   

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-07 Thread mohamed hamza
Here it is .   In fact length(frame.caption )  returns 1   , maybe function 
length is not appropriate in this case?

Regards.

De : fredvs 
Envoyé : mercredi 7 août 2019 18:55
À : mseide-msegui-talk@lists.sourceforge.net 

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

> would you like to try this small demo  ( as Attn)

With pleasure if you add demo.pas file that is missing in your Attn!

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


np.rar
Description: np.rar
___
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-07 Thread fredvs
> would you like to try this small demo  ( as Attn)

With pleasure if you add demo.pas file that is missing in your Attn!

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-07 Thread mohamed hamza
Hello Fredvs;

 I think there is  a problem to get the length of a caption.

 would you like to try this small demo  ( as Attn)

Best Regards

Med.


De : fredvs 
Envoyé : mardi 6 août 2019 19:00
À : mseide-msegui-talk@lists.sourceforge.net 

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

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


np.rar
Description: np.rar
___
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] 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


Re: [MSEide-MSEgui-talk] Fonts

2019-08-05 Thread fredvs
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] Fonts

2019-08-03 Thread mohamed hamza
Hi there,

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

Best Regards

Med
___
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

2016-07-05 Thread Martin Schreiber
On Tuesday 05 July 2016 16:21:36 mohamed hamza wrote:
> Hi Martin,
>
>
> Which is the font that the Windows console/MS-DOS uses?
>
I don't know, maybe Fixedsys.

> Do we have in mseide?
>
MSEgui uses createfontindirect() on Windows in order to get a font 
https://msdn.microsoft.com/en-us/library/windows/desktop/dd183500%28v=vs.85%29.aspx
so if it is registered it should be available.

Martin

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] Fonts

2016-07-05 Thread mohamed hamza
Hi Martin,


Which is the font that the Windows console/MS-DOS uses?

Do we have in mseide?


Best regards.


Med


--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk