Re: [MSEide-MSEgui-talk] Transparent background of form.

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

>> MSEclock is a good
>> demo to show msegui feature and explain how it works.

> Upps, not so fast - I do not want to totally loose control over this
(still my?) creation!

Of corse! ( it always work when I say "I will do for you" ;-) )

>> The updated msewidget.pas is included in root directory source so
>> only need to compile MSEclock.

> (I still have to recompile my mseide instance.)

Not really but you will have a warning "onmouseevent not assigned for panel", 
just click "Cancel" and compile it.

> Still, it might not be too bad to have some people look over it to find hidden
> issues, which can be done by ACTIVE users as well. How many are these?

I dont know the only stat I have is by GitHub and those last 2 weeks it was 270 
view butI dont know how many use MSEgui.

>>> What's your opinion?)
>> I totally agree with you.
> Erhmm - does that mean this is an "invitation" (read: request) for me  to 
> implement that and provide you with the result?

Hum, if you feel it fun, with pleasure ;-)

Have a nice Sunday!

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] Transparent background of form.

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

vous ecrit au Sat, 17 Sep 2022 12:19:33 +:

[MSEclock]
> I added templates of frames in your demo, to show how to use it, also
> added moving window with simple click-hold + move. MSEclock is a good
> demo to show msegui feature and explain how it works.

Upps, not so fast - I do not want to totally loose control over this
(still my?) creation!

> The updated msewidget.pas is included in root directory source so
> only need to compile MSEclock.

Ok, I've set it to be retrieved the next time my machine goes on line.


Vous ecrit au Sat, 17 Sep 2022 14:58:50 +:

> >. It will NOT work within the display fields, because these don't
...
> It works because in the demo was assigned to the form, Rahmen, Hour
> and Datum.

Ah, yes, that will do it. I just wondered that a string display should
also be affected by your modification, but indeed, it is. So this is a
descendant of the same class as a simplewidget. Well, another
ideosyncrasy...(I still have to recompile my mseide instance.)


Vous ecrit au Sat, 17 Sep 2022 15:51:00 +:

> Maybe a explanation is that Lazarus ***needs*** more contributors.
> There are more than 2.2 k (> 2200 !) issues not resolved!
...
> MSEgui has less than 3 ...

Yes, not a lot. And it was developed by just a single person. Still,
it might not be too bad to have some people look over it to find hidden
issues, which can be done by ACTIVE users as well. How many are these?


Vous ecrit au Sat, 17 Sep 2022 12:44:46 +:

> >> ..., now the rounded clock can move.
> 
> > If you really need that? As written otherwise, on my system, under
> > my window manager, it's sufficient to hold the "Alt" key in
...
> Ha, ok, indeed, it works here on Debian 11.
> (But... you need 2 hands to do it and not so easy than only click +
> move   )

I don't have any trouble with that method, but I don't constantly
shuffle windows around anyway - I use them to wrk within. But of
course, that's a little inconvenience, but only neccessary for
frameless windows, after all.


Vous ecrit au Sat, 17 Sep 2022 13:18:54 +:

> >(BTW, the additional new attributes (window options)
> > ...
> > What's your opinion?)
> 
> I totally agree with you.
> I was focused on the result and have done it the
> "fast-easy-no-thesaurus" way for window options. Also the names used
> are not "Pure-English" and, like you proposed, mut be changed. (My
> opinion is also that your update is more than welcome  ;-) )

Erhmm - does that mean this is an "invitation" (read: request) for me
to implement that and provide you with the result?
Well, I may do it, but only when I can spare the time. For now, I'm
still working on the font dialog.

Have a nice (residual) weekend!

-- 
(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] Transparent background of form.

2022-09-17 Thread Fred van Stappen
About difference in contributions for Lazarus vs MSEgui.

Maybe a explanation is that Lazarus ***needs*** more contributors.
There are more than 2.2 k (> 2200 !) issues not resolved!
https://gitlab.com/groups/freepascal.org/lazarus/-/issues

MSEgui has less than 3 ...
https://github.com/mse-org/mseide-msegui/issues



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] Transparent background of form.

2022-09-17 Thread Fred van Stappen
>>> CAN msegui still claim any popularity?
>> Difficult to say.
> And how many contributors are there still?

You, Roland for demos and me ;-) !

