Code Monkey home page Code Monkey logo

Comments (7)

Alexey-T avatar Alexey-T commented on July 22, 2024

Added OnTabDragging, pls test it.

from atflatcontrols.

SilentDude80 avatar SilentDude80 commented on July 22, 2024

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.

Alexey-T avatar Alexey-T commented on July 22, 2024

Made the changes-- pls check is it ok? Added Tag too.

from atflatcontrols.

SilentDude80 avatar SilentDude80 commented on July 22, 2024

Works perfectly now ! Thanks a lot !

from atflatcontrols.

SilentDude80 avatar SilentDude80 commented on July 22, 2024

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.

Alexey-T avatar Alexey-T commented on July 22, 2024

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.

SilentDude80 avatar SilentDude80 commented on July 22, 2024

Sorry, was a problem in my own code - event is working fine like you said.

from atflatcontrols.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.