Recent

Author Topic: [SOLVED] Custom Titlebar  (Read 6919 times)

aydın

  • Jr. Member
  • **
  • Posts: 86
Re: Custom Titlebar
« Reply #15 on: August 03, 2023, 08:14:02 am »
Thank you so much, KodeZwerg!
Lazarus 4.99, FPC 3.3.1 on Fedora 42

aydın

  • Jr. Member
  • **
  • Posts: 86
Re: Custom Titlebar
« Reply #16 on: August 06, 2023, 02:57:46 pm »
I guess it's a little late, but it's a good example.
« Last Edit: August 06, 2023, 03:00:24 pm by aydın »
Lazarus 4.99, FPC 3.3.1 on Fedora 42

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Custom Titlebar
« Reply #17 on: August 06, 2023, 03:47:03 pm »
I think my suggestion is also a little late, if you are happy with "how the normal form is", and just want to cut caption off but rest funtionality stay, if I remember right you can use SetShape() to reform the optics of a form however you want, but I never used so I can not help.
My own creation is now also almost adult, was addint fade effects, screen border snapping etc.... but lightyears away from being final, I have less spare time right now

I try your last release soon.

Bye  8)
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

loaded

  • Hero Member
  • *****
  • Posts: 879
Re: Custom Titlebar
« Reply #18 on: August 06, 2023, 03:50:12 pm »
I checked the demo and it works. It's obvious that you put a lot of effort into the work.
Why did you feel the need to do such an extraordinary work instead of the default system applications? Such scenarios can result in different results on different versions of windows!
My advice to you; Don't waste too much time on things like this that are controlled by the OS.
Instead, it's in your best interest to research and apply newer technologies.
The more memory computers have, the less memory people seem to use. 😅

aydın

  • Jr. Member
  • **
  • Posts: 86
Re: [SOLVED] Custom Titlebar
« Reply #19 on: August 06, 2023, 06:42:03 pm »
In fact, it is a nice hobby.

Why did you feel the need to do such an extraordinary work instead of the default system applications?
The method I am currently using is not cross-platform, and it is even problematic on Windows.

Such scenarios can result in different results on different versions of windows!
Actually no, it is completely cross-platform.

I just want to customize it like the new generation applications.

If I remember right you can use SetShape() to reform the optics of a form however you want, but I never used so I can not help.
Yes, actually the FormRadial(Self,8) in the demo does this in the background, but I couldn't add it because it depends on another library.

Thanks everyone.
« Last Edit: August 06, 2023, 06:44:57 pm by aydın »
Lazarus 4.99, FPC 3.3.1 on Fedora 42

lainz

  • Hero Member
  • *****
  • Posts: 4743
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: [SOLVED] Custom Titlebar
« Reply #20 on: August 07, 2023, 12:21:29 am »
Both examples has flickering on Windows 11.

Also a demo that comes with bgracontrols has problems.

aydın

  • Jr. Member
  • **
  • Posts: 86
Re: [SOLVED] Custom Titlebar
« Reply #21 on: August 07, 2023, 10:58:54 am »
Both examples has flickering on Windows 11.
I know this error, but I can't find a solution.
I think this is because the left and width are not moving in sync. (The same is true for the right and height.)
The left property should not matter when it moves; it should be processed together with the width.

Also a demo that comes with bgracontrols has problems.
I don't remember using bgra.
Lazarus 4.99, FPC 3.3.1 on Fedora 42

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: [SOLVED] Custom Titlebar
« Reply #22 on: August 07, 2023, 01:01:00 pm »
Here is my latest thingy, lots of improvements compared to my first release, currently i am in need to refactor everything to make the bordersnapping working better.
Many bugs to fix when it is in maximized/half screen sized mode and coming back from that.
So please not judge me by those alpha implementations.
Screen flickering I do not have at all (Win10).
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

aydın

  • Jr. Member
  • **
  • Posts: 86
Re: [SOLVED] Custom Titlebar
« Reply #23 on: August 08, 2023, 08:27:34 am »
This is my last one.

I added a feature to go full screen by tapping the edges of the screen (I don't know the name of this feature).

And it probably needs to be modified for multi-screen.

I hope someone finds it useful.
Lazarus 4.99, FPC 3.3.1 on Fedora 42

Hansvb

  • Hero Member
  • *****
  • Posts: 922
Re: [SOLVED] Custom Titlebar
« Reply #24 on: August 12, 2023, 06:50:49 pm »
I found another example. (I only tried it with Windows 7).
Quote
https://forum.lazarus.freepascal.org/index.php?topic=33899.0

 

TinyPortal © 2005-2018