I agree no pub is done and only few people still use mailing list.
In the issues of mseide-msegui GitHub there are still movements.
https://github.com/mse-org/mseide-msegui/issues

[https://opengraph.githubassets.com/8735d27ddde9ac157cc6c0bb654fdb3d4a2c369c44d7cd2756d008eed70d52cc/mse-org/mseide-msegui]
Issues · mse-org/mseide-msegui
MSEide is a Rapid Application Development IDE for platform independent rich GUI 
applications in the Pascal language. It comes with its own GUI toolkit called 
MSEgui. Binaries: https://github.com/ms...
github.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] Transparent background of form.

2022-09-17 Thread Fred van Stappen
>. It will NOT work within the display fields, because these don't expose a
> "simplwidget". You can make the clock field sensitive as well, though,
> by assigning the move method to the field "Rahmen" also.

It works because in the demo was assigned to the form, Rahmen, Hour and Datum.

Published "onmouseevent"  was set to tactionpublishedwidgetnwr = 
class(tactionwidget).

On so for Datum (tstringdisp) "onmouseevent" is assigned too.

Fre;D

 De : Sieghard via mseide-msegui-talk 
Envoyé : samedi 17 septembre 2022 16:01
À : mseide-msegui-talk@lists.sourceforge.net 

Cc : Sieghard 
Objet : Re: [MSEide-MSEgui-talk] Transparent background of form.

Hallo Fred van Stappen,

vous ecrit au Sat, 17 Sep 2022 11:04:55 +:

> >> So I did make public onmouseevent for mseSimpleWidget:
...
> >> And recompiled ideU with it.
>
> > So it's useable with ideU only, not with the regular mseide?
>
> No, msewidgets.pas is part of msegui code.

Yes, I realize that - but if you do NOT recompile the regular ide, then
you will not have direct access to the additional field through it,
will you?

> But to make it usable with MSEide you need to re-compile mseide with
> updated msewidgets.pas.
>
> ...
> >> ..., now the rounded clock can move.
...
> > Are you restricted to use Windows, perhaps?
>
> Hum, I dont have Windows installed, I have to check if it works on
> Windows too.

Please check it out if you can - I don't have a really useable Windows
installed, just a couple of incomplete oldish versios (W7 as the most
recent), so I really cannot test that. Oh, but you said, you don't have
Windows installed either. Don't burden you with  it, if there's no
other reason to do. I DO have access - sometimes - to a machine where
a W10 is running at a customer's site. There I could probaely check
that out, although it may take a little while.

BTW, with your mouse move method, "the rounded clock can move" only if
you grab it at the in the right area, i.e. the area of the "Panel". It
will NOT work within the display fields, because these don't expose a
"simplwidget". You can make the clock field sensitive as well, though,
by assigning the move method to the field "Rahmen" also. The date field
would have to be overlaid by a transparent "simplewidget" though, to
make that work.

> >> What do you think to make onmouseevent public for SimpleWidget?

Well, seen that way, possibly not a really good idea.
I think anyway there should be an option (it it not already exists)
to allow for a window to evaluate these kinds of events BEFORE passing
them on to its client windows. In fact, that's how it's handled by most
other GUI frameworks, as far as I know.
But anyway, I did implement your function, but couldn't resist to
"optimize" it a bit. In the course of doing so, I found that no vector
operations exist for points, which would often be handy for working
with these. So I created a couple, as given below.
Now, that's my "optimized" version of your mouse move method:
___

// Arithhmetic operator overloading for Points should really exist:
OPERATOR + (P1, P2: PointTy): PointTy;
 BEGIN
   Result.x:= P1.x+ P2.x;
   Result.y:= P1.y+ P2.y;
 END;

OPERATOR - (P1, P2: PointTy): PointTy;
 BEGIN
   Result.x:= P1.x- P2.x;
   Result.y:= P1.y- P2.y;
 END;

procedure tclockworkfo.mouseevent (const sender: twidget;
   var ainfo: mouseeventinfoty);
// assigned to Panel-background
begin
  with ainfo do
case eventkind of
  ek_mousemove:
if shiftstate = [ss_left] then
  self.pos:= self.pos+ pos- oripoint;
  ek_buttonpress:
begin
  oripoint:= ainfo.pos;
  cursor:= cr_pointinghand;
end;
  ek_buttonrelease:
   cursor:= cr_default;
end;
end;
___

