Comments (7)
Added OnTabDragging, pls test it.
from atflatcontrols.
Wow, thank you for that fast reply and enhancement.
It basically works, but I noticed two things:
-
The OnTabDragging event fires every time the mouse is moved, even if the TabIndex does not change while dragging the mouse. Could you adjust it that it fires only if the index really would change after releasing the mouse button ?
-
I forgot about a little modification that I did by myself to the previous version of ATFlatControl, which of course was removed again after installing/overwriting the old version with your new one, and so the program did not compile.
I just added a
property Tag:integer read FTag write FTag;
to the public section of TATTabData class to be able to store a reference to e.g. an array index or database index. Could you also include that into your official code or do you know a more easy way that such code modifications are not lost ?
from atflatcontrols.
Made the changes-- pls check is it ok? Added Tag too.
from atflatcontrols.
Works perfectly now ! Thanks a lot !
from atflatcontrols.
Hi Alexey - i came across a problem:
The event does not fire, when the tab insertion indicator moves again to it's original position/index - i would need the event there too...
Thank you !
from atflatcontrols.
I added indicator of OnTabDragging to the app/demo_tabs program. it shows line like 'OnTagDragging: 2 -> 3' on the bottom of the form. I cannot see your issue - I see indicator always. even when I return to original drop-index.
ie I see
- 2 -> 2 initially
- 2 -> 3 when I move mouse righter
- 2 -> 2 when I mose mouse back
from atflatcontrols.
Sorry, was a problem in my own code - event is working fine like you said.
from atflatcontrols.
Related Issues (20)
- Drag/drop from other controls not working HOT 7
- Font scaling correction HOT 8
- Question about buttons placed on the left side and tabwidth of the leftmost tab after scrolling HOT 4
- Can't compile ATCanvasPrimitives in 10.4 HOT 4
- How put a form insde tTab or controls like tpage HOT 3
- Prob with DragDrop (unexpected exchange of tabs)? HOT 14
- Little problem again HOT 4
- Small problem
- Little problem in Delphi
- How to change the position of dropdown list of a ATComboEdit? HOT 6
- Bug report in TabChangeQuery HOT 3
- Case where changed Data.TabHint is not reliably propagated to tab's hint HOT 9
- Problem HOT 2
- Delphi 11 + TAntialiasingMode HOT 8
- ATStatusBar.pas - Delphi 10.2 HOT 1
- Option for right click HOT 2
- OptMouseDragOutEnabled broken? HOT 3
- Drag marker shown after context menu HOT 21
- Drag marker shown at left click on active tab HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atflatcontrols.