Re: [MSEide-MSEgui-talk] Fonts

2022-09-23 Thread mohamed hamza
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: Su

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 /

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.

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

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

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

Re: [MSEide-MSEgui-talk] Fonts

2022-09-21 Thread Fred van Stappen
dea 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: SumFi

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):

Re: [MSEide-MSEgui-talk] Fonts

2022-09-21 Thread mohamed hamza
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 func

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

Re: [MSEide-MSEgui-talk] Fonts

2022-09-20 Thread mohamed hamza
: 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 sh

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

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

Re: [MSEide-MSEgui-talk] Fonts

2022-09-19 Thread Fred van Stappen
+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

Re: [MSEide-MSEgui-talk] Fonts

2022-09-19 Thread Fred van Stappen
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

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 s

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 :

[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

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

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 exi

Re: [MSEide-MSEgui-talk] Fonts

2019-08-11 Thread mohamed hamza
. 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

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 b

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

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

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

Re: [MSEide-MSEgui-talk] Fonts

2019-08-10 Thread mohamed hamza
: 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

Re: [MSEide-MSEgui-talk] Fonts

2019-08-10 Thread mohamed hamza
a ? 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

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

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:

Re: [MSEide-MSEgui-talk] Fonts

2019-08-09 Thread mohamed hamza
À : 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

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

Re: [MSEide-MSEgui-talk] Fonts

2019-08-09 Thread mohamed hamza
@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

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

Re: [MSEide-MSEgui-talk] Fonts

2019-08-08 Thread mohamed hamza
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

Re: [MSEide-MSEgui-talk] Fonts

2019-08-08 Thread mohamed hamza
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

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/

Re: [MSEide-MSEgui-talk] Fonts

2019-08-08 Thread mohamed hamza
: 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

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

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

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

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

Re: [MSEide-MSEgui-talk] Fonts

2019-08-07 Thread mohamed hamza
: [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

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 :=

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

Re: [MSEide-MSEgui-talk] Fonts

2019-08-06 Thread mohamed hamza
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.wi

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

[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

[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