Author Topic: tabControl & TCN_SELCHANGE  (Read 12328 times)

0 Members and 1 Guest are viewing this topic.

Aurel

  • Guest
Re: tabControl & TCN_SELCHANGE
« Reply #30 on: October 19, 2013, 03:12:40 PM »
Aaahh..after all this tricks
i have first version of ASciEdit with tabs
and you can try how work tab selecting .
so just open 2 or 3 files and try change tabs...

.

JRS

  • Guest
Re: tabControl & TCN_SELCHANGE
« Reply #31 on: October 19, 2013, 04:01:44 PM »
You earned that one.  ;)

kryton9

  • Guest
Re: tabControl & TCN_SELCHANGE
« Reply #32 on: October 19, 2013, 08:48:42 PM »
Aurel, you need to attach the latest awinh.inc, there are things missing in the version I have. Better to zip all dependencies, it is getting crazy keeping track of which is the latest version of stuff any of us have.

Aurel

  • Guest
Re: tabControl & TCN_SELCHANGE
« Reply #33 on: October 19, 2013, 09:57:03 PM »
Sorry Kent
Look into attachment...

.

JRS

  • Guest
Re: tabControl & TCN_SELCHANGE
« Reply #34 on: October 20, 2013, 02:28:07 PM »
Quote
When I stand in front of a wall, neither I run into the wall nor I run against the wall, rather I jump over the wall.

Some of us need to understand why the wall is there in the first place.

Aurel

  • Guest
Re: tabControl & TCN_SELCHANGE
« Reply #35 on: November 21, 2013, 01:42:47 PM »
Hmm...
It looks that NM_CLICK = -2
is not good solution because is triggered every time when leftMause button is clicked
on current tab.
I still search for right option and get something
( i still cannot found example (C) with tabbed editor)
but found one example in VB :
Code: [Select]
CASE WM_NOTIFY
  NMHDR notify at lparam
  Select notify.code
case -552  'TCN_SELCHANGING
    'leaving tab
    int p = GetSelectedTab(tc)
    print "LEAVING->TAB:" + str(p)
    autosave()':'FindTab()
   
case -551  'TCN_SELCHANGE
    'selected tab
    'autoSave()
'int i = GetSelectedTab(tc)
'print "SELECTED->TAB:" + str(i)
FindTab()
End Select
/*  VB code
Select Case tNM.code
            Case TCN_SELCHANGING
                lTab = SelectedTab
                RaiseEvent BeforeClick(lTab, bCancel)
                If (bCancel) Then
                    ISubclass_WindowProc = 1
                End If
            Case TCN_SELCHANGE
                lTab = SelectedTab
                RaiseEvent TabClick(lTab)
            Case NM_RCLICK
                RaiseEvent TabRightClick
            End Select
*/
I hope that i will fix this soon... ::)