1 \section{\class{wxIdManager
}}\label{wxidmanager
}
3 wxIdManager is responsible for allocating and releasing window IDs. It
4 is used by
\helpref{wxWindow::NewControlId
}{wxwindownewcontrolid
} and
5 \helpref{wxWindow::UnreserveControlId
}{wxwindowunreservecontrolid
}, and can also
6 be used be used directly.
8 \wxheading{Derived from
}
12 \wxheading{Include files
}
14 <wx/windowid.h> included from defs.h
18 \helpref{wxCore
}{librarieslist
}
22 \helpref{wxWindow::NewControlId
}{wxwindownewcontrolid
}
23 \helpref{wxWindow::UnreserveControlId
}{wxwindowunreservecontrolid
}
24 \helpref{Window IDs overview
}{windowidsoverview
}
26 \latexignore{\rtfignore{\wxheading{Members
}}}
28 \membersection{wxIdManager::ReserveControlId
}\label{wxidmanagerreservecontrolid
}
30 \func{static wxWindowID
}{ReserveControlId
}{\param{int
}{ count =
1}}
32 Called directly by
\helpref{wxWindow::NewControlId
}{wxwindownewcontrolid
},
33 this function will create a new ID or range of IDs. The IDs will be
34 reserved until assigned to a
\helpref{wxWindowIDRef
}{windowidsoverview
}
35 or unreserved with
\helpref{UnreserveControlId
}{wxidmanagerunreservecontrolid
}.
36 Only ID values that are not assigned to a
\helpref{wxWindowIDRef
}{windowidsoverview
}
37 need to be unreserved.
39 \wxheading{Parameters
}
41 \docparam{count
}{The number of sequential IDs to reserve.
}
43 \wxheading{Return value
}
45 The value of the first ID in the sequence, or
\texttt{wxID
\_NONE}.
47 \membersection{wxIdManager::UnreserveControlId
}\label{wxidmanagerunreservecontrolid
}
49 \func{static wxWindowID
}{UnreserveControlId
}{\param{wxWindowID
}{ id
},
\param{int
}{ count =
1}}
51 Called directly by
\helpref{wxWindow::UnreserveControlId
}{wxwindowunreservecontrolid
},
52 this function will unreserve an ID or range of IDs that is currently reserved. This
53 should only be called for IDs returned by
\helpref{ReserveControlId
}{wxidmanagerreservecontrolid
}
54 that have NOT been assigned to a
\helpref{wxWindowIDRef
}{windowidsoverview
}
56 \wxheading{Parameters
}
58 \docparam{id
}{The first of the range of IDs to unreserve.
}
60 \docparam{count
}{The number of sequential IDs to unreserve.
}
62 \wxheading{Return value
}
64 The value of the first ID in the sequence, or
\texttt{wxID
\_NONE}.