Re: [MSEide-MSEgui-talk] INITIALIZATION SECTION

2023-08-04 Thread Sieghard via mseide-msegui-talk
Hello mohamed,

you wrote on Fri, 4 Aug 2023 08:55:13 +:

>  Finaly I opted  for the solution of scanning an array of
> TCUSTOMEDITDATAEDIT .

Depends on what, exactly, you want to effect. If it's only about selecting
a prebuilt set of fields, using an indexed array of fields might be a good
first step. To possibly avoid scanning all fields, it's also possible to
construct a set of relevant indices and using this in a for loop to access
the fields from the array, like so:

VAR
  selection: SET OF indexvalues;  // what ever these are...
  fieldindex: indexvalues;
  fields: ARRAY [indexvalues] OF ;

  selection:= ;
  FOR fieldindex IN selection DO  (fields [fieldindex]);

You don't have to check every possible index value with an "IF" condition,
the FOR loop can do that by itself, as an fpc extension to "basic" Pascal.

But I don't know whether this can be of any use to you, as I don't have a
clue what your goal might be - these are just theoretical considerations.

-- 
(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] Save forms to bitmaps?

2023-08-04 Thread Sieghard via mseide-msegui-talk
Hello Fred,

you wrote on Thu, 3 Aug 2023 23:49:31 +:

