#55 InsertItem() to add a new tab to tab control

open
Roger Upole
pythonwin (20)
5
2014-07-14
2006-12-04
CKuhlmann
No

To add a new tab to a tab control I added the function InsertItem() in Pythonwin\win32prop.cpp. In addition to that, changes had to be made in win32\lib\commctrl.py (-> TCN_SELCHANGE etc.), win32util.cpp and win32ui.h to get/send a notification when the selected tab on the tab control has changed.

All changes are documented in the attached file changes_for_tab_control.txt.

Discussion

  • Mark Hammond
    Mark Hammond
    2006-12-04

    Logged In: YES
    user_id=14198
    Originator: NO

    Could you please supply these changes as a patch? I'm afraid I don't have time to manually stick the parts together

    Thanks,

    Mark

     
  • CKuhlmann
    CKuhlmann
    2006-12-05

     
    Attachments
  • CKuhlmann
    CKuhlmann
    2006-12-05

    Logged In: YES
    user_id=1646195
    Originator: YES

    I now uploaded a zip-file which contains win32prop.cpp, win32util.cpp, win32ui.h and commctrl.py.

     
  • Roger Upole
    Roger Upole
    2008-04-10

    Logged In: YES
    user_id=771074
    Originator: NO

    I'm working on integrating this with recent changes.
    Can you provide some python code that exercises this
    functionality to aid with testing ?

     
  • Roger Upole
    Roger Upole
    2008-04-10

    • assigned_to: nobody --> rupole