Mouse click on CustomComponent to call a tab

Home Forums General Programming Mouse click on CustomComponent to call a tab

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #72192
    human fly
    Participant
      • Topics: 124
      • Replies: 1070
      • Total: 1194
      • ★★★★

      how does ‘Called when a mouse is down’ work?
      (component,event)?

      i have a UITabs containing controls for 3 envelopes, on 3 tabs,
      and 3 CustomComponents as graphic EG displays.

      i want to be able to click on each display to call its tab
      -use it like a click-switch

      i think ‘Mouse Down Callback’ is where the method should be
      assigned, and then i can run a function with uiTabsCurrentTab,
      which i’ve seen but not used yet.

      #72197
      goodweather
      Participant
        • Topics: 45
        • Replies: 550
        • Total: 595
        • ★★★

        Have a look at my Pro2 panel and its methods.
        I have several _OnClick methods + Tab_OnChange.
        ALso look at http://ctrlr.org/forums/topic/how-to-get-the-mouse-event-object-in-any-method/. I explained some stuff…

        #72198
        human fly
        Participant
          • Topics: 124
          • Replies: 1070
          • Total: 1194
          • ★★★★

          Hi Goodweather,
          i have downloaded your panel and have it in front of me now.
          very interesting to look at, a lot of detail, and comprises
          a lot of things one would want to do. (major piece of work)

          so i guess it is a good starting point for discussion 🙂 i’ve
          gone through some of it – mainly looking for clues on what
          i want to achieve. there are some good examples for
          ‘good practice’.

          i see how you use OnClick for every parameter to change the
          uiLabelText on a UILabel (and set up other stuff).

          i shall attempt to do that to call a tab on a UITab when
          i click on a CustomComponent… seems simple enough, i was
          unclear about what ‘event’ could be: expression, etc.
          (still pretty hazy on basics, picking up stuff by observing.
          can, now, figure out why something doesn’t compile, lol)

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The forum ‘Programming’ is closed to new topics and replies.
        There is currently 0 users and 36 guests online
        No users are currently active
        Forum Statistics
        Threads: 2,495, Posts: 17,374, Members: 77,605
        Most users ever online was 12 on January 22, 2019 3:47 pm
        Ctrlr