Win32-GUI

 view release on metacpan or  search on metacpan

Combobox.xs  view on Meta::CPAN

            PerlResult = DoEvent(NOTXSCALL perlud, PERLWIN32GUI_NEM_LOSTFOCUS, "LostFocus", -1 );
            break;
        case CBN_DBLCLK:
            /*
             * (@)EVENT:DblClick()
             * Sent when the user double clicks on an item from the Combobox
             * (@)APPLIES_TO:Combobox, ComboboxEx
             */ 
            PerlResult = DoEvent(NOTXSCALL perlud, PERLWIN32GUI_NEM_DBLCLICK, "DblClick", -1 );
            break;
        case CBN_SELCHANGE:
            /*
             * (@)EVENT:Change()
             * Sent when the user selects an item from the Combobox
             * (@)APPLIES_TO:Combobox, ComboboxEx
             */
            PerlResult = DoEvent(NOTXSCALL perlud, PERLWIN32GUI_NEM_CONTROL1, "Change", -1 );
            break;
        case CBN_DROPDOWN:
            /*
             * (@)EVENT:DropDown()

GENERATED/Win32/GUI/Listbox.pod  view on Meta::CPAN

=head1 EVENTS

L<Common events|Win32::GUI::Reference::Events> apply to most windows and controls.

=for comment $Id: per_package_event.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $

=head2 Click

B<Click()>

DEPRECATED use SelChange event.

=for comment $Id: per_package_event.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $

=head2 DblClick

B<DblClick()>

Sent when the user double clicks on the control.

=for comment $Id: per_package_event.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $

GENERATED/Win32/GUI/RichEdit.pod  view on Meta::CPAN

  ENM_KEYEVENTS       Sends EN_MSGFILTER notifications for keyboard events.
  ENM_LINK            Rich Edit 2.0 and later: Sends EN_LINK notifications when
                      the mouse pointer is over text that has the CFE_LINK and
                      one of several mouse actions is performed.
  ENM_MOUSEEVENTS     Sends EN_MSGFILTER notifications for mouse events.
  ENM_OBJECTPOSITIONS Sends EN_OBJECTPOSITIONS notifications.
  ENM_PROTECTED       Sends EN_PROTECTED notifications.
  ENM_REQUESTRESIZE   Sends EN_REQUESTRESIZE notifications.
  ENM_SCROLL          Sends EN_HSCROLL and EN_VSCROLL notifications.
  ENM_SCROLLEVENTS    Sends EN_MSGFILTER notifications for mouse wheel events.
  ENM_SELCHANGE       Sends EN_SELCHANGE notifications.
  ENM_UPDATE          Sends EN_UPDATE notifications.  Rich Edit 2.0 and later:
                      this flag is ignored and the EN_UPDATE notifications are
                      always sent. However, if Rich Edit 3.0 emulates Rich Edit
                      1.0, you must use this flag to send EN_UPDATE notifications.

The default event mask before any is set is ENM_NONE.  Returns the previous
event mask.

=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $

Listbox.xs  view on Meta::CPAN

Listbox_onParseEvent(NOTXSPROC char *name, int* eventID) {

    BOOL retval = TRUE;

         if Parse_Event("GotFocus",   PERLWIN32GUI_NEM_GOTFOCUS)
    else if Parse_Event("LostFocus",  PERLWIN32GUI_NEM_LOSTFOCUS)
    else if Parse_Event("DblClick",   PERLWIN32GUI_NEM_DBLCLICK)
    else if Parse_Event("Click",      PERLWIN32GUI_NEM_CLICK)
    else if Parse_Event("Anonymous",  PERLWIN32GUI_NEM_CONTROL1)
    else if Parse_Event("SelCancel",  PERLWIN32GUI_NEM_CONTROL2)    
    else if Parse_Event("SelChange",  PERLWIN32GUI_NEM_CONTROL3)    
    else retval = FALSE;

    return retval;
}

int
Listbox_onEvent (NOTXSPROC LPPERLWIN32GUI_USERDATA perlud, UINT uMsg, WPARAM wParam, LPARAM lParam) {

    int PerlResult = 1;

RichEdit.xs  view on Meta::CPAN

    #   ENM_KEYEVENTS       Sends EN_MSGFILTER notifications for keyboard events.
    #   ENM_LINK            Rich Edit 2.0 and later: Sends EN_LINK notifications when
    #                       the mouse pointer is over text that has the CFE_LINK and
    #                       one of several mouse actions is performed.
    #   ENM_MOUSEEVENTS     Sends EN_MSGFILTER notifications for mouse events.
    #   ENM_OBJECTPOSITIONS Sends EN_OBJECTPOSITIONS notifications.
    #   ENM_PROTECTED       Sends EN_PROTECTED notifications.
    #   ENM_REQUESTRESIZE   Sends EN_REQUESTRESIZE notifications.
    #   ENM_SCROLL          Sends EN_HSCROLL and EN_VSCROLL notifications.
    #   ENM_SCROLLEVENTS    Sends EN_MSGFILTER notifications for mouse wheel events.
    #   ENM_SELCHANGE       Sends EN_SELCHANGE notifications.
    #   ENM_UPDATE          Sends EN_UPDATE notifications.  Rich Edit 2.0 and later:
    #                       this flag is ignored and the EN_UPDATE notifications are
    #                       always sent. However, if Rich Edit 3.0 emulates Rich Edit
    #                       1.0, you must use this flag to send EN_UPDATE notifications.
    #
    # The default event mask before any is set is ENM_NONE.  Returns the previous
    # event mask.
    
LRESULT
SetEventMask(handle, mask)

TabStrip.xs  view on Meta::CPAN


            PerlResult = DoEvent(NOTXSCALL perlud, PERLWIN32GUI_NEM_CONTROL1, "Changing", -1);

            // Force result if event is handle
            if (perlud->dwPlStyle & PERLWIN32GUI_EVENTHANDLING) {
                perlud->forceResult = (PerlResult == 0 ? TRUE : FALSE);
                PerlResult = 0; // MsgLoop return ForceResult 
            }
            break;

        case TCN_SELCHANGE:
            /*
             * (@)EVENT:Change()
             * Sent when the current
             * selection has changed. Use SelectedItem()
             * to determine the current selection.
             * (@)APPLIES_TO:TabStrip
             */
            PerlResult = DoEvent(NOTXSCALL perlud, PERLWIN32GUI_NEM_CONTROL2, "Change", -1);
            break;
        } 

