1. How can I insert a line
| Visual FoxPro |
|---|
with thisform.Edit1
.InsertText(" - insert the line as the first - \r\n",1)
endwith
|
2. How can I add a line
| Visual FoxPro |
|---|
with thisform.Edit1
.InsertText(" - insert the line as the last - \r\n")
endwith
|
3. How do I remove the control's border
| Visual FoxPro |
|---|
with thisform.Edit1 .Appearance = 0 endwith |
4. How do I change the control's border, using your EBN files
| Visual FoxPro |
|---|
with thisform.Edit1 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .Appearance = 16777216 endwith |
5. How do I put a picture on the control's background
| Visual FoxPro |
|---|
with thisform.Edit1
.Picture = thisform.Edit1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
endwith
|
6. How do I put a picture on the control's left top corner
| Visual FoxPro |
|---|
with thisform.Edit1
.Picture = thisform.Edit1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.PictureDisplay = 0
endwith
|
7. How do I put a picture on the control's right top corner
| Visual FoxPro |
|---|
with thisform.Edit1
.Picture = thisform.Edit1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.PictureDisplay = 2
endwith
|
8. How do I put a picture on the control's center top side
| Visual FoxPro |
|---|
with thisform.Edit1
.Picture = thisform.Edit1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.PictureDisplay = 1
endwith
|
9. How do I put a picture on the control's center left bottom side
| Visual FoxPro |
|---|
with thisform.Edit1
.Picture = thisform.Edit1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.PictureDisplay = 32
endwith
|
10. How do I put a picture on the control's center right bottom side
| Visual FoxPro |
|---|
with thisform.Edit1
.Picture = thisform.Edit1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.PictureDisplay = 34
endwith
|
11. How do I resize/stretch a picture on the control's background
| Visual FoxPro |
|---|
with thisform.Edit1
.Picture = thisform.Edit1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.PictureDisplay = 49
endwith
|
12. How do I put a picture on the center of the control
| Visual FoxPro |
|---|
with thisform.Edit1
.Picture = thisform.Edit1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.PictureDisplay = 17
endwith
|
13. How can I change the control's font
| Visual FoxPro |
|---|
with thisform.Edit1 .Font.Name = "Verdana" endwith |
14. How do I change the control's background color
| Visual FoxPro |
|---|
with thisform.Edit1 .BackColor = 13158600 endwith |
15. How do I change the control's foreground color
| Visual FoxPro |
|---|
with thisform.Edit1 .ForeColor = 255 endwith |
16. Can I display an additional buttons in the scroll bar
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollPartVisible(1,32768) = .T. .ScrollPartVisible(1,16384) = .T. .ScrollPartVisible(1,1) = .T. .ScrollPartVisible(1,2) = .T. endwith |
17. I need to add a button in the scroll bar. Is this possible
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollPartVisible(1,32768) = .T. .ScrollPartCaption(1,32768) = "1" endwith |
18. How do I assign an icon to the button in the scrollbar
| Visual FoxPro |
|---|
with thisform.Edit1 var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/" var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/" var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx" var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN" var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=" .Images(var_s) .ScrollPartVisible(1,32768) = .T. .ScrollPartCaption(1,32768) = "<img>1</img>" .ScrollHeight = 18 .ScrollButtonWidth = 18 endwith |
19. How do I assign a tooltip to a scrollbar
| Visual FoxPro |
|---|
with thisform.Edit1 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") var_s = "This is a <img>16777216</img>tooltip being shown when you click and drag the thumb in the horizo" var_s = var_s + "ntal scroll bar" .ScrollToolTip(1) = var_s endwith |
20. How can I display my text on the scroll bar
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollPartCaption(1,256) = "this is just a text" .ScrollThumbSize(1) = 96 endwith |
21. How can I display my text on the scroll bar, using a different font
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollPartCaption(1,256) = "This is just a text" .ScrollFont(1).Size = 12 .ScrollThumbSize(1) = 128 .ScrollHeight = 24195 .ScrollPartCaption(1,256) = "This is <s><font Tahoma;12> just </font></s> text" .ScrollHeight = 20 endwith |
22. How do I enlarge or change the size of the control's scrollbars
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollHeight = 18 .ScrollWidth = 18 .ScrollButtonWidth = 18 .ScrollButtonHeight = 18 endwith |
23. The thumb size seems to be very small. Can I make it bigger
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollThumbSize(1) = 164 endwith |
24. Can I change the order of the buttons in the scroll bar
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollOrderParts(1) = "t,l,r" .ScrollOrderParts(0) = "t,l,r" endwith |
25. How do I show the tooltip quicker
| Visual FoxPro |
|---|
with thisform.Edit1
.ToolTipDelay = 1
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
26. How do I disable showing the tooltip for all control
| Visual FoxPro |
|---|
with thisform.Edit1
.ToolTipDelay = 0
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
27. How do I let the tooltip being displayed longer
| Visual FoxPro |
|---|
with thisform.Edit1
.ToolTipPopDelay = 10000
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
28. I've seen that the width of the tooltip is variable. Can I make it larger
| Visual FoxPro |
|---|
with thisform.Edit1
.ToolTipWidth = 328
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
29. Can I change the font for the tooltip
| Visual FoxPro |
|---|
with thisform.Edit1
.ToolTipDelay = 1
with .ToolTipFont
.Name = "Tahoma"
.Size = 14
endwith
.ToolTipWidth = 364
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
30. How do I call your x-script language
| Visual FoxPro |
|---|
with thisform.Edit1 .Template = "BackColor = RGB(255,0,0)" endwith |
31. How do I call your x-script language
| Visual FoxPro |
|---|
with thisform.Edit1
.ExecuteTemplate("BackColor = RGB(255,0,0)")
endwith
|
32. Can I change the default border of the tooltip, using your EBN files
| Visual FoxPro |
|---|
with thisform.Edit1
.ToolTipDelay = 1
.ToolTipWidth = 364
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Background(64) = 16777216
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
33. Can I change the background color for the tooltip
| Visual FoxPro |
|---|
with thisform.Edit1
.ToolTipDelay = 1
.ToolTipWidth = 364
.Background(65) = 255
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
34. Can I change the forecolor for the tooltip
| Visual FoxPro |
|---|
with thisform.Edit1
.ToolTipDelay = 1
.ToolTipWidth = 364
.Background(66) = 255
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
35. I've seen that you can change the visual appearance for the scroll bar. How can I do that
| Visual FoxPro |
|---|
with thisform.Edit1 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn") .VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn") .Background(324) = 16777216 .Background(325) = 33554432 .Background(327) = 50331648 .Background(404) = 15790320 .Background(276) = 15790320 .Background(3) = 15790320 endwith |
36. How do I change the visual aspect only for the thumb in the scroll bar, using EBN
| Visual FoxPro |
|---|
with thisform.Edit1 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn") .VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn") .Background(388) = 16777216 .Background(389) = 33554432 .Background(391) = 50331648 .ScrollThumbSize(1) = 96 endwith |
37. How do I change the visual aspect for thumb parts in the scroll bars, using EBN
| Visual FoxPro |
|---|
with thisform.Edit1 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn") .VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn") .Background(388) = 16777216 .Background(389) = 33554432 .Background(391) = 50331648 .Background(260) = 16777216 .Background(261) = 33554432 .Background(263) = 50331648 endwith |
38. How can I change the visual appearance of the horizontal splitter
| Visual FoxPro |
|---|
with thisform.Edit1 .AllowSplitter = 3 .SplitPaneHeight = 128 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .Background(1) = 16777216 endwith |
39. How can I change the visual appearance of the vertical splitter
| Visual FoxPro |
|---|
with thisform.Edit1 .AllowSplitter = 3 .SplitPaneWidth = 128 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .Background(0) = 16777216 endwith |
40. How can I change the visual appearance of the splitter
| Visual FoxPro |
|---|
with thisform.Edit1 .AllowSplitter = 3 .SplitPaneWidth = 128 .SplitPaneHeight = 128 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn") .Background(0) = 16777216 .Background(1) = 16777216 .Background(2) = 33554432 endwith |
41. How do I disable or enable the control
| Visual FoxPro |
|---|
with thisform.Edit1 .Enabled = .F. endwith |
42. How do I lock the control
| Visual FoxPro |
|---|
with thisform.Edit1 .Locked = .T. endwith |
43. How can I show the bookmark border
| Visual FoxPro |
|---|
with thisform.Edit1 .BookmarkWidth = 16 endwith |
44. How can I hide the bookmark border
| Visual FoxPro |
|---|
with thisform.Edit1 .BookmarkWidth = 0 endwith |
45. How can I specify the text being displayed in the control
| Visual FoxPro |
|---|
with thisform.Edit1 .Text = "new line\r\nnew line" endwith |
46. How can I clear the text
| Visual FoxPro |
|---|
with thisform.Edit1 .Text = "" endwith |
47. How can I display or show the number of each line
| Visual FoxPro |
|---|
with thisform.Edit1 .LineNumberWidth = 32 endwith |
48. How can I hide the number of each line
| Visual FoxPro |
|---|
with thisform.Edit1 .LineNumberWidth = 0 endwith |
49. How can I disable using the Tab key
| Visual FoxPro |
|---|
with thisform.Edit1 .UseTabKey = .F. endwith |
50. How can I disable adding new TAB characters when the user enters a new line
| Visual FoxPro |
|---|
with thisform.Edit1 .AutoIndent = .F. endwith |
51. How can still display the selected text when the control loses the focus
| Visual FoxPro |
|---|
with thisform.Edit1 .HideSelection = .F. .SelLength = 10 endwith |
52. Is there any option to hide the caret or the cursor
| Visual FoxPro |
|---|
with thisform.Edit1 .ShowCaret = .F. endwith |
53. How can I disable displaying the control's context menu
| Visual FoxPro |
|---|
with thisform.Edit1 .AllowContextMenu = .F. endwith |
54. How can change the color for selected text
| Visual FoxPro |
|---|
with thisform.Edit1 .HideSelection = .F. .SelLength = 10 .SelForeColor = 255 endwith |
55. How can change the color for selected text
| Visual FoxPro |
|---|
with thisform.Edit1 .HideSelection = .F. .SelLength = 10 .SelBackColor = 255 endwith |
56. How can I disable displaying multiple lines
| Visual FoxPro |
|---|
with thisform.Edit1 .MultiLine = .F. endwith |
57. How can I display only a single line
| Visual FoxPro |
|---|
with thisform.Edit1 .MultiLine = .F. endwith |
62. How can I use it a a simple edit control, without highlighting
| Visual FoxPro |
|---|
with thisform.Edit1 .EditType = 0 endwith |
63. How can I display HTML text
| Visual FoxPro |
|---|
with thisform.Edit1 .EditType = 2 .Text = "<b>just a HTML text</b>\r\nnew <s>line</s>" endwith |
64. How can I avoid changing the colors for keywords or expressions
| Visual FoxPro |
|---|
with thisform.Edit1
.ApplyColors = .F.
.AddKeyword("<fgcolor=FF0000><b>class</b></fgcolor>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
65. How can I replace the selected text
| Visual FoxPro |
|---|
with thisform.Edit1 .SelLength = 10 .SelText = "-new selection-" endwith |
66. How can I get the selected text
| Visual FoxPro |
|---|
with thisform.Edit1 .SelLength = 10 var_SelText = .SelText endwith |
67. How do I get the number of selected characters
| Visual FoxPro |
|---|
with thisform.Edit1 .SelLength = 10 .HideSelection = .F. endwith |
68. How do I get the point where the selection starts
| Visual FoxPro |
|---|
with thisform.Edit1 .SelStart = 4 .SelLength = 10 .HideSelection = .F. endwith |
69. How do I get the number of lines in the control
| Visual FoxPro |
|---|
with thisform.Edit1 var_Count = .Count endwith |
70. How do I get a line
| Visual FoxPro |
|---|
with thisform.Edit1 .TextLine(1) = "new line" endwith |
71. How do I replace a line
| Visual FoxPro |
|---|
with thisform.Edit1 .TextLine(1) = "new line" endwith |
72. How do I change the line where the caret or the cursor is displayed
| Visual FoxPro |
|---|
with thisform.Edit1 .CaretLine = 10 endwith |
73. How do I change the character where the caret or the cursor is displayed
| Visual FoxPro |
|---|
with thisform.Edit1 .CaretPos = 10 endwith |
74. How can I remove or delete a line
| Visual FoxPro |
|---|
with thisform.Edit1 .DeleteLine(1) endwith |
75. How can I remove or delete all lines
| Visual FoxPro |
|---|
with thisform.Edit1 .Text = "" endwith |
76. How can I insert at specified position a new line
| Visual FoxPro |
|---|
with thisform.Edit1
.InsertText("newline\r\n",2)
.BackColorLine(2) = 255
endwith
|
77. How can I hide the control's scroll bars
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollBars = 0 endwith |
78. How can I display only the horizontal scroll bar
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollBars = 1 endwith |
79. How can I display only the vertical scroll bar
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollBars = 2 endwith |
80. How can I display both scroll bars
| Visual FoxPro |
|---|
with thisform.Edit1 .ScrollBars = 3 endwith |
81. How can I hide the selection
| Visual FoxPro |
|---|
with thisform.Edit1 .DisplaySelection = .F. endwith |
82. I've seen that if I press CTRL + ( I get the matching braket. How can I extend this
| Visual FoxPro |
|---|
with thisform.Edit1 .OpenBrackets = "<" .CloseBrackets = ">" endwith |
83. How can I change the size of the tabs characters
| Visual FoxPro |
|---|
with thisform.Edit1 .TabLength = 8 endwith |
84. How can I refresh the control
| Visual FoxPro |
|---|
with thisform.Edit1
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
85. How can I change the color of the bookmark border
| Visual FoxPro |
|---|
with thisform.Edit1 .BookMarkBackColor = 255 .BookMarkBackColor2 = 255 .BookmarkWidth = 16 endwith |
86. How can I change the color for the border where the line numbers are displayed
| Visual FoxPro |
|---|
with thisform.Edit1 .LineNumberForeColor = 255 .LineNumberBackColor = 16711680 .LineNumberWidth = 32 endwith |
87. How can I disable or enable the undo-redo feature
| Visual FoxPro |
|---|
with thisform.Edit1 .AllowUndoRedo = .F. endwith |
88. How can I enable my button as the control can perform an UNDO operation
| Visual FoxPro |
|---|
with thisform.Edit1 var_CanUndo = .CanUndo endwith |
89. How can I enable my button as the control can perform an REDO operation
| Visual FoxPro |
|---|
with thisform.Edit1 var_CanRedo = .CanRedo endwith |
90. How can I disable or enabled the Find dialog
| Visual FoxPro |
|---|
with thisform.Edit1 .AllowFind = .F. endwith |
91. How can I programmatically find or search for a string
| Visual FoxPro |
|---|
with thisform.Edit1
.HideSelection = .F.
.Find("public",0)
endwith
|
92. How can I programmatically find or search for a word only
| Visual FoxPro |
|---|
with thisform.Edit1
.HideSelection = .F.
.Find("IDD_DIALOG_INSTALL",2)
endwith
|
93. Does your control support incrementasl search
| Visual FoxPro |
|---|
with thisform.Edit1 .AllowIncrementalSearch = .T. endwith |
94. How can I disable or enable displaying the Replace dialog
| Visual FoxPro |
|---|
with thisform.Edit1 .AllowReplace = .F. endwith |
95. Can I display the lines using an alternate color
| Visual FoxPro |
|---|
with thisform.Edit1 .BackColorAlternate = 255 endwith |
96. Is there any option to change the color for the line that displays the cursor or the caret
| Visual FoxPro |
|---|
with thisform.Edit1 .BackColorCaretLine = 255 endwith |
97. How can I change the format to display the numbers
| Visual FoxPro |
|---|
with thisform.Edit1
.FormatNumbers = "<b><fgcolor=FF0000> </fgcolor></b>"
.InsertText("Just numbers: 12 22\r\n",1)
endwith
|
98. How can I add a bookmark
| Visual FoxPro |
|---|
with thisform.Edit1 .Bookmark(2) = .T. .Bookmark(4) = .T. .BookmarkWidth = 16 endwith |
99. How can I remove all bookmarks
| Visual FoxPro |
|---|
with thisform.Edit1 .Bookmark(2) = .T. .Bookmark(4) = .T. .BookmarkWidth = 16 .ClearBookmarks endwith |
100. How can I remove a bookmark
| Visual FoxPro |
|---|
with thisform.Edit1 .Bookmark(2) = .T. .Bookmark(2) = .F. .BookmarkWidth = 16 endwith |
101. How can I move to the next bookmark
| Visual FoxPro |
|---|
with thisform.Edit1 .Bookmark(2) = .T. .Bookmark(4) = .T. .BookmarkWidth = 16 .NextBookmark endwith |
102. How can I move to the previous bookmark
| Visual FoxPro |
|---|
with thisform.Edit1 .Bookmark(2) = .T. .Bookmark(4) = .T. .BookmarkWidth = 16 .PrevBookmark endwith |
103. How do I get the bookmarks as a list
| Visual FoxPro |
|---|
with thisform.Edit1 .Bookmark(2) = .T. .Bookmark(4) = .T. .BookmarkWidth = 16 var_BookmarksList = .BookmarksList endwith |
104. How can I programmatically perform an UNDO operation
| Visual FoxPro |
|---|
with thisform.Edit1 .Undo endwith |
105. How can I programmatically perform a REDO operation
| Visual FoxPro |
|---|
with thisform.Edit1 .Redo endwith |
106. How do I ensure that a specified line is visible
| Visual FoxPro |
|---|
with thisform.Edit1 .EnsureVisibleLine(.Count) endwith |
107. How can I add my own items in the control's context menu
| Visual FoxPro |
|---|
with thisform.Edit1 .ContextMenuItems = "New Item" endwith |
108. How do I change the background color for a line
| Visual FoxPro |
|---|
with thisform.Edit1 .BackColorLine(1) = 255 endwith |
109. How do I change the foreground color for a line
| Visual FoxPro |
|---|
with thisform.Edit1 .ForeColorLine(1) = 255 endwith |
110. How do I remove the line's background color
| Visual FoxPro |
|---|
with thisform.Edit1 .BackColorLine(1) = 255 .ClearBackColorLine(1) endwith |
111. Can I display a custom icon or picture in the bookmark area
| Visual FoxPro |
|---|
with thisform.Edit1 var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/" var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/" var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx" var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN" var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=" .Images(var_s) .BookmarkImageLine(2) = 1 .Bookmark(4) = .T. .BookmarkWidth = 18 endwith |
112. Can I display a custom icon or picture for bookmarks
| Visual FoxPro |
|---|
with thisform.Edit1 var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/" var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/" var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx" var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN" var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=" .Images(var_s) .BookmarkImage = 1 .Bookmark(2) = .T. .Bookmark(4) = .T. .BookmarkWidth = 18 endwith |
113. How can I change the color for the bookmark's border
| Visual FoxPro |
|---|
with thisform.Edit1 .BookmarkBorderColor = 255 .BookmarkWidth = 18 endwith |
114. How can I change the color for the line number's border
| Visual FoxPro |
|---|
with thisform.Edit1 .LineNumberBorderColor = 255 .LineNumberWidth = 18 endwith |
115. How do I ignore \" in a string
| Visual FoxPro |
|---|
with thisform.Edit1
.InsertText(""+chr(34)+"just a string \"+chr(34)+"expression"+chr(34)+"\r\n",1)
.AddExpression("<fgcolor=800000><b>"+chr(34)+"</b></fgcolor>","<b><fgcolor=FF0000> </fgcolor></b>","<fgcolor=800000><b>"+chr(34)+"</b></fgcolor>",.T.)
.IgnorePrefixInExpression(""+chr(34)+"") = "\"
.Refresh
endwith
|
116. How do I highlight the position of multiple lines expression on the vertical scroll bar
| Visual FoxPro |
|---|
with thisform.Edit1
.AllowMark = .T.
.MarkContinueBlocks = .T.
.AddKeyword("<b>CAxWnd")
.AddExpression("<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>","<b><fgcolor=FF0000> </fgcolor></b>","<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>",.T.)
.MarkColor("BEGIN_MSG_MAP") = 255
.MarkColor("END_MSG_MAP") = 128
.MarkColor("CAxWnd") = 0
.Refresh
endwith
|
117. How can I show or hide the grid lines
| Visual FoxPro |
|---|
with thisform.Edit1 .DrawGridLines = .T. endwith |
118. How can I change the height of the line
| Visual FoxPro |
|---|
with thisform.Edit1 .Font.Size = 32 .DrawGridLines = .T. .Refresh endwith |
119. How do I change the font to display the line numbers
| Visual FoxPro |
|---|
with thisform.Edit1 .LineNumberFont.Name = "Tahoma" .LineNumberWidth = 18 endwith |
120. How can I select a line
| Visual FoxPro |
|---|
with thisform.Edit1 .LineNumberWidth = 18 .HideSelection = .F. .SelectLine(3) endwith |
121. How can I show or hide the control's splitter
| Visual FoxPro |
|---|
with thisform.Edit1 .AllowSplitter = 3 .SplitPaneHeight = 128 .SplitPaneWidth = 128 endwith |
122. How can I indent a line
| Visual FoxPro |
|---|
with thisform.Edit1 .LineNumberWidth = 18 .HideSelection = .F. .SelectLine(3) .IndentSel(.T.) endwith |
123. How can I disable indenting the selected text when the user presses the TAB key
| Visual FoxPro |
|---|
with thisform.Edit1 .IndentOnTab = .F. endwith |
124. How can I move the cursor when user invokes the control's context menu
| Visual FoxPro |
|---|
with thisform.Edit1 .RClick = .T. endwith |
125. How can I change the caption for the Find dialog
| Visual FoxPro |
|---|
with thisform.Edit1 .Caption(0,0) = "Search" endwith |
126. How can I change the caption for the Replace dialog
| Visual FoxPro |
|---|
with thisform.Edit1 .Caption(1,0) = "Search and Replace" endwith |
127. How can I change the descriptions for fields in the Find dialog
| Visual FoxPro |
|---|
with thisform.Edit1 .Caption(0,202) = "What" .Caption(0,104) = "Word" .Caption(0,105) = "Case" .Caption(0,103) = "Dir" .Caption(0,113) = "U" .Caption(0,114) = "D" .Caption(0,103) = "Next" .Caption(0,21199) = "All" .Caption(0,2) = "Abandon" .Caption(0,32001) = "Failed!" endwith |
128. How can I change the descriptions for fields in the Replace dialog
| Visual FoxPro |
|---|
with thisform.Edit1 .Caption(1,202) = "What" .Caption(1,204) = "Replace" .Caption(1,104) = "Word" .Caption(1,105) = "Case" .Caption(1,103) = "Dir" .Caption(1,113) = "Sel" .Caption(1,114) = "File" .Caption(1,21199) = "Rep" .Caption(1,21200) = "All" .Caption(1,2) = "Abandon" .Caption(1,32000) = "Title" .Caption(1,32001) = "Failed!" .Caption(1,32001) = "Done" endwith |
129. How can I change the descriptions for items in the control's context menu
| Visual FoxPro |
|---|
with thisform.Edit1 .Caption(2,16384) = "U N D O" .Caption(2,16385) = "R E D O" .Caption(2,16387) = "C U T" .Caption(2,16388) = "C O P Y" .Caption(2,16389) = "P A S T E" .Caption(2,16390) = "D E L" .Caption(2,16392) = "A L L " endwith |
130. How can I enable or disable OLE drag and drop operations
| Visual FoxPro |
|---|
with thisform.Edit1 .OLEDropMode = -1 endwith |
131. How can I change the shape of the cursor when it hovers the edit
| Visual FoxPro |
|---|
with thisform.Edit1 .Cursor(0) = 0 endwith |
132. How can I change the shape of the cursor when it hovers the bookmark area
| Visual FoxPro |
|---|
with thisform.Edit1 .Cursor(1) = "exHelp" .BookmarkWidth = 16 endwith |
133. How can I change the shape of the cursor when it hovers the line numbers area
| Visual FoxPro |
|---|
with thisform.Edit1 .Cursor(2) = "exHelp" .LineNumberWidth = 16 endwith |
134. How can I change the shape of the cursor when it hovers the incremental search area
| Visual FoxPro |
|---|
with thisform.Edit1 .Cursor(3) = "exHelp" endwith |
135. How can I change the shape of the cursor when it hovers the selected text
| Visual FoxPro |
|---|
with thisform.Edit1 .Cursor(4) = "exHelp" .SelLength = 10 .HideSelection = .F. endwith |
136. How do I select multiple lines
| Visual FoxPro |
|---|
with thisform.Edit1 .SetSelection(0,0,10,0) .HideSelection = .F. endwith |
138. How do I start overtyping
| Visual FoxPro |
|---|
with thisform.Edit1 .Overtype = .T. endwith |
139. How do I lock or make read only a line
| Visual FoxPro |
|---|
with thisform.Edit1 .LockedLine(1) = .T. endwith |
140. How do I change the color for a locked or a read only line
| Visual FoxPro |
|---|
with thisform.Edit1 .ForeColorLockedLine = 0 .BackColorLockedLine = 255 .LockedLine(1) = .T. endwith |
141. How can I display a tooltip as soon as the user types a keyword
| Visual FoxPro |
|---|
with thisform.Edit1
.ToolTipDelay = 1
.ToolTipOnTyping = .T.
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
142. How do I add a keyword
| Visual FoxPro |
|---|
with thisform.Edit1
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
143. How do I add a keyword
| Visual FoxPro |
|---|
with thisform.Edit1
.AddKeyword("<fgcolor=FF0000>class</fgcolor>")
.Refresh
endwith
|
144. How can I assign a tooltip to a keyword
| Visual FoxPro |
|---|
with thisform.Edit1
.AddKeyword("<fgcolor=FF0000>class</fgcolor>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
endwith
|
145. How do I add a keyword that's not case sensitive
| Visual FoxPro |
|---|
with thisform.Edit1
.AddKeyword("<fgcolor=FF0000>class</fgcolor>","","",1)
.Refresh
.InsertText("ClasS\r\n",1)
.InsertText("CLASS\r\n",1)
endwith
|
146. How do I add a keyword that's not case sensitive
| Visual FoxPro |
|---|
with thisform.Edit1
.AddKeyword("<b><fgcolor=FF0000>class</fgcolor></b>","","",2)
.Refresh
.InsertText("ClasS\r\n",1)
.InsertText("CLASS\r\n",1)
endwith
|
147. How can I remove or delete keyword
| Visual FoxPro |
|---|
with thisform.Edit1
.AddKeyword("<b><fgcolor=FF0000>class</fgcolor></b>")
.DeleteKeyword("class")
.Refresh
endwith
|
148. How can I remove or delete all keywords
| Visual FoxPro |
|---|
with thisform.Edit1
.AddKeyword("<b><fgcolor=FF0000>class</fgcolor></b>")
.ClearKeywords
.Refresh
endwith
|
149. How can I add an expression on multiple lines
| Visual FoxPro |
|---|
with thisform.Edit1
.AddExpression("<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>","<b><fgcolor=FF0000> </fgcolor></b>","<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>",.T.)
.Refresh
endwith
|
150. How can I add an expression
| Visual FoxPro |
|---|
with thisform.Edit1
.AddExpression("(","<b><fgcolor=FF0000> </fgcolor></b>",")",.F.)
.Refresh
endwith
|
151. How can I remove or delete an expression
| Visual FoxPro |
|---|
with thisform.Edit1
.AddExpression("(","<b><fgcolor=FF0000> </fgcolor></b>",")",.F.)
.DeleteExpression("(")
.Refresh
endwith
|
152. How can I remove or delete all expressions
| Visual FoxPro |
|---|
with thisform.Edit1
.AddExpression("(","<b><fgcolor=FF0000> </fgcolor></b>",")",.F.)
.ClearExpressions
.Refresh
endwith
|
153. Can I use wild characters to define keys in your control
| Visual FoxPro |
|---|
with thisform.Edit1
.AddWild("<s> </s>")
.Refresh
endwith
|
154. Can I use wild characters to define keys in your control
| Visual FoxPro |
|---|
with thisform.Edit1
.AddWild("<b>a</b>")
.Refresh
endwith
|
155. How can I add a sensitive context menu
| Visual FoxPro |
|---|
with thisform.Edit1
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
.Context().Add("class")
endwith
|
156. How do I enable or disable the sensitive context menu
| Visual FoxPro |
|---|
with thisform.Edit1
.CodeCompletion = .F.
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
.Context().Add("class")
endwith
|
157. How can I change the keys combination that invokes the sensitive context
| Visual FoxPro |
|---|
with thisform.Edit1
.ContextKey = 544
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
.Context().Add("class")
endwith
|
158. Can I add icons to the sensitive context
| Visual FoxPro |
|---|
with thisform.Edit1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/"
var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/"
var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx"
var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
.Context().Add("<b>class</b>","",1)
endwith
|
159. How do I sort items in the sensitive context
| Visual FoxPro |
|---|
with thisform.Edit1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/"
var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/"
var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx"
var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.AddKeyword("<b>public</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
.Context().Add("<b>public</b>","",2)
.Context().Add("<b>class</b>","",1)
.Context().Sort(.T.)
endwith
|
160. How do I specify the characters to close the sensitive context
| Visual FoxPro |
|---|
with thisform.Edit1
var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/"
var_s = var_s + "oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/"
var_s = var_s + "wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx"
var_s = var_s + "3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Images(var_s)
.AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.AddKeyword("<b>public</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit")
.Refresh
with .Context()
.Add("<b>class</b>","",1)
.Add("<b>public</b>","",2)
.Options(1) = "_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
endwith
endwith
|