Recent

Author Topic: how to utilize customize form caption row  (Read 927 times)

Aruna

  • Sr. Member
  • ****
  • Posts: 458
Re: how to utilize customize form caption row
« Reply #15 on: September 06, 2024, 05:03:38 am »
I would like to utilize form caption row .

I mean I would like to customize caption of the form .

I have attached the screens  .

if anyone know . please guide me
Hello @Prakash have a look at the attached screenshot. The attached zip has the code. It has a custom form caption, you can drag the window by dragging on the caption. If you click the window close button (usually represented by "X") it will close the window and, terminate the application.The 'File' and 'Master' you have shown in your image I have used labels if you require click functionality there are so many ways to implement it. Hope this helps. :-)
Debian GNU/Linux 11 (bullseye)
https://pascal.chat/

kirchfritz

  • Jr. Member
  • **
  • Posts: 61
  • WIN11 LAZ 2.2.4 FPC 3.2.2
Re: how to utilize customize form caption row
« Reply #16 on: September 06, 2024, 10:53:57 am »
Hello @Prakash, have a look at the attached screenshot. the attached zip has the code.
The borderless form has a custom caption and you can drag the window by dragging on the caption.
- Minimize, Maximize, Restore, Close buttons are available.
- Doubleclick on the caption maximizes/restores the window.
- A system menu is simulated.
- custom drawn borderlines are used to resize the window.
- application uses BGRA-controls!!
- application is tested on WIN11 only

 

TinyPortal © 2005-2018