-
-void wxStyledTextCtrl::StyleSetUnderline(int styleNum, bool underline) {
- SendMsg(SCI_STYLESETUNDERLINE, styleNum, underline);
-}
-
-
-//----------------------------------------------------------------------
-// Margins in the edit area
-
-int wxStyledTextCtrl::GetLeftMargin() {
- return LOWORD(SendMsg(EM_GETMARGINS));
-}
-
-
-int wxStyledTextCtrl::GetRightMargin() {
- return HIWORD(SendMsg(EM_GETMARGINS));
-}
-
-
-void wxStyledTextCtrl::SetMargins(int left, int right) {
- int flag = 0;
- int val = 0;
-
- if (right != -1) {
- flag |= EC_RIGHTMARGIN;
- val = right << 16;
- }
- if (left != -1) {
- flag |= EC_LEFTMARGIN;
- val |= (left & 0xffff);
- }
-
- SendMsg(EM_SETMARGINS, flag, val);
-}
-
-
-//----------------------------------------------------------------------
-// Margins for selection, markers, etc.
-
-void wxStyledTextCtrl::SetMarginType(int margin, int type) {
- SendMsg(SCI_SETMARGINTYPEN, margin, type);
-}
-
-
-int wxStyledTextCtrl::GetMarginType(int margin) {
- return SendMsg(SCI_GETMARGINTYPEN, margin);
-}
-
-
-void wxStyledTextCtrl::SetMarginWidth(int margin, int pixelWidth) {
- SendMsg(SCI_SETMARGINWIDTHN, margin, pixelWidth);
-}
-
-
-int wxStyledTextCtrl::GetMarginWidth(int margin) {
- return SendMsg(SCI_GETMARGINWIDTHN, margin);
-}
-
-
-void wxStyledTextCtrl::SetMarginMask(int margin, int mask) {
- SendMsg(SCI_SETMARGINMASKN, margin, mask);
-}
-
-
-int wxStyledTextCtrl::GetMarginMask(int margin) {
- return SendMsg(SCI_GETMARGINMASKN, margin);
-}
-
-
-void wxStyledTextCtrl::SetMarginSensitive(int margin, bool sensitive) {
- SendMsg(SCI_SETMARGINSENSITIVEN, margin, sensitive);