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

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

you wrote on Wed, 9 Aug 2023 00:12:27 +:

> >> Lagprogramming sent me PMs and agreed to share it with you.  
> 
> > Nice, it seems they are interested in some coopertion, then.
...
> Hum, Lagprogramming is a user of Lazarus forum who sent me, via PM, some

Fine, but that does mean that is only ONE guy, and not a larger project?
Sounds quite obscure, and getting worse...

> For the current "save forms to bitmap" he was responding to a post about
> framebuffer console and mentioned msegui. After he sent me some PM about

And what about the Lazarus function you mentioned some time ago? Why does
he ask for an equvalent for msegui, when he's going for Lazarus as you
write elsewhere, when it's already available for that?

> how to do it for msegui. It would be great if he jumps deeper into
> msegui, maybe begin to like it and then expands it.

This might be nice, presumed he REALLY wants to endorse msegui.

> But I have to confess that I dont understand perfectly his goal.

Yes, quite obscure indeed. Especially regarding the fact that there's the
"perfectly" viable function of X11 using a framebuffer driver. (And Linux
[maybe BSD Unix, too] is the only system using a framebuffer I'm aware of
- does Windows have something similar at all?)
Very muddled affair...

-- 
(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-09 Thread Fred vS
Hello Vasi.

>I think his goal is a solution for Lazarus and LCL... but he already has 
>msegui as inspiration...

Ha, ok, so I have an easy solution for him: he has to enable it for MSEgui 
first and then it will be much easier to get good inspiration for LCL.



I invited him to joint the msegui mailing-list.



De : vasi vasi 
Envoyé : mercredi 9 août 2023 14:41
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] Save forms to bitmaps?

I think his goal is a solution for Lazarus and LCL... but he already has msegui 
as inspiration...

On Wed, Aug 9, 2023 at 3:12 AM Fred vS 
mailto:fi...@hotmail.com>> wrote:
Hello Sieghard.

>> Lagprogramming sent me PMs and agreed to share it with you.

> Nice, it seems they are interested in some coopertion, then.
>But I'm not yet clear about what "Lagprogramming" really IS or what their
>gaol might be.

Hum, Lagprogramming is a user of Lazarus forum who sent me, via PM, some fixes 
for msegui that I commited.
For example: 
https://github.com/mse-org/mseide-msegui/commit/717a7901c4ddb9e5e09e76537c351bc9e16eeb0b

For the current "save forms to bitmap" he was responding to a post about 
framebuffer console and mentioned msegui.
After he sent me some PM about how to do it for msegui.
It would be great if he jumps deeper into msegui, maybe begin to like it and 
then expands it.

But I have to confess that I dont understand perfectly his goal.

Fre;D
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net<mailto: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-09 Thread vasi vasi
I think his goal is a solution for Lazarus and LCL... but he already has
msegui as inspiration...

On Wed, Aug 9, 2023 at 3:12 AM Fred vS  wrote:

> Hello Sieghard.
>
> >> Lagprogramming sent me PMs and agreed to share it with you.
>
> > Nice, it seems they are interested in some coopertion, then.
> >But I'm not yet clear about what "Lagprogramming" really IS or what their
> >gaol might be.
>
> Hum, Lagprogramming is a user of Lazarus forum who sent me, via PM, some
> fixes for msegui that I commited.
> For example:
> https://github.com/mse-org/mseide-msegui/commit/717a7901c4ddb9e5e09e76537c351bc9e16eeb0b
>
> For the current "save forms to bitmap" he was responding to a post about 
> framebuffer
> console and mentioned msegui.
> After he sent me some PM about how to do it for msegui.
> It would be great if he jumps deeper into msegui, maybe begin to like it
> and then expands it.
>
> But I have to confess that I dont understand perfectly his goal.
>
> Fre;D
> ___
> 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-08 Thread Fred vS
Hello Sieghard.

>> Lagprogramming sent me PMs and agreed to share it with you.