> Everybody who gives attention to msegui is important (but maybe not for
> msegui's persistance)...

Well... I'd not count a lot for people not wanting persistance of their
tools. But otherwise, sure, the more users, the better persistance. But it
can be a chore too.

> >If so, it MIGHT be useful to tackle the chore...  

> Yes, that is the best solution (and "they (Lagprogramming)" seems very
> skilled so it will be a funny game for him...).

Who? "Lagprogramming"? Never heard about it/him/them...
So I don't have a clue what this might mean at all.

-- 
(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] Save forms to bitmaps?

2023-08-04 Thread Fred vS
OK, maybe for later.

I will play with the "saveformtobitmap" thing and try to make it work without 
using capture-screen but like you noted with the 2xbuffer.

And for msegui for framebuffer, I suspect that Martin thought about it and it 
should be done easy once you get his trick.

Fre;D


De : vasi vasi 
Envoyé : vendredi 4 août 2023 17:11
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

Yeah, without a window manager... again, look at Allegro how it handles so 
called windows... in those bitmaps, the user must draw also the "window 
controls", not only the content of the window that are the widgets...

And I see your last reply... yes, is a huge task beyond a single person... 
Well, for one that knows well the internals, it will be easy at least to "draw 
a blueprint" for the future work to be done (that would have been Martin)...

I see the console frame buffer stuff as a solution for old machines without 
good video drivers or for the embedded world where you can't fit an X server 
but your app would have enough memory to run... but not an emergency or a vital 
thing... We are not yet there... Right now it might be practical for small 
software tools but not for big database applications with huge scroll-able 
tables, etc... Similar to the kind of graphical applications I do right now 
using OpenGL, which I prefer...

On Fri, Aug 4, 2023 at 5:52 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Look at how Allegro works in console unsig the frambuffer... Yeah, is about 
showing forms in the framebuffer without X11... Remember, what you see in X11 
is not the drawn form... is the already drawn bitmap :P

On Fri, Aug 4, 2023 at 5:23 PM Fred vS 
mailto:fi...@hotmail.com>> wrote:

Hello Vasi.

Ha, ok, it is new jungle for me this framebuffer console concept.
I will study it.

Is it about run a graphic application just from terminal, after boot, without 
loading X11?
Nice if it is that but what about the forms if there is no window manager?

Fre;D


De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : vendredi 4 août 2023 15:58
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

Is about running graphical applications based on LCL and MSEgui outside 
X-Window, in framebuffer console...

MSEgui already uses a double-buffer mecanism in painting the final bitmap on 
X-Window and Windows... as far as I understand... So, I will not go on top 
level trying to get forms saving to a bitmap... the mechanism is already 
present at the base of the MSEgui... just change the destination...

On Fri, Aug 4, 2023 at 2:25 AM Sieghard via mseide-msegui-talk 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
 wrote:
Hello Fred,

you wrote on Thu, 3 Aug 2023 18:38:56 +:

> There is a topic on Lazarus forum about save forms to bitmaps with MSEgui:
...
> https://github.com/mse-org/mseide-msegui Unfortunately, at the moment,
> unlike LCL, MSEgui is not able to save forms to bitmaps, which is

You did bring this up before, and you might remember that I investigated
it a bit, finding that the designated functions aren't implemented.

> something very important for MSEgui. Much more important than it is for
> LCL.

Hm. I don't see much neccessity for that, especially as screen capture
programs exist in masses. Didn't you find some solution using such an
approach yourself?
...
> Is it possible to save forms to bitmaps?

Well, the last thing I could achieve without delving deeply into writing
additional drawing code was a program creating a bitmap of the, still
empty, form rectangle, filled with black color.

> Sure with a capture-screen and select a position it is possible but it
> seems they want something else.

Who are "they"? Are "they" important for msegui's persistance?
If so, it MIGHT be useful to tackle the chore...

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


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


--
Vasi


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


Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

2023-08-04 Thread vasi vasi
Yeah, without a window manager... again, look at Allegro how it handles so
called windows... in those bitmaps, the user must draw also the "window
controls", not only the content of the window that are the widgets...

And I see your last reply... yes, is a huge task beyond a single person...
Well, for one that knows well the internals, it will be easy at least to
"draw a blueprint" for the future work to be done (that would have been
Martin)...

I see the console frame buffer stuff as a solution for old machines without
good video drivers or for the embedded world where you can't fit an X
server but your app would have enough memory to run... but not an emergency
or a vital thing... We are not yet there... Right now it might be practical
for small software tools but not for big database applications with huge
scroll-able tables, etc... Similar to the kind of graphical applications I
do right now using OpenGL, which I prefer...

On Fri, Aug 4, 2023 at 5:52 PM vasi vasi  wrote:

> Look at how Allegro works in console unsig the frambuffer... Yeah, is
> about showing forms in the framebuffer without X11... Remember, what you
> see in X11 is not the drawn form... is the already drawn bitmap :P
>
> On Fri, Aug 4, 2023 at 5:23 PM Fred vS  wrote:
>
>>
>> Hello Vasi.
>>
>> Ha, ok, it is new jungle for me this framebuffer console concept.
>> I will study it.
>>
>> Is it about run a graphic application just from terminal, after boot,
>> without loading X11?
>> Nice if it is that but what about the forms if there is no window manager?
>>
>> Fre;D
>>
>> --
>> *De :* vasi vasi 
>> *Envoyé :* vendredi 4 août 2023 15:58
>> *À :* General list for MSEide+MSEgui <
>> mseide-msegui-talk@lists.sourceforge.net>
>> *Objet :* Re: [MSEide-MSEgui-talk] Save forms to bitmaps?
>>
>> Is about running graphical applications based on LCL and MSEgui outside
>> X-Window, in framebuffer console...
>>
>> MSEgui already uses a double-buffer mecanism in painting the final bitmap
>> on X-Window and Windows... as far as I understand... So, I will not go on
>> top level trying to get forms saving to a bitmap... the mechanism is
>> already present at the base of the MSEgui... just change the destination...
>>
>> On Fri, Aug 4, 2023 at 2:25 AM Sieghard via mseide-msegui-talk <
>> mseide-msegui-talk@lists.sourceforge.net> wrote:
>>
>> Hello Fred,
>>
>> you wrote on Thu, 3 Aug 2023 18:38:56 +:
>>
>> > There is a topic on Lazarus forum about save forms to bitmaps with
>> MSEgui:
>> ...
>> > https://github.com/mse-org/mseide-msegui Unfortunately, at the moment,
>> > unlike LCL, MSEgui is not able to save forms to bitmaps, which is
>>
>> You did bring this up before, and you might remember that I investigated
>> it a bit, finding that the designated functions aren't implemented.
>>
>> > something very important for MSEgui. Much more important than it is for
>> > LCL.
>>
>> Hm. I don't see much neccessity for that, especially as screen capture
>> programs exist in masses. Didn't you find some solution using such an
>> approach yourself?
>> ...
>> > Is it possible to save forms to bitmaps?
>>
>> Well, the last thing I could achieve without delving deeply into writing
>> additional drawing code was a program creating a bitmap of the, still
>> empty, form rectangle, filled with black color.
>>
>> > Sure with a capture-screen and select a position it is possible but it
>> > seems they want something else.
>>
>> Who are "they"? Are "they" important for msegui's persistance?
>> If so, it MIGHT be useful to tackle the chore...
>>
>> --
>> (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
>>
>>
>>
>> --
>> Vasi
>> ___
>> mseide-msegui-talk mailing list
>> mseide-msegui-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>>
>
>
> --
> Vasi
>


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


Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

2023-08-04 Thread Fred vS
Hello Vasi.

Thanks for Allegro, I will jump into it.

So the goal is to create a new gui inferface (like for X11 and Win-gdi) for 
framebuffer ?
If so many methods should be set as "dummy" ?

That is a Big challenge that cannot be done by only one person...



Fre;D

De : vasi vasi 
Envoyé : vendredi 4 août 2023 16:52
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

Look at how Allegro works in console unsig the frambuffer... Yeah, is about 
showing forms in the framebuffer without X11... Remember, what you see in X11 
is not the drawn form... is the already drawn bitmap :P

On Fri, Aug 4, 2023 at 5:23 PM Fred vS 
mailto:fi...@hotmail.com>> wrote:

Hello Vasi.

Ha, ok, it is new jungle for me this framebuffer console concept.
I will study it.

Is it about run a graphic application just from terminal, after boot, without 
loading X11?
Nice if it is that but what about the forms if there is no window manager?

Fre;D


De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : vendredi 4 août 2023 15:58
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

Is about running graphical applications based on LCL and MSEgui outside 
X-Window, in framebuffer console...

MSEgui already uses a double-buffer mecanism in painting the final bitmap on 
X-Window and Windows... as far as I understand... So, I will not go on top 
level trying to get forms saving to a bitmap... the mechanism is already 
present at the base of the MSEgui... just change the destination...

On Fri, Aug 4, 2023 at 2:25 AM Sieghard via mseide-msegui-talk 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
 wrote:
Hello Fred,

you wrote on Thu, 3 Aug 2023 18:38:56 +:

> There is a topic on Lazarus forum about save forms to bitmaps with MSEgui:
...
> https://github.com/mse-org/mseide-msegui Unfortunately, at the moment,
> unlike LCL, MSEgui is not able to save forms to bitmaps, which is

You did bring this up before, and you might remember that I investigated
it a bit, finding that the designated functions aren't implemented.

> something very important for MSEgui. Much more important than it is for
> LCL.

Hm. I don't see much neccessity for that, especially as screen capture
programs exist in masses. Didn't you find some solution using such an
approach yourself?
...
> Is it possible to save forms to bitmaps?

Well, the last thing I could achieve without delving deeply into writing
additional drawing code was a program creating a bitmap of the, still
empty, form rectangle, filled with black color.

> Sure with a capture-screen and select a position it is possible but it
> seems they want something else.

Who are "they"? Are "they" important for msegui's persistance?
If so, it MIGHT be useful to tackle the chore...

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


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


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


Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

2023-08-04 Thread vasi vasi
Look at how Allegro works in console unsig the frambuffer... Yeah, is about
showing forms in the framebuffer without X11... Remember, what you see in
X11 is not the drawn form... is the already drawn bitmap :P

On Fri, Aug 4, 2023 at 5:23 PM Fred vS  wrote:

>
> Hello Vasi.
>
> Ha, ok, it is new jungle for me this framebuffer console concept.
> I will study it.
>
> Is it about run a graphic application just from terminal, after boot,
> without loading X11?
> Nice if it is that but what about the forms if there is no window manager?
>
> Fre;D
>
> --
> *De :* vasi vasi 
> *Envoyé :* vendredi 4 août 2023 15:58
> *À :* General list for MSEide+MSEgui <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* Re: [MSEide-MSEgui-talk] Save forms to bitmaps?
>
> Is about running graphical applications based on LCL and MSEgui outside
> X-Window, in framebuffer console...
>
> MSEgui already uses a double-buffer mecanism in painting the final bitmap
> on X-Window and Windows... as far as I understand... So, I will not go on
> top level trying to get forms saving to a bitmap... the mechanism is
> already present at the base of the MSEgui... just change the destination...
>
> On Fri, Aug 4, 2023 at 2:25 AM Sieghard via mseide-msegui-talk <
> mseide-msegui-talk@lists.sourceforge.net> wrote:
>
> Hello Fred,
>
> you wrote on Thu, 3 Aug 2023 18:38:56 +:
>
> > There is a topic on Lazarus forum about save forms to bitmaps with
> MSEgui:
> ...
> > https://github.com/mse-org/mseide-msegui Unfortunately, at the moment,
> > unlike LCL, MSEgui is not able to save forms to bitmaps, which is
>
> You did bring this up before, and you might remember that I investigated
> it a bit, finding that the designated functions aren't implemented.
>
> > something very important for MSEgui. Much more important than it is for
> > LCL.
>
> Hm. I don't see much neccessity for that, especially as screen capture
> programs exist in masses. Didn't you find some solution using such an
> approach yourself?
> ...
> > Is it possible to save forms to bitmaps?
>
> Well, the last thing I could achieve without delving deeply into writing
> additional drawing code was a program creating a bitmap of the, still
> empty, form rectangle, filled with black color.
>
> > Sure with a capture-screen and select a position it is possible but it
> > seems they want something else.
>
> Who are "they"? Are "they" important for msegui's persistance?
> If so, it MIGHT be useful to tackle the chore...
>
> --
> (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
>
>
>
> --
> Vasi
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>


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


Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

2023-08-04 Thread Fred vS

Hello Vasi.

Ha, ok, it is new jungle for me this framebuffer console concept.
I will study it.

Is it about run a graphic application just from terminal, after boot, without 
loading X11?
Nice if it is that but what about the forms if there is no window manager?

Fre;D


De : vasi vasi 
Envoyé : vendredi 4 août 2023 15:58
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

Is about running graphical applications based on LCL and MSEgui outside 
X-Window, in framebuffer console...

MSEgui already uses a double-buffer mecanism in painting the final bitmap on 
X-Window and Windows... as far as I understand... So, I will not go on top 
level trying to get forms saving to a bitmap... the mechanism is already 
present at the base of the MSEgui... just change the destination...

On Fri, Aug 4, 2023 at 2:25 AM Sieghard via mseide-msegui-talk 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
 wrote:
Hello Fred,

you wrote on Thu, 3 Aug 2023 18:38:56 +:

> There is a topic on Lazarus forum about save forms to bitmaps with MSEgui:
...
> https://github.com/mse-org/mseide-msegui Unfortunately, at the moment,
> unlike LCL, MSEgui is not able to save forms to bitmaps, which is

You did bring this up before, and you might remember that I investigated
it a bit, finding that the designated functions aren't implemented.

> something very important for MSEgui. Much more important than it is for
> LCL.

Hm. I don't see much neccessity for that, especially as screen capture
programs exist in masses. Didn't you find some solution using such an
approach yourself?
...
> Is it possible to save forms to bitmaps?

Well, the last thing I could achieve without delving deeply into writing
additional drawing code was a program creating a bitmap of the, still
empty, form rectangle, filled with black color.

> Sure with a capture-screen and select a position it is possible but it
> seems they want something else.

Who are "they"? Are "they" important for msegui's persistance?
If so, it MIGHT be useful to tackle the chore...

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


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


Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

2023-08-04 Thread vasi vasi
Is about running graphical applications based on LCL and MSEgui outside
X-Window, in framebuffer console...

MSEgui already uses a double-buffer mecanism in painting the final bitmap
on X-Window and Windows... as far as I understand... So, I will not go on
top level trying to get forms saving to a bitmap... the mechanism is
already present at the base of the MSEgui... just change the destination...

On Fri, Aug 4, 2023 at 2:25 AM Sieghard via mseide-msegui-talk <
mseide-msegui-talk@lists.sourceforge.net> wrote:

> Hello Fred,
>
> you wrote on Thu, 3 Aug 2023 18:38:56 +:
>
> > There is a topic on Lazarus forum about save forms to bitmaps with
> MSEgui:
> ...
> > https://github.com/mse-org/mseide-msegui Unfortunately, at the moment,
> > unlike LCL, MSEgui is not able to save forms to bitmaps, which is
>
> You did bring this up before, and you might remember that I investigated
> it a bit, finding that the designated functions aren't implemented.
>
> > something very important for MSEgui. Much more important than it is for
> > LCL.
>
> Hm. I don't see much neccessity for that, especially as screen capture
> programs exist in masses. Didn't you find some solution using such an
> approach yourself?
> ...
> > Is it possible to save forms to bitmaps?
>
> Well, the last thing I could achieve without delving deeply into writing
> additional drawing code was a program creating a bitmap of the, still
> empty, form rectangle, filled with black color.
>
> > Sure with a capture-screen and select a position it is possible but it
> > seems they want something else.
>
> Who are "they"? Are "they" important for msegui's persistance?
> If so, it MIGHT be useful to tackle the chore...
>
> --
> (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
>


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


Re: [MSEide-MSEgui-talk] INITIALIZATION SECTION

2023-08-04 Thread mohamed hamza
Hello Sieghard,

 Finaly I opted  for the solution of scanning an array of TCUSTOMEDITDATAEDIT .

procedure tfrmInfotiersfo.settext(const sender: tcustomdataedit;
   var atext: msestring; var accept: Boolean);
var  intf1:idbeditfieldlink; i:integer;
begin
for i := low(aSum) to high(aSum) do
if sender.name=aSum[i].name then
begin
accept:=tcustomdataedit(aSum[i]).getinterface(idbeditfieldlink,intf1);
with intf1.getfieldlink(), tstringdisp(findcomponent( 'SUM'+fieldName)) do
text:=updatesum(tfield(dataset.fieldbyname(fieldName)), atext, accept, text);
break;
end; end;

Where aSum is the array of tcustomdataedit , setText it's an event fired when 
the user type in and update the field.

Med.

De : Sieghard via mseide-msegui-talk 
Envoyé : jeudi 3 août 2023 23:09
À : mseide-msegui-talk@lists.sourceforge.net 

Cc : Sieghard 
Objet : Re: [MSEide-MSEgui-talk] INITIALIZATION SECTION

Hello mohamed,

you wrote on Thu, 3 Aug 2023 15:46:20 +:

> In my case , replacing :
> var frmInfotiersfo: tfrmInfotiersfo; aR1:array[1..2] of tcustomdataedit;
> oCustEdit:tcustomDataEdit; with
>  const   aSum set of tcustomdataedit = [ Price, Amount .] and then I
> can do
>
>   if oCustEdit in  aSum then  sumField( aSum[?], n);

Just asking: Is this application code or is this an internal part of msgui?
If this was application code, could you make do with something like this:

TYPE
  app_field = (Price, Amount ...);
  aSum: SET OF app_field = [ Price, Amount ... ];
  oCustEdit: app_field;
VAR
  frmInfotiersfo: tfrmInfotiersfo;
  aR1: ARRAY [Price..Amount {aSum?}] OF tcustomdataedit;
...
and later use it like
...
  IF oCustEdit IN aSum THEN sumField (aR1 [oCustEdit], n);
...
i.e. doing the set operation on an enumerated index variable and using
that to select the appropriate field  That's how I would approach such a
problem, anyway.

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