BTW, the "ispressed" variable isn't really neccessary, as long as no
events get lost. After all, the state of the mouse button can always
be evaluated through the field "shiftstate" of the "ainfo" parameter,
which is provided anyway. I changed the chain of "if" statements to a
"case", because there's no point evaluating the other conditions if
the active one has been processed. This appears to work flawlessly.

> >CAN msegui still claim any popularity?
>
> Difficult to say.
[GitHub]
> It gives a graphic of last 15 days traffic.
> The average is +- 80 new visitors each 2 weeks.
> And for september +-100 new visitors for 2 first weeks.
> I agree it is not many but still > 0.  ;-)

And how many contributors are there still? It seems this list (that I
use through a mailing-list-to-news-group converter system) seems pretty
lonesome now, with you and me the only users left. (It could probabely
be shut down, if these exchanges were switched over to direkt email
correspondence.)
Do you still get help requests of users or complaints about problems
or missing features?
In any case, it might be required to make 

Re: [MSEide-MSEgui-talk] Transparent background of form.

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

vous ecrit au Sat, 17 Sep 2022 11:04:55 +:

> >> So I did make public onmouseevent for mseSimpleWidget:
...
> >> And recompiled ideU with it.
> 
> > So it's useable with ideU only, not with the regular mseide?
> 
> No, msewidgets.pas is part of msegui code.

Yes, I realize that - but if you do NOT recompile the regular ide, then
you will not have direct access to the additional field through it,
will you?

> But to make it usable with MSEide you need to re-compile mseide with
> updated msewidgets.pas.
> 
> ...
> >> ..., now the rounded clock can move.
...
> > Are you restricted to use Windows, perhaps?
> 
> Hum, I dont have Windows installed, I have to check if it works on
> Windows too.

Please check it out if you can - I don't have a really useable Windows
installed, just a couple of incomplete oldish versios (W7 as the most
recent), so I really cannot test that. Oh, but you said, you don't have
Windows installed either. Don't burden you with  it, if there's no
other reason to do. I DO have access - sometimes - to a machine where
a W10 is running at a customer's site. There I could probaely check
that out, although it may take a little while.

BTW, with your mouse move method, "the rounded clock can move" only if
you grab it at the in the right area, i.e. the area of the "Panel". It
will NOT work within the display fields, because these don't expose a
"simplwidget". You can make the clock field sensitive as well, though,
by assigning the move method to the field "Rahmen" also. The date field
would have to be overlaid by a transparent "simplewidget" though, to
make that work.

> >> What do you think to make onmouseevent public for SimpleWidget?

Well, seen that way, possibly not a really good idea.
I think anyway there should be an option (it it not already exists)
to allow for a window to evaluate these kinds of events BEFORE passing
them on to its client windows. In fact, that's how it's handled by most
other GUI frameworks, as far as I know.
But anyway, I did implement your function, but couldn't resist to
"optimize" it a bit. In the course of doing so, I found that no vector
operations exist for points, which would often be handy for working
with these. So I created a couple, as given below.
Now, that's my "optimized" version of your mouse move method:
___

// Arithhmetic operator overloading for Points should really exist:
OPERATOR + (P1, P2: PointTy): PointTy;
 BEGIN
   Result.x:= P1.x+ P2.x;
   Result.y:= P1.y+ P2.y;
 END;

OPERATOR - (P1, P2: PointTy): PointTy;
 BEGIN
   Result.x:= P1.x- P2.x;
   Result.y:= P1.y- P2.y;
 END;

procedure tclockworkfo.mouseevent (const sender: twidget;
   var ainfo: mouseeventinfoty);
// assigned to Panel-background
begin
  with ainfo do
case eventkind of
  ek_mousemove:
if shiftstate = [ss_left] then
  self.pos:= self.pos+ pos- oripoint;
  ek_buttonpress:
begin
  oripoint:= ainfo.pos;
  cursor:= cr_pointinghand;
end;
  ek_buttonrelease:
   cursor:= cr_default;
end;
end;
___

BTW, the "ispressed" variable isn't really neccessary, as long as no
events get lost. After all, the state of the mouse button can always
be evaluated through the field "shiftstate" of the "ainfo" parameter,
which is provided anyway. I changed the chain of "if" statements to a
"case", because there's no point evaluating the other conditions if
the active one has been processed. This appears to work flawlessly.

