Recent

Author Topic: TControlBar and hence the Limit of moving  (Read 262 times)

paule32

  • Sr. Member
  • ****
  • Posts: 376
TControlBar and hence the Limit of moving
« on: March 15, 2025, 10:20:25 pm »
Hi,
- I have a TControlBar with a TPanel (in the TPanel resides 3 TSpeedButton).
- I can move the TPanel
- but, how can I set a move Limit ?
  because, the TPanel pops out of display scope when I move the Mouse to the right - outside of window.
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

jamie

  • Hero Member
  • *****
  • Posts: 6867
Re: TControlBar and hence the Limit of moving
« Reply #1 on: March 16, 2025, 07:42:53 pm »
There is a BandDrag event, you can evaluate the band then and reject the move etc.

The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018