> Nice, it seems they are interested in some coopertion, then.
>But I'm not yet clear about what "Lagprogramming" really IS or what their
>gaol might be.

Hum, Lagprogramming is a user of Lazarus forum who sent me, via PM, some fixes 
for msegui that I commited.
For example: 
https://github.com/mse-org/mseide-msegui/commit/717a7901c4ddb9e5e09e76537c351bc9e16eeb0b

For the current "save forms to bitmap" he was responding to a post about 
framebuffer console and mentioned msegui.
After he sent me some PM about how to do it for msegui.
It would be great if he jumps deeper into msegui, maybe begin to like it and 
then expands it.

But I have to confess that I dont understand perfectly his goal.

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

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

you wrote on Tue, 8 Aug 2023 10:48:35 +:

Oh yes, and another remark, too: the msegui graphics implementation
obviously is based _heavily_ on X11 internal function for Linux and the
Windows GDI functions for Windows. That might mean that an adaptation to
_their_ system will either require the implementation of even the lowest
level graphical primitives separately or, if they do have them done
already, a full specification of the programming interface functions they
provide. Plus, probabely, "some" newly to develop "glue" code.

-- 
(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-08 Thread Sieghard via mseide-msegui-talk
Hello Fred,

you wrote on Tue, 8 Aug 2023 10:48:35 +:

> Lagprogramming sent me PMs and agreed to share it with you.

Nice, it seems they are interested in some coopertion, then.
But I'm not yet clear about what "Lagprogramming" really IS or what their
gaol might be. Are they trying to develop another, competing, windowing
system like X11 and Wayland, even if that should only support the
framebuffer console (but you mentioned windows, seemingly multiple
freefloating ones), or is it meant to create a different graphical user
interface, somewhat in the way of Android's, or something different
entirely? (I think I really should fire up ol' firefox for some research
on the stuff...)

> I've read the mailing list discussion regarding saving rendered form
> bitmaps and framebuffers. Maybe the following information is useful to
> you. If you need a system function free backend in MSEgui you need to

Well, that's quite a lot of stuff. Is that meant as something like a list
of required interface functions? The "gdf_" ones then might be the names
their code is built on and wants to call, while the "gui_" ones look like
the list of interface functions from msegui's Windows compatibility units,
notably, in the "kernel" subdirectory, mseguiintf.inc, msegui.pas and
windows/mseguiintf.pas, that I identified as the most probable anchors for
adaptation to some other graphical system, although they list a host of
other functions as well. Did they possibly just do a "grep" on functions
and procedures starting with "gui_" for this second list?
I didn't compare their list of functions with those I had found, though,
so I cannot really be sure they're compatible. But it WILL require quite
some more information concerning the programming interface to be able to
attempt a viable implementation. Also, it's by no means clear yet what
their system provides and what it doesn't, i.e. what restrictions have to
be observed concerning library and system service use and other things.
Much work to do yet, so.

-- 
(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-08 Thread Fred vS
Re-hello.

In previous post, the mail was not well formated, here maybe better:

This are the PMs of Lagprogramming he agreed to share:

First PM:


I've read the mailing list discussion regarding saving rendered form bitmaps 
and framebuffers. Maybe the following information is useful to you.
If you need a system function free backend in MSEgui you need to implement the 
functions:

 gdifuncty = (gdf_creategc,gdf_destroygc,gdf_changegc,gdf_createpixmap,
  gdf_pixmaptoimage,gdf_imagetopixmap,
  
gdf_getcanvasclass,gdf_endpaint,gdf_flush,gdf_movewindowrect,
  
gdf_drawlines,gdf_drawlinesegments,gdf_drawellipse,gdf_drawarc,
  gdf_fillrect,
  
gdf_fillellipse,gdf_fillarc,gdf_fillpolygon,{gdf_drawstring,}
  gdf_drawstring16,
  gdf_setcliporigin,
  
gdf_createemptyregion,gdf_createrectregion,gdf_createrectsregion,
  gdf_destroyregion,gdf_copyregion,gdf_moveregion,
  gdf_regionisempty,gdf_regionclipbox,
  gdf_regsubrect,gdf_regsubregion,
  gdf_regaddrect,gdf_regaddregion,gdf_regintersectrect,
  gdf_regintersectregion,
  gdf_copyarea,gdf_getimage,
  gdf_fonthasglyph,
  gdf_getfont,gdf_getfonthighres,gdf_freefontdata,
  gdf_gettext16width,gdf_getchar16widths,gdf_getfontmetrics
  );

LCL's customdrawn initially tried to use the fcl-image package, which is 
distributed with FPC.
At the time customdrawn developers started working, the fcl-image package was 
far from being complete and it didn't had implemented many routines.
Even today it misses features and has bugs, but it's better than it was at that 
time.
In order to get over these limitations of the fcl-image package,
customdrawn developers added functionality to LCL units like lcl/lazregions.pas.
MSEgui might have it's own fcl-image modified implementation, too.
Anyway, in the future, customdrawn developers will have to improve the 
fcl-image package, not the LCL units.
In the mentioned example the developers added a new unit for regions, instead 
of improving the fcl-image package to support regions.
For sure they had their reasons.

Instead of fcl-image you may try to use bgrabitmap.
I've never used it but maybe it has offscreen 2D rendering.
For sure circular must know if bgrabitmap has better functionality than 
fcl-image
and maybe has an idea on how much work is needed to implement in bgrabitmap the 
missing routines needed by msegui.



Second PM:

   This is what has to be implemented for the GUI-interface

function gui_init: guierrorty;
function gui_deinit: guierrorty;
procedure gui_cancelshutdown;
procedure GUI_DEBUGBEGIN; export;
procedure GUI_DEBUGEND; export;
function gui_registergdi: guierrorty;
function gui_setmainthread: guierrorty;
function gui_sethighrestimer(const avalue: boolean): guierrorty;
function gui_grouphideminimizedwindows: boolean;
function gui_postevent(event: tmseevent): guierrorty;
function gui_settimer(us: longword): guierrorty;
procedure gui_disconnectmaineventqueue();
procedure gui_connectmaineventqueue();
function gui_hasevent: boolean;
function gui_getevent: tmseevent;
function gui_escapepressed: boolean;
procedure gui_resetescapepressed;
function gui_createwindow(const rect: rectty; var options: 
internalwindowoptionsty; var awindow: windowty): guierrorty;
function gui_destroywindow(var awindow: windowty): guierrorty;
function gui_getrootwindow(id: winidty = 0): winidty;
function gui_getparentwindow(const awindow: winidty): winidty;
function gui_reparentwindow(const child: winidty; const parent: winidty; 
const pos: pointty): guierrorty;
function gui_getchildren(const id: winidty; out children: winidarty): 
guierrorty;
function gui_showsysdock(var awindow: windowty): guierrorty;
function gui_hidesysdock(var awindow: windowty): guierrorty;
function gui_docktosyswindow(var child: windowty; const akind: 
syswindowty): guierrorty;
function gui_traymessage(var awindow: windowty; const message: msestring; 
out messageid: longword; const timeoutms: longword = 0): guierrorty;
function gui_canceltraymessage(var awindow: windowty; const messageid: 
longword): guierrorty;
function gui_settrayicon(var awindow: windowty; const icon,mask: pixmapty): 
guierrorty;
function gui_settrayhint(var awindow: windowty; const hint: msestring): 
guierrorty;
function gui_flushgdi(const synchronize: boolean = false): guierrorty;
function gui_showwindow(id: winidty): guierrorty;
function gui_hidewindow(id: winidty): guierrorty;
function gui_raisewindow(id: winidty): guierrorty;
function gui_lowerwindow(id: 

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

2023-08-08 Thread Fred vS
for: 
winidty: guierrorty;

function gui_movewindowrectid: winidty; const dist: pointty; const rect: 
rectty: guierrorty;

function gui_windowatposconst pos: pointty: winidty;

function gui_getscreenrectconst id: winidty: rectty;

function gui_getworkareaid: winidty: rectty;

function gui_setapplicationiconconst icon,mask: pixmapty: guierrorty;

function gui_pidtowinidconst pids: procidarty: winidty;

function gui_setcursorshapewinid: winidty; shape: cursorshapety: 
guierrorty;

function gui_getpointerpos: pointty;

function gui_setpointerposconst pos: pointty: guierrorty;

function gui_movepointerconst dist: pointty: guierrorty;

function gui_grabpointerid: winidty: guierrorty;

function gui_ungrabpointer: guierrorty;

function gui_getpixelconst id: winidty; const pos: pointty; out pixel: 
pixelty: guierrorty;

function gui_rgbtopixelrgb: longword: pixelty;

function gui_pixeltorgbpixel: pixelty: longword;

function gui_graytopixelgray: byte: pixelty;

function gui_pixeltograypixel: pixelty: byte;

function gui_initcolormap: guierrorty;

function gui_regiontorectsconst aregion: regionty: rectarty;

function gui_getdefaultfontnames: defaultfontnamesty;

function gui_createpixmapconst size: sizety; winid: winidty = 0; kind:  
bitmapkindty = bmk_rgb; copyfrom: pixmapty = 0: pixmapty; overload;

function gui_freepixmappixmap: pixmapty: gdierrorty;

function gui_getpixmapinfovar info: pixmapinfoty: gdierrorty;

function gui_createbitmapfromdataconst size: sizety; datapo: pbyte; 
msbitfirst: boolean = false; dwordaligned: boolean = false; bottomup: boolean = 
false: pixmapty;

function gui_pixmaptoimagepixmap: pixmapty; out image: imagety; gchandle: 
longword: gdierrorty;

function gui_imagetopixmapconst image: imagety; out pixmap: pixmapty; 
gchandle: longword: gdierrorty;

function gui_allocimagememlength: integer: plongwordaty;

procedure gui_freeimagememdata: plongwordaty;

procedure gui_beep;

function gui_copytoclipboardconst value: msestring; const buffer: 
clipboardbufferty: guierrorty;

function gui_pastefromclipboardout value: msestring; const buffer: 
clipboardbufferty: guierrorty;

function gui_canpastefromclipboardconst buffer: clipboardbufferty: 
boolean;

function gui_sysdndconst action: sysdndactionty; const aintf: isysdnd; 
const arect: rectty; out aresult: boolean: guierrorty;

function gui_sysdndreaddatavar adata: string; const typeindex: 
integer: guierrorty;

function gui_sysdndreadtextvar atext: msestring; const typeindex: 
integer: guierrorty;

function gui_getgdifuncs: pgdifunctionaty;


Regarding MSEgui, for now, in order to supply mouse and keyboardevents and the 
like you need to post the according event objects into the application 
eventqueue.
This message and the previous one are the blueprints that people were talking 
on the mailing lists.

-


De : Sieghard via mseide-msegui-talk 
Envoyé : samedi 5 août 2023 02:15
À : mseide-msegui-talk@lists.sourceforge.net 

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

Hello vasi,

you wrote on Fri, 4 Aug 2023 18:11:17 +0300:

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

That is, there is NO window manager, and all the "window" shifting, sizing,
overlap handling and so on has to be done by the "application", or rather
the code it's based on and built with? That's quite a chore...

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

Some, if not most of the parts of a "blue print", at least for the basic
bitmap creation, seem to be in place already. "Only" the implementation is
badly lacking, and the knowledge of the intention behind sadly has vanished
some time ago.

> 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

Yes, that might be a wide field of applications with a rewarding amount
of use(r)s. And this might NOT be restricted to "old machines" only -
there's the huge amount of new microcontrollers fitted with LCD and OLED
based user interfaces for machines ranging from coffee brewers to whole
production line controllers. Thes OUGHT NOT use a windowing system that
allows the user to access arbitrary system components, these are meant to
restrict their use to only the application interface. And not few of these
appearing now are based on very capable ARM controllers being able to run
a fill-fledged Linux, even with a lot of services and X11.

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

2023-08-03 Thread Fred vS
Hello Sieghard.

>Who are "they"? Are "they" important for msegui's persistance?

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

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

 

Fre;D


De : Sieghard via mseide-msegui-talk 
Envoyé : vendredi 4 août 2023 00:50
À : mseide-msegui-talk@lists.sourceforge.net 

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

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
___
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-03 Thread Fred vS
Re-re hello.

OK, I found the previous post:
https://sourceforge.net/p/mseide-msegui/mailman/message/37789573/

So not yet a nice solution.

Every more idea is welcome.

Fre;D


De : Fred vS 
Envoyé : jeudi 3 août 2023 21:06
À : mseide-msegui-talk@lists.sourceforge.net 

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

Re-hello.

In Lazarus custom draw, they use this, could it be adapted for MSEgui ?:

function TCustomForm.GetFormImage: TBitmap;
var
  ARect: TRect;
begin
  Result := TBitmap.Create;
  try
Result.SetSize(ClientWidth, ClientHeight);
LCLIntf.GetWindowRect(Handle, ARect);
with GetClientOrigin do
  PaintTo(Result.Canvas, ARect.Left - X, ARect.Top - Y);
  except
Result.Free;
raise;
  end;
end;


De : Fred vS
Envoyé : jeudi 3 août 2023 20:38
À : mseide-msegui-talk@lists.sourceforge.net 

Objet : Save forms to bitmaps?

There is a topic on Lazarus forum about save forms to bitmaps with MSEgui:
https://forum.lazarus.freepascal.org/index.php/topic,64187.msg487549.html#msg487549

This is the comment:

Have a look at MSEide/MSEgui. For now it can't do that either but compared to 
LCL's customdrawn, MSEgui is much closer to achieving that.
https://github.com/mse-org/mseide-msegui
Unfortunately, at the moment, unlike LCL, MSEgui is not able to save forms to 
bitmaps, which is something very important for MSEgui. Much more important than 
it is for LCL.

---

It seems to me that it was already asked but cannot remember.

Is it possible to save forms to bitmaps?
Sure with a capture-screen and select a position it is possible but it seems 
they want something else.

___
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-03 Thread Fred vS
Re-hello.

In Lazarus custom draw, they use this, could it be adapted for MSEgui ?:

function TCustomForm.GetFormImage: TBitmap;
var
  ARect: TRect;
begin
  Result := TBitmap.Create;
  try
Result.SetSize(ClientWidth, ClientHeight);
LCLIntf.GetWindowRect(Handle, ARect);
with GetClientOrigin do
  PaintTo(Result.Canvas, ARect.Left - X, ARect.Top - Y);
  except
Result.Free;
raise;
  end;
end;


De : Fred vS
Envoyé : jeudi 3 août 2023 20:38
À : mseide-msegui-talk@lists.sourceforge.net 

Objet : Save forms to bitmaps?

There is a topic on Lazarus forum about save forms to bitmaps with MSEgui:
https://forum.lazarus.freepascal.org/index.php/topic,64187.msg487549.html#msg487549

This is the comment:

Have a look at MSEide/MSEgui. For now it can't do that either but compared to 
LCL's customdrawn, MSEgui is much closer to achieving that.
https://github.com/mse-org/mseide-msegui
Unfortunately, at the moment, unlike LCL, MSEgui is not able to save forms to 
bitmaps, which is something very important for MSEgui. Much more important than 
it is for LCL.

---

It seems to me that it was already asked but cannot remember.

Is it possible to save forms to bitmaps?
Sure with a capture-screen and select a position it is possible but it seems 
they want something else.

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