Recent

Author Topic: Your best UI design - contest  (Read 10653 times)

lainz

  • Hero Member
  • *****
  • Posts: 4473
    • https://lainz.github.io/
Re: Your best UI design - contest
« Reply #45 on: March 04, 2024, 02:32:23 pm »
In color parameter use BGRAPixelTransparent in unit BgrabitmapTypes

d7_2_laz

  • Hero Member
  • *****
  • Posts: 512
Re: Your best UI design - contest
« Reply #46 on: March 04, 2024, 02:55:40 pm »
In color parameter use BGRAPixelTransparent in unit BgrabitmapTypes

Oh, I already had tried this
Code: Pascal  [Select][+][-]
  1.  //bmp := TBGRABitmap.Create(AParent.Width, AParent.Height, $00616161); // *** TODO: transparent ***  // Wiki sample:  clBtnFace
  2.   bmp := TBGRABitmap.Create(AParent.Width, AParent.Height, BGRAPixelTransparent); // *** TODO: transparent ***  // Wiki sample:  clBtnFace

Lazarus 3.2  FPC 3.2.2 Win10 64bit

lainz

  • Hero Member
  • *****
  • Posts: 4473
    • https://lainz.github.io/
Re: Your best UI design - contest
« Reply #47 on: March 04, 2024, 03:21:28 pm »
bmp.Draw(ACanvas, 0, 0);

Try the last parameter with true or false.

d7_2_laz

  • Hero Member
  • *****
  • Posts: 512
Re: Your best UI design - contest
« Reply #48 on: March 04, 2024, 03:49:20 pm »
Ah, i see, optional 4th parameter Opaque, defaulted to true.
Unfortunately it doesn't change anything here.
Code: Pascal  [Select][+][-]
  1.     bmp.Draw(ACanvas, 0, 0, False);  // False or true, no difference here
Lazarus 3.2  FPC 3.2.2 Win10 64bit

lainz

  • Hero Member
  • *****
  • Posts: 4473
    • https://lainz.github.io/
Re: Your best UI design - contest
« Reply #49 on: March 04, 2024, 04:56:44 pm »
Can you share a small demo project, showing the issue?

So we can test and try?

d7_2_laz

  • Hero Member
  • *****
  • Posts: 512
Re: Your best UI design - contest
« Reply #50 on: March 04, 2024, 05:02:44 pm »
@Lainz,i think i found it!  -  :)       ->   Using “bmp.FillTransparent
Code: Pascal  [Select][+][-]
  1.     bmp.FillTransparent;      // !!!!!!
  2.     bmp.TextOut(Rect.Left + aLeftOffs, Rect.Top + 2, AText, AFont.Color);
  3.     bmp.Draw(ACanvas, 0, 0, False);
  4.  

Lazarus 3.2  FPC 3.2.2 Win10 64bit

lainz

  • Hero Member
  • *****
  • Posts: 4473
    • https://lainz.github.io/
Re: Your best UI design - contest
« Reply #51 on: March 26, 2024, 05:31:17 am »
No one else is sharing?

There's Lazpaint. CudaText... Please share your screenshots  :)

cdbc

  • Hero Member
  • *****
  • Posts: 1090
    • http://www.cdbc.dk
Re: Your best UI design - contest
« Reply #52 on: March 26, 2024, 09:20:44 am »
Hi
Well ok then...
This little app started life as a small tool, for me to keep track on the wife's internet-shopping-portals logins & passwords etc.  :D
I started coding the backend and did the testing in a small console-app, because that's easier & quicker  8)
Then I thought, 'what the he**' why not kick it, while you're at it...
So, this /little/ app turned out to be:
1) a showcase for programming the 'MVVM'-pattern, literally.
2) a showcase for simple, yet effective use of ...tadaaaa: the 'Crt'-unit.
3) a showcase for the use of my 'Plugin-framework', very aptly named:
    P.I.S.S (P)lug(I)n (S)ervices (S)olution  :-X
4) a proof of the concept behind both 'MVVM' & 'Plugins'.
5) showing off 'fine grained' encryption via 256bit hashed Rijndael algorithm.

I'm right now, coding the /gui/-frontend and again, I thought 'wthn', why not make it look like its cli-cousin?!?  %)
It is harder than you think!
Oh, and it's blazingly fast.
The rest of the pics comes in next post...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

cdbc

  • Hero Member
  • *****
  • Posts: 1090
    • http://www.cdbc.dk
Re: Your best UI design - contest
« Reply #53 on: March 26, 2024, 09:21:25 am »
2
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

cdbc

  • Hero Member
  • *****
  • Posts: 1090
    • http://www.cdbc.dk
Re: Your best UI design - contest
« Reply #54 on: March 26, 2024, 09:22:05 am »
3
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

cdbc

  • Hero Member
  • *****
  • Posts: 1090
    • http://www.cdbc.dk
Re: Your best UI design - contest
« Reply #55 on: March 26, 2024, 09:22:48 am »
4
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

cdbc

  • Hero Member
  • *****
  • Posts: 1090
    • http://www.cdbc.dk
Re: Your best UI design - contest
« Reply #56 on: March 26, 2024, 09:23:04 am »
5
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

cdbc

  • Hero Member
  • *****
  • Posts: 1090
    • http://www.cdbc.dk
Re: Your best UI design - contest
« Reply #57 on: March 26, 2024, 09:25:47 am »
Hi
6 & the last one...
I know this may all look dated and childish to you all, but here it is anyway... 8-)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Your best UI design - contest
« Reply #58 on: March 26, 2024, 09:26:20 am »
Does this count???  :D

95% finished, done during last weekend. need to finish and tidy code up.
Will share when finished, so others can test and fix for other OS's.
Due to limitation of attachment size, will need to put on git or somethimg, compiled size is <5mb on win, which includes all the sound and images graphics (in the resource files).
it uses bgrabitmap, uos for sound.

« Last Edit: March 26, 2024, 09:58:55 am by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

cdbc

  • Hero Member
  • *****
  • Posts: 1090
    • http://www.cdbc.dk
Re: Your best UI design - contest
« Reply #59 on: March 26, 2024, 09:42:18 am »
Hi
Hell Yeah Josh, good on you man!  8-)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018