> >CAN msegui still claim any popularity?
> 
> Difficult to say.
[GitHub]
> It gives a graphic of last 15 days traffic.
> The average is +- 80 new visitors each 2 weeks.
> And for september +-100 new visitors for 2 first weeks.
> I agree it is not many but still > 0.  ;-)

And how many contributors are there still? It seems this list (that I
use through a mailing-list-to-news-group converter system) seems pretty
lonesome now, with you and me the only users left. (It could probabely
be shut down, if these exchanges were switched over to direkt email
correspondence.)
Do you still get help requests of users or complaints about problems
or missing features?
In any case, it might be required to make some attempts at advertising
mseide-msegui, like is done for Lazarus. There seem to be no "self-
runners" possible any more, these days, being them as ingenious as they
might ever be.

> > BTW, the MSEclock on my web site isn't "finished" in any way.
> 
> Yes, of course, but imho, it will be a nice demo to show how
> shaped-form, multi-languages, ... work.

Maybe, and I'm about to update the stuff anyway and plan to provide a
new version "soon". By now, the main road block is the new font dialog,
where I have't yet figured out a good way to handle the font attributes,
like bold or italic or so. Martin has done it in a quite ideosyncratic
way, and the font list recovered by 

Re: [MSEide-MSEgui-talk] Transparent background of form.

2022-09-17 Thread Fred van Stappen
Re,..., hallo Sieghard.

>(BTW, the additional new attributes (window options)
> ...
> What's your opinion?)

I totally agree with you.
I was focused on the result and have done it the "fast-easy-no-thesaurus" way 
for window options.
Also the names used are not "Pure-English" and, like you proposed, mut be 
changed.
(My opinion is also that your update is more than welcome  ;-) )

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] Transparent background of form.

2022-09-17 Thread Fred van Stappen
Re... hello Sieghard.

>> ..., now the rounded clock can move.

> If you really need that? As written otherwise, on my system, under my
> window manager, it's sufficient to hold the "Alt" key in conjunction
> with the right mouse bitton to move the window, even if it has no frame.

Ha, ok, indeed, it works here on Debian 11.
(But... you need 2 hands to do it and not so easy than only click + move   )

Have a nice week-end.

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] Transparent background of form.

2022-09-17 Thread Fred van Stappen
>> BTW, the MSEclock on my web site isn't "finished" in any way.

> Yes, of course, but imho, it will be a nice demo to show how shaped-form, 
> multi-languages, ... work.

I added templates of frames in your demo, to show how to use it, also added 
moving window with simple click-hold + move.
MSEclock is a good demo to show msegui feature and explain how it works.

The updated msewidget.pas is included in root directory source so only need to 
compile MSEclock.

https://github.com/fredvs/ideU/files/9591614/MSEclock_ext.zip

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] Transparent background of form.

2022-09-17 Thread Fred van Stappen
Hallo Sieghard.

>> So I did make public onmouseevent for mseSimpleWidget:
>> In msewidgets.pas, added in parent class of simplewidget this:
...
>> And recompiled ideU with it.

> So it's useable with ideU only, not with the regular mseide?

No, msewidgets.pas is part of msegui code.
But to make it usable with MSEide you need to re-compile mseide with updated 
msewidgets.pas.

...
>> ..., now the rounded clock can move.

> If you really need that? As written otherwise, on my system, under my
> window manager, it's sufficient to hold the "Alt" key in conjunction
> with the right mouse bitton to move the window, even if it has no frame.

Ha I did not know this, I will try.

> Are you restricted to use Windows, perhaps?

Hum, I dont have Windows installed, I have to check if it works on Windows too.

>> What do you think to make onmouseevent public for SimpleWidget?

> If you need it, why not do so?

I mean, if make it public in official msegui source, should it make problems?

>CAN msegui still claim any popularity?

Difficult to say.
In GitHub there is a option for people that has administration right (you are 
more welcome to become one)
https://github.com/mse-org/mseide-msegui/graphs/traffic

It gives a graphic of last 15 days traffic.
The average is +- 80 new visitors each 2 weeks.
And for september +-100 new visitors for 2 first weeks.
I agree it is not many but still > 0.  ;-)

> BTW, the MSEclock on my web site isn't "finished" in any way.

Yes, of course, but imho, it will be a nice demo to show how shaped-form, 
multi-languages, ... work.

Thanks Sieghard.

And have lot of fun.

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