TreeView.xs  view on Meta::CPAN

             }
           else {
             //user has canceled the edit
             PerlResult = DoEvent(NOTXSCALL perlud, PERLWIN32GUI_NEM_CONTROL7, "EndLabelEdit",
                PERLWIN32GUI_ARGTYPE_LONG, (IV) pItem->hItem,
                -1);           
           }
           
           break;
            
        case TVN_SELCHANGED:
            /*
             * (@)EVENT:NodeClick(NODE)
             * Sent when the user clicks on the specified NODE of the TreeView.
             * (@)APPLIES_TO:TreeView
             */
            PerlResult = DoEvent(NOTXSCALL perlud, PERLWIN32GUI_NEM_CONTROL1, "NodeClick",
                PERLWIN32GUI_ARGTYPE_LONG, (IV) tv_notify->itemNew.hItem,
                -1);
            break;

Win32-GUI_Constants/Constants.PL  view on Meta::CPAN

CB_GETHORIZONTALEXTENT      0x015d
CB_SETHORIZONTALEXTENT      0x015e
CB_GETDROPPEDWIDTH          0x015f
CB_SETDROPPEDWIDTH          0x0160
CB_INITSTORAGE              0x0161
CB_MULTIPLEADDSTRING        0x0163
CB_GETCOMBOBOXINFO          0x0164

# Combo Box notifications
CBN_ERRSPACE        -1
CBN_SELCHANGE       1
CBN_DBLCLK          2
CBN_SETFOCUS        3
CBN_KILLFOCUS       4
CBN_EDITCHANGE      5
CBN_EDITUPDATE      6
CBN_DROPDOWN        7
CBN_CLOSEUP         8
CBN_SELENDOK        9
CBN_SELENDCANCEL    10

Win32-GUI_Constants/t/52_tags.t  view on Meta::CPAN

    CBES_EX_CASESENSITIVE
    CB_OKAY CB_ERR CB_ERRSPACE
    CB_GETEDITSEL CB_LIMITTEXT CB_SETEDITSEL CB_ADDSTRING CB_DELETESTRING CB_DIR
    CB_GETCOUNT CB_GETCURSEL CB_GETLBTEXT CB_GETLBTEXTLEN CB_INSERTSTRING CB_RESETCONTENT
    CB_FINDSTRING CB_SELECTSTRING CB_SETCURSEL CB_SHOWDROPDOWN CB_GETITEMDATA CB_SETITEMDATA
    CB_GETDROPPEDCONTROLRECT CB_SETITEMHEIGHT CB_GETITEMHEIGHT CB_SETEXTENDEDUI
    CB_GETEXTENDEDUI CB_GETDROPPEDSTATE CB_FINDSTRINGEXACT CB_SETLOCALE CB_GETLOCALE
    CB_GETTOPINDEX CB_SETTOPINDEX CB_GETHORIZONTALEXTENT CB_SETHORIZONTALEXTENT
    CB_GETDROPPEDWIDTH CB_SETDROPPEDWIDTH CB_INITSTORAGE CB_MULTIPLEADDSTRING
    CB_GETCOMBOBOXINFO
    CBN_ERRSPACE CBN_SELCHANGE CBN_DBLCLK CBN_SETFOCUS CBN_KILLFOCUS CBN_EDITCHANGE
    CBN_EDITUPDATE CBN_DROPDOWN CBN_CLOSEUP CBN_SELENDOK CBN_SELENDCANCEL ) ],
  cursor => [
qw( IDC_ARROW IDC_IBEAM IDC_WAIT IDC_CROSS IDC_UPARROW IDC_SIZENWSE
    IDC_SIZENESW IDC_SIZEWE IDC_SIZENS IDC_SIZEALL IDC_NO IDC_HAND
    IDC_APPSTARTING IDC_HELP IDC_HSPLIT IDC_VSPLIT
    OCR_NORMAL OCR_IBEAM OCR_WAIT OCR_CROSS OCR_UP OCR_SIZENWSE
    OCR_SIZENESW OCR_SIZEWE OCR_SIZENS OCR_SIZEALL OCR_NO OCR_HAND
    OCR_APPSTARTING ) ],
  datetime => [
qw( DTS_LONGDATEFORMAT DTS_APPCANPARSE DTS_TIMEFORMAT DTS_SHORTDATEFORMAT DTS_UPDOWN

Win32-GUI_Grid/Grid.pm  view on Meta::CPAN


    GVNI_FOCUSED GVNI_SELECTED GVNI_DROPHILITED GVNI_READONLY
    GVNI_FIXED GVNI_MODIFIED GVNI_ABOVE GVNI_BELOW GVNI_TOLEFT
    GVNI_TORIGHT GVNI_ALL GVNI_AREA

    GVHT_DATA GVHT_TOPLEFT GVHT_COLHDR GVHT_ROWHDR GVHT_COLSIZER
    GVHT_ROWSIZER GVHT_LEFT GVHT_RIGHT GVHT_ABOVE GVHT_BELOW

    GVN_BEGINDRAG GVN_BEGINLABELEDIT GVN_BEGINRDRAG GVN_COLUMNCLICK
    GVN_CHANGEDLABELEDIT GVN_DELETEITEM GVN_ENDLABELEDIT
    GVN_SELCHANGING GVN_SELCHANGED GVN_GETDISPINFO GVN_ODCACHEHINT

    GVIS_FOCUSED GVIS_SELECTED GVIS_DROPHILITED GVIS_READONLY
    GVIS_FIXED GVIS_FIXEDROW GVIS_FIXEDCOL GVIS_MODIFIED

    GVIT_DEFAULT GVIT_NUMERIC GVIT_DATE GVIT_DATECAL GVIT_TIME
    GVIT_CHECK GVIT_COMBO GVIT_LIST GVIT_URL

    DT_TOP DT_LEFT DT_CENTER DT_RIGHT DT_VCENTER DT_BOTTOM
    DT_WORDBREAK DT_SINGLELINE DT_EXPANDTABS DT_TABSTOP
    DT_NOCLIP DT_EXTERNALLEADING DT_CALCRECT DT_NOPREFIX

Win32-GUI_Grid/Grid.xs  view on Meta::CPAN

      break;
    case '_' :
      // Messages sent to the grid's parent (More will be added in future)
      CONSTANT(GVN_BEGINDRAG);
      CONSTANT(GVN_BEGINLABELEDIT);
      CONSTANT(GVN_BEGINRDRAG);
      CONSTANT(GVN_COLUMNCLICK);
      CONSTANT(GVN_DELETEITEM);
      CONSTANT(GVN_ENDLABELEDIT);
      CONSTANT(GVN_SELCHANGING);
      CONSTANT(GVN_SELCHANGED);
      CONSTANT(GVN_GETDISPINFO);
      CONSTANT(GVN_ODCACHEHINT);
      CONSTANT(GVN_CHANGEDLABELEDIT);
      break;
    }
    break;
  case 'H' :
    // Hit test values (not yet implemented)
    CONSTANT(GVHT_DATA);
    CONSTANT(GVHT_TOPLEFT);

Win32-GUI_Grid/MFCGrid/GridCellCombo.h  view on Meta::CPAN

protected:
    int GetCorrectDropWidth();

// Generated message map functions
protected:
	//{{AFX_MSG(CInPlaceList)
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnDropdown();
	afx_msg void OnSelChange();
	afx_msg UINT OnGetDlgCode();
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	//}}AFX_MSG
	//afx_msg void OnSelendOK();

	DECLARE_MESSAGE_MAP()

private:
	int		 m_nNumLines;
	CString  m_sInitText;

Win32-GUI_Grid/MFCGrid/GridCtrl.cpp  view on Meta::CPAN

        if (m_MouseMode == MOUSE_NOTHING)
        {
            m_PrevSelectedCellMap.RemoveAll();
            m_MouseMode = m_bListMode? MOUSE_SELECT_ROW : MOUSE_SELECT_CELLS;
            if (!IsSHIFTpressed() || nChar == VK_TAB)
                m_SelectionStartCell = next;

                        // Notify parent that selection is changing - Arthur Westerman/Scot Brennecke
            SendMessageToParent(next.row, next.col, GVN_SELCHANGING);
                        OnSelecting(next);
                        SendMessageToParent(next.row, next.col, GVN_SELCHANGED);

            m_MouseMode = MOUSE_NOTHING;
        }

        SetFocusCell(next);

        if (!IsCellVisible(next))
        {

            switch (nChar)

samples/MonthCal.pl  view on Meta::CPAN

    -pos      => [100, 100],
    -size     => [440, 400],
) or die "new Window";

# Mono select MonthCal control
$Window->AddMonthCal (
    -name     => "MonthCalMono",
    -pos      => [10, 10],
    -size     => [200, 160],
    -onSelect => \&OnSelect,
    -onSelChange => \&OnSelChange,
);

# Play with color
$Window->MonthCalMono->BackColor(0x7F7F7F);
$Window->MonthCalMono->BackMonthColor(0x7FFFFF);
$Window->MonthCalMono->BackTitleColor(0xFF7F7F);
$Window->MonthCalMono->TextColor(0x7F0000);
$Window->MonthCalMono->TitleTextColor(0x7FFF7F);
$Window->MonthCalMono->TrailingTextColor(0xA0A0A0);

# Multi Select MonthCal control
$Window->AddMonthCal (
    -name     => "MonthCalMulti",
    -pos      => [220, 10],
    -size     => [200, 160],
    -onSelect => \&OnSelectMulti,
    -onSelChange => \&OnSelChangeMulti,
    -onDayState  => \&OnDayState,
    -multiselect => 1,               # Allow multi select 
    -weeknumber => 1,                # Show Week number
    -notoday => 1,                   # Remove Today 
    -daystate => 1,
);

# Change default 7 days select to 14 days select
$Window->MonthCalMulti->SetMaxSelCount(14);

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 2.054 seconds using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )