Recent

Author Topic: BGRABitmap without widgetsets ?  (Read 5689 times)

mosquito

  • Full Member
  • ***
  • Posts: 138
BGRABitmap without widgetsets ?
« on: July 15, 2021, 01:11:47 pm »
Hello,
is there any way to start a window with BGRABitmap canvas, independently from widgetsets or native windows? Looking for (Linux, Mac, Win).
« Last Edit: July 15, 2021, 01:36:43 pm by mosquito »

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: BGRABitmap without widgetsets ?
« Reply #1 on: July 15, 2021, 09:13:25 pm »
Yes, you can use it with NoGUI widgetset for example.
Conscience is the debugger of the mind

mosquito

  • Full Member
  • ***
  • Posts: 138
Re: BGRABitmap without widgetsets ?
« Reply #2 on: July 15, 2021, 10:40:32 pm »
Thank you, I know this concept, but this does not raise a window. In my head there were things like Xlib, GDI, Framebuffer, etc.

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: BGRABitmap without widgetsets ?
« Reply #3 on: July 15, 2021, 11:04:51 pm »
Thank you, I know this concept, but this does not raise a window. In my head there were things like Xlib, GDI, Framebuffer, etc.

You may use mseide-msegui, it is BGRABitmap compatible and uses directly XLib for Unix and GDI for Windows.

Included a msegui form designed by BGRABitmap.
« Last Edit: July 15, 2021, 11:33:00 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

mosquito

  • Full Member
  • ***
  • Posts: 138
Re: BGRABitmap without widgetsets ?
« Reply #4 on: July 16, 2021, 08:29:11 am »
Thanks for the input. It would be perfect if it could compile to Mac, even if it was just a window with a canvas. I don't know if it's on your roadmap. Perhaps in a supposed cross-platform publication, it might be suggested to use crossover (like wine), but I don't know if a mse-msgui app would work this way. Mse was on my to-try sheet, maybe it's time.

Another possibility I'm thinking of is raising an OpenGL context (I think this is cross-platform), but although BGRABitmap supports OpenGL, I don't know if they would be compatible for all three platforms.

Thanks again.

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: BGRABitmap without widgetsets ?
« Reply #5 on: July 16, 2021, 12:23:07 pm »
Thanks for the input. It would be perfect if it could compile to Mac, even if it was just a window with a canvas. I don't know if it's on your roadmap. Perhaps in a supposed cross-platform publication, it might be suggested to use crossover (like wine), but I don't know if a mse-msgui app would work this way. Mse was on my to-try sheet, maybe it's time.

Another possibility I'm thinking of is raising an OpenGL context (I think this is cross-platform), but although BGRABitmap supports OpenGL, I don't know if they would be compatible for all three platforms.

Thanks again.

Hello.

msegui can create borderless form and shaped form, see picture.

msegui supports also OpenGL directly, even without the help of BGRABitmap.

About the Mac, imho, all what is not absolutely pure Mac, from certified Mac developers with Mac medals and Mac brain will never be really welcome in Mac world.

Fre;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

mosquito

  • Full Member
  • ***
  • Posts: 138
Re: BGRABitmap without widgetsets ?
« Reply #6 on: July 16, 2021, 12:59:09 pm »
Impressive, it is very close to what I am looking for. Thanks for your job.

Quote
About the Mac, imho, all what is not absolutely pure Mac, from certified Mac developers with Mac medals and Mac brain will never be really welcome in Mac world.

This is surely true. But it is also true that outside the business environment, home users consume Mac applications, even if they are not orthodoxly Mac. For example applications embedded in Nw.js or Electron. Or any Game Engine that exports to Mac, or of course Lazarus applications to Mac.

I know of some projects that have stopped publishing their IDES for Mac, tired of struggling with the totalitarian changes of the renders, etc. But they still allow compiling to Mac from Linux or Windows.

Anyway, thanks for sharing your work. I assure you I will give MSE a try.
« Last Edit: July 16, 2021, 01:03:28 pm by mosquito »

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: BGRABitmap without widgetsets ?
« Reply #7 on: July 16, 2021, 01:08:06 pm »
Hello Mosquito.

Quote
Anyway, thanks for sharing your work.

Thanks for the thanks but all the thanks are for Martin, he did all.
For the compatibility with > fpc 3.0.0, the thanks are for Sven, I only followed his advice.
And for the compatibility with BGRABitmap, it is the work of Circular and his mse-classes-bridge.
For the new shaped forms the work was initiated by Alexander.

Fre;D
« Last Edit: July 16, 2021, 01:24:08 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

mosquito

  • Full Member
  • ***
  • Posts: 138
Re: BGRABitmap without widgetsets ?
« Reply #8 on: July 16, 2021, 01:20:42 pm »
No problem, I extend my thanks to Martin Schreiber, the entire MSE team and everyone who supports him (including the fans).  ;)

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: BGRABitmap without widgetsets ?
« Reply #9 on: July 16, 2021, 03:01:58 pm »
I think you may be unaware that, sadly, Martin is no longer with us.

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: BGRABitmap without widgetsets ?
« Reply #10 on: July 16, 2021, 03:28:28 pm »
I think you may be unaware that, sadly, Martin is no longer with us.

Biography of Martin
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

mosquito

  • Full Member
  • ***
  • Posts: 138
Re: BGRABitmap without widgetsets ?
« Reply #11 on: July 16, 2021, 03:38:15 pm »
It seems that not only a great programmer but also a great person has left. Although 3 years late, my condolences for him, for all his family and friends.

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: BGRABitmap without widgetsets ?
« Reply #12 on: July 16, 2021, 04:26:57 pm »
It seems that not only a great programmer but also a great person has left. Although 3 years late, my condolences for him, for all his family and friends.

I had some small contact with him and yes, he was a great man. Sometimes we had some difficulty communicating (his English--like mine--was sometimes a tiny bit strange and the little Spanish he had was quite funny) and I remember he once wrote something like: "you and I, we talk Pascal, já? so never mind our other languages: let's talk Pascal". And so we did :)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018