Recent

Author Topic: Transparant forms RPI3  (Read 631 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 255
Transparant forms RPI3
« on: May 24, 2022, 04:10:12 pm »
Does anybody have example code to transparant your form? like alpha blend

Working with  LAZARUS v.2.2.0 and FPC 3.2.0

Cross compiling from WIN32 to Raspberry3 BullsEye

Greetz, Wouter van Wegen

Dzandaa

  • Full Member
  • ***
  • Posts: 243
  • From C# to Lazarus
Re: Transparant forms RPI3
« Reply #1 on: June 29, 2022, 10:12:45 am »
Hi,

I don't know if this is what you want, but in the Form properties, you have 2 parameters:

AlphaBlend
AlphaBlendValue

If you set AlphaBlend to True and AlphaBlendValue to 128 for example, your form and all tools inside it would be semi transparent.

B->
Dzandaa

MarkMLl

  • Hero Member
  • *****
  • Posts: 6646
Re: Transparant forms RPI3
« Reply #2 on: June 29, 2022, 11:32:20 am »
General point if I may. Be very cautious of the RPi's homegrown window manager (i.e. desktop environment), since it appears to omit passing various hints, metrics and "understood relations" to the widget set.

I've got a very unpleasant situation trying to run (somebody else's) app on an RPi, while running fine on a PC it's unusable on an RPi unless the screen is something like 1920x1200 and in the end I had to get a tiny 4K display which resulted in unreadable text.

Needless to say all involved parties disclaimed responsibility.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018