78 |
Is it possible to change the line's height
|
77 |
How do I put a picture on the control's background
|
76 |
How do I get the numbers only, with no Total fields (method 2)
|
75 |
How do I get the numbers only, with no Total fields (method 1)
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.FormatResult = "<fgcolor=808080><r> = %%" oCalcEdit.InsertText("100 * 200") oCalcEdit.InsertText("300 * 400 * 1.5") oCalcEdit.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)") oCalcEdit.InsertText("Total") MessageBox("Information",string( String(oCalcEdit.FormatABC("lower(A) replace `total` with ``",oCalcEdit.Text)) )) |
74 |
How do I customize the format to display the result (right,local,2 decimals,less,font)
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.FormatLocal = "( value < 10000 ? `<fgcolor=000000><b><font ;16>` : ``) + (value format `2`)" oCalcEdit.FormatResult = "<fgcolor=808080><r> = %l%" oCalcEdit.InsertText("100 * 200") oCalcEdit.InsertText("300 * 400 * 1.5") oCalcEdit.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)") |
73 |
How do I customize the format to display the result (right,local,2 decimals,greater,color)
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.FormatLocal = "( value > 10000 ? `<fgcolor=FF0000><b>` : ``) + (value format `2`)" oCalcEdit.FormatResult = "<fgcolor=808080><r> = %l%" oCalcEdit.InsertText("100 * 200") oCalcEdit.InsertText("300 * 400 * 1.5") oCalcEdit.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)") |
72 |
How do I customize the format to display the result (right,local,all decimals)
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.FormatLocal = "value" oCalcEdit.FormatResult = "<fgcolor=808080><r> = %l%" oCalcEdit.InsertText("100 * 200") oCalcEdit.InsertText("300 * 400 * 1.5") oCalcEdit.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)") |
71 |
How do I customize the format to display the result (right,local,2 decimals)
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.FormatLocal = "value format `2`" oCalcEdit.FormatResult = "<fgcolor=808080><r> = %l%" oCalcEdit.InsertText("100 * 200") oCalcEdit.InsertText("300 * 400 * 1.5") oCalcEdit.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)") |
70 |
How do I customize the format to display the result (right,local,curency)
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.FormatLocal = "currency(value)" oCalcEdit.FormatResult = "<fgcolor=808080><r> = %l%" oCalcEdit.InsertText("100 * 200") oCalcEdit.InsertText("300 * 400 * 1.5") oCalcEdit.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)") |
69 |
How do I customize the format to display the result (right,local)
|
68 |
How do I customize the format to display the result (right)
|
67 |
How do I customize the format to display the result (default)
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.InsertText("100 * 200") oCalcEdit.InsertText("300 * 400 * 1.5") oCalcEdit.InsertText("200 + ( 400 * 1.5 + 300 / 1.19)") |
66 |
How can I force a line to be there all the time, so user can not delete it, for instance Total
|
65 |
Is it possible to get the value of specified variable
|
64 |
How do I get the total
|
63 |
How do I get the easter date
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.CalcType = -1 oCalcEdit.ClearWildFormats() oCalcEdit.FormatResult = "<r><fgcolor=008000><b>(%%)" oCalcEdit.AllowComments = "<fgcolor=008000>//" oCalcEdit.AddWildFormat("*=*<fgcolor=008000>//*") oCalcEdit.AddWildFormat("<fgcolor=808080>V*=*") oCalcEdit.AddWildFormat("<b>EasterSundayDay*=*") oCalcEdit.BackColorLockedLine = RGB(0,0,0) oCalcEdit.ForeColorLockedLine = RGB(0,0,0) oCalcEdit.Text = "Year = 2018 // change here the year, to get the Easter Sunday for giving year" oCalcEdit.InsertLockedText("V1 = (((255 - 11 * (Year mod 19)) - 21) mod 30)") oCalcEdit.InsertLockedText("V2 = ((V1 + 21) + (V1 > 48 ? -1 : 0) + 6 - ((Year + int(Year / 4)) + V1 + (V1 > 48 ? -1 : 0) + 1) mod 7)") oCalcEdit.InsertLockedText("EasterSundayDay = date(dateS('3/1/' + Year) + V2)") MessageBox("Information",string( "Easter Sunday Day is " )) MessageBox("Information",string( String(oCalcEdit.Variable("EasterSundayDay")) )) MessageBox("Information",string( " for year " )) MessageBox("Information",string( String(oCalcEdit.Variable("Year")) )) |
62 |
I've got a red line while I type into the control. How can I disable that (sample 2)
|
61 |
I've got a red line while I type into the control. How can I disable that (sample 1)
|
60 |
How do I specify the color to show the locked lines
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowVariables = "=" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.FormatResult = "<r>[=%l%]" oCalcEdit.FormatLocal = "currency(value)" oCalcEdit.FormatTotalResult = "<r><b> <fgcolor=FFFFFF>= %l%</b>" oCalcEdit.BackColorLockedLine = RGB(0,0,1) oCalcEdit.ForeColorLockedLine = RGB(255,255,255) oCalcEdit.InsertText("100") oCalcEdit.InsertText("200") oCalcEdit.InsertLockedText("VAT = Total * 0.20") oCalcEdit.InsertLockedText("Total") |
59 |
Can I remove the colors that indicates locked lines
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowVariables = "=" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.FormatResult = "<r><fgcolor=808080>[=%l%]" oCalcEdit.FormatLocal = "currency(value)" oCalcEdit.FormatTotalResult = "<r><b> = %l%</b>" oCalcEdit.BackColorLockedLine = RGB(0,0,0) oCalcEdit.ForeColorLockedLine = RGB(0,0,0) oCalcEdit.InsertText("100") oCalcEdit.InsertText("200") oCalcEdit.InsertLockedText("VAT = Total * 0.20") oCalcEdit.InsertLockedText("Total") |
58 |
Can I add lines to the control, so the user can not remove/delete them ( locked lines )
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.CalcType = -1 oCalcEdit.AllowVariables = "=" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.FormatResult = "<r><fgcolor=808080>[=%l%]" oCalcEdit.FormatLocal = "currency(value)" oCalcEdit.FormatTotalResult = "<r><b> = %l%</b>" oCalcEdit.Text = "1000" oCalcEdit.InsertText("2000") oCalcEdit.InsertLockedText("Commission = Total * 0.05 + (Total ? 2.95 : 0)") oCalcEdit.InsertLockedText("Total") |
57 |
Is it possible to highlight a specified line
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowVariables = "=" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.FormatResult = "<r><fgcolor=808080>[=%l%]" oCalcEdit.FormatLocal = "currency(value)" oCalcEdit.FormatTotalResult = "<r><b> = %l%</b>" oCalcEdit.AddWildFormat("<fgcolor=00FF00>*<b>Commission</b>*=*") oCalcEdit.Text = "100.50 + 123" oCalcEdit.InsertText("200 + 20/5") oCalcEdit.InsertText("300 + 3 * 15") oCalcEdit.InsertText("400 + 200 * (10 + 12/45)") oCalcEdit.InsertText("50 * 45") oCalcEdit.InsertText("VAT = Total * 0.19") oCalcEdit.InsertText("NET = Total - VAT") oCalcEdit.InsertText("Monthly = Total / 12") oCalcEdit.InsertText("Commission = Total * 0.05 + 2.95") oCalcEdit.InsertText("Total") |
56 |
Is it possible to display the result as currency
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowVariables = "=" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.FormatLocal = "currency(value)" oCalcEdit.FormatTotalResult = "<r><b> = %l%</b>" oCalcEdit.BackColorTotal = RGB(240,240,240) oCalcEdit.Text = "100.50" oCalcEdit.InsertText("200") oCalcEdit.InsertText("300") oCalcEdit.InsertText("400") oCalcEdit.InsertText("VAT = Total * 0.19") oCalcEdit.InsertText("NET = Total - VAT") oCalcEdit.InsertText("Total") |
55 |
Is it possible to display the result with no decimals
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowVariables = "=" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.FormatLocal = "value format `0`" oCalcEdit.FormatTotalResult = "<r><b> = %l%</b>" oCalcEdit.BackColorTotal = RGB(240,240,240) oCalcEdit.Text = "100.50" oCalcEdit.InsertText("200") oCalcEdit.InsertText("300") oCalcEdit.InsertText("400") oCalcEdit.InsertText("VAT = Total * 0.19") oCalcEdit.InsertText("NET = Total - VAT") oCalcEdit.InsertText("Total") |
54 |
Is it possible to display the result exactly how it is defined in the control panel
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowVariables = "=" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.FormatLocal = "value format ``" oCalcEdit.FormatTotalResult = "<r><b> = %l%</b>" oCalcEdit.BackColorTotal = RGB(240,240,240) oCalcEdit.Text = "100.50" oCalcEdit.InsertText("200") oCalcEdit.InsertText("300") oCalcEdit.InsertText("400") oCalcEdit.InsertText("VAT = Total * 0.19") oCalcEdit.InsertText("NET = Total - VAT") oCalcEdit.InsertText("Total") |
53 |
How can I count the lines
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowCount = "count" oCalcEdit.AllowSubCount = "subcount" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.InsertText("100") oCalcEdit.InsertText("200") oCalcEdit.InsertText("SubCount") oCalcEdit.InsertText("300") oCalcEdit.InsertText("400") oCalcEdit.InsertText("500") oCalcEdit.InsertText("SubCount") oCalcEdit.InsertText("Count") |
52 |
How can I compute the average
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowVariables = "=" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.FormatTotalResult = "<r><b> = %l%</b>" oCalcEdit.BackColorTotal = RGB(240,240,240) oCalcEdit.Text = "Average = Total / Count" oCalcEdit.InsertText("100") oCalcEdit.InsertText("200") oCalcEdit.InsertText("300") oCalcEdit.InsertText("400") oCalcEdit.InsertText("VAT = Total * 0.19") oCalcEdit.InsertText("NET = Total - VAT") oCalcEdit.InsertText("Total") |
51 |
Variables or Computed Fields
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowVariables = "=" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.FormatTotalResult = "<r><b> = %l%</b>" oCalcEdit.BackColorTotal = RGB(240,240,240) oCalcEdit.Text = "100" oCalcEdit.InsertText("200") oCalcEdit.InsertText("300") oCalcEdit.InsertText("400") oCalcEdit.InsertText("VAT = Total * 0.19") oCalcEdit.InsertText("NET = Total - VAT") oCalcEdit.InsertText("Total") |
50 |
I have noticed that definition of the variable is shown in italics. Can I change that
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowVariables = "=" oCalcEdit.ClearWildFormats() oCalcEdit.AddWildFormat("<b>*=*") oCalcEdit.Text = "A = 400" oCalcEdit.InsertText("") oCalcEdit.InsertText("B = A + 0.22") oCalcEdit.InsertText("A + B") oCalcEdit.InsertText("B = B * .19") oCalcEdit.InsertText("A + B") |
49 |
I have noticed that definition of the variable is shown in italics. Can I remove that
|
48 |
Can I define variables (sample 2)
|
47 |
Can I define variables (sample 1)
|
46 |
Comments and Prefixes
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowPrefixes = "<fgcolor=808080>:</fgcolor>" oCalcEdit.AllowComments = "<fgcolor=008080>'</fgcolor>" oCalcEdit.Text = "Field A: 100 ' this is the field A" oCalcEdit.InsertText("Field B: 200 ' this is the field B") oCalcEdit.InsertText("Total") |
45 |
Can I display something at the start of each line
|
44 |
I can not use TAB key. Is it possible
|
43 |
Does your control support comments
|
42 |
Can I use the modulo function ( rest )
|
41 |
Can I use acos function
|
40 |
Can I use asin function
|
39 |
Can I use cos function
|
38 |
Can I use sin function
|
37 |
Can I use abs function (absolute part of the number)
|
36 |
Can I use round function
|
35 |
Can I use int function (integer part of a number)
|
34 |
Can I use sqrt function (square root of a number)
|
33 |
How can I show invalid lines with a larger font
|
32 |
I've noticed that while I type the text is shown in red. How can I change that
|
31 |
Can I enlarge the height of each line
|
30 |
How can I show grid lines
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.DrawGridLines = true oCalcEdit.GridLineColor = RGB(0,0,0) oCalcEdit.InsertText("100") oCalcEdit.InsertText("200") oCalcEdit.InsertText("300") oCalcEdit.InsertText("Total") |
29 |
How can I display the result of the total with a larger font
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.FormatTotalResult = "<r><b><font ;14>%l%</font></b>" oCalcEdit.AllowTotal = "<b><font ;14>Total</font></b>" oCalcEdit.InsertText("100") oCalcEdit.InsertText("200") oCalcEdit.InsertText("300") oCalcEdit.InsertText("Total") |
28 |
Is it possible to show the Total / SubTotal with a different background color
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowTotal = "<bgcolor=A0A0A0><b>Total</b></bgcolor>" oCalcEdit.AllowSubTotal = "<bgcolor=E0E0E0><b>SubTotal</b></bgcolor>" oCalcEdit.InsertText("100") oCalcEdit.InsertText("200") oCalcEdit.InsertText("SubTotal") oCalcEdit.InsertText("300") oCalcEdit.InsertText("400 * 1.5") oCalcEdit.InsertText("SubTotal") oCalcEdit.InsertText("Total") |
27 |
Is it possible to show the Total / SubTotal with a different background color
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.BackColorTotal = RGB(196,196,196) oCalcEdit.BackColorSubTotal = RGB(240,240,240) oCalcEdit.InsertText("100") oCalcEdit.InsertText("200") oCalcEdit.InsertText("SubTotal") oCalcEdit.InsertText("300") oCalcEdit.InsertText("400 * 1.5") oCalcEdit.InsertText("SubTotal") oCalcEdit.InsertText("Total") |
26 |
How can I change the color to show the numbers
|
25 |
The numbers are shown in blue. How can I remove that
|
24 |
How can I export the entire text, including the result
|
23 |
Is it possible to display the result, using the current regional locale
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.DrawGridLines = true oCalcEdit.FormatResult = " <fgcolor=808080>[=%l%]</fgcolor>" oCalcEdit.FormatTotalResult = " <b>[=%l%]</b>" oCalcEdit.InsertText("100 * 100") oCalcEdit.InsertText("200 * 200") oCalcEdit.InsertText("300 * 300") oCalcEdit.InsertText("Total") |
22 |
How can I change the format to display the total result (right)
|
21 |
How can I change the format to display the total result (right)
|
20 |
Is it possible to rename the SubTotal
|
19 |
How can I disable the sub-totals
|
18 |
How can I add sub-totals
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.AllowComments = "<fgcolor=008000>'" oCalcEdit.AddWildFormat("<i>*=*<fgcolor=008000>'*") oCalcEdit.AllowVariables = "=" oCalcEdit.DrawGridLines = true oCalcEdit.LineHeight = "value + 8 * dpi" oCalcEdit.GridLineColor = RGB(196,196,196) oCalcEdit.FormatLocal = "currency(value)" oCalcEdit.FormatTotalResult = "<r><b> = %l%</b>" oCalcEdit.FormatSubTotalResult = "<r><fgcolor=808080>[<b> = %l%</b>]" oCalcEdit.FormatResult = "<r><fgcolor=808080>(%l%)" oCalcEdit.BackColorTotal = RGB(240,240,240) oCalcEdit.BackColorLockedLine = RGB(0,0,0) oCalcEdit.ForeColorLockedLine = RGB(0,0,0) oCalcEdit.CalcType = -1 oCalcEdit.Text = "100 + 200" oCalcEdit.InsertText("200 * 1.5") oCalcEdit.InsertText("SubA = SubTotal ' first subtotal") oCalcEdit.InsertText("300 + (200+300)/2") oCalcEdit.InsertText("400 + 500") oCalcEdit.InsertText("SubB = SubTotal ' second subtotal") oCalcEdit.InsertLockedText("VAT = Total * 0.19") oCalcEdit.InsertLockedText("Commision = Total * 0.05") oCalcEdit.InsertLockedText("NET = (Total - VAT) - Commision") oCalcEdit.InsertLockedText("Total") |
17 |
Is it possible to disable the Total
|
16 |
Is it possible to rename the Total to Sum
|
15 |
Is it possible to add all lines
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.InsertText("100") oCalcEdit.InsertText("200") oCalcEdit.InsertText("300") oCalcEdit.InsertText("Total") |
14 |
How do I insert / add a new line
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.Text = "100 * 1.5" oCalcEdit.InsertText("120 * 2.5\r\n",1) oCalcEdit.InsertText("200 * 1.5") |
13 |
How do I find out if a specified line is valid
/*begin event SelChange() - Occurs when the user selects text in the control.*/ /* oCalcEdit = ole_1.Object MessageBox("Information",string( "CurrentLine: " )) MessageBox("Information",string( String(oCalcEdit.CaretLine) )) MessageBox("Information",string( "CurrentLine: " )) MessageBox("Information",string( oCalcEdit.TextLine(oCalcEdit.CaretLine) )) MessageBox("Information",string( "IsValid: " )) MessageBox("Information",string( String(oCalcEdit.IsValid(oCalcEdit.CaretLine)) )) */ /*end event SelChange*/ OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.Text = "100 * 1.5" oCalcEdit.InsertText("invalid") oCalcEdit.InsertText("120 * 1.5") oCalcEdit.InsertText("130 * 1.5") |
12 |
How do I get the current line
/*begin event SelChange() - Occurs when the user selects text in the control.*/ /* oCalcEdit = ole_1.Object MessageBox("Information",string( "CurrentLine: " )) MessageBox("Information",string( String(oCalcEdit.CaretLine) )) MessageBox("Information",string( "CurrentLine: " )) MessageBox("Information",string( oCalcEdit.TextLine(oCalcEdit.CaretLine) )) MessageBox("Information",string( "CurrentResult: " )) MessageBox("Information",string( String(oCalcEdit.Result(oCalcEdit.CaretLine)) )) */ /*end event SelChange*/ OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.Text = "100 * 1.5" oCalcEdit.InsertText("120 * 1.5") oCalcEdit.InsertText("130 * 1.5") |
11 |
How do I get the line one by one, including the result
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.MultiLine = true oCalcEdit.Text = "100 * 1.5" oCalcEdit.InsertText("120 * 1.5") oCalcEdit.InsertText("130 * 1.5") MessageBox("Information",string( "Lines:" )) MessageBox("Information",string( String(oCalcEdit.Count) )) MessageBox("Information",string( "TextLine(1):" )) MessageBox("Information",string( oCalcEdit.TextLine(1) )) MessageBox("Information",string( "Result(1)" )) MessageBox("Information",string( String(oCalcEdit.Result(1)) )) MessageBox("Information",string( "TextLine(2):" )) MessageBox("Information",string( oCalcEdit.TextLine(2) )) MessageBox("Information",string( "Result(2)" )) MessageBox("Information",string( String(oCalcEdit.Result(2)) )) MessageBox("Information",string( "TextLine(3):" )) MessageBox("Information",string( oCalcEdit.TextLine(3) )) MessageBox("Information",string( "Result(3)" )) MessageBox("Information",string( String(oCalcEdit.Result(3)) )) |
10 |
Does the control supports multiple lines
|
9 |
Is it possible to display the result without brakets
|
8 |
How can I display the result on the right side of the control
|
7 |
Can you please advise how to change fontname and size (sample 2)
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.Template = "Font.Size = 20; Font.Name = `Tahoma`; Refresh" oCalcEdit.Text = "1/2" |
6 |
Can you please advise how to change fontname and size (sample 1)
|
5 |
How can I disable evaluating the selection
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.EvaluateSel = false oCalcEdit.HideSelection = false oCalcEdit.Text = "(1+6.25)/4*6/3" oCalcEdit.SelStart = 1 oCalcEdit.SelLength = 6 oCalcEdit.SelBackColor = RGB(0,0,0) |
4 |
Can I define a different decimal separator
|
3 |
How do I change the color of the entire control, if the expression is not valid
/*begin event Change() - Indicates that the control's text has changed.*/ /* oCalcEdit = ole_1.Object MessageBox("Information",string( "Valid:" )) MessageBox("Information",string( String(oCalcEdit.IsValid()) )) oCalcEdit.ForeColor = RGB(255,0,0) oCalcEdit.FormatNumbers = "<fgcolor FF0000>" oCalcEdit.FormatResult = "" */ /*end event Change*/ OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.FormatInvalid = "" oCalcEdit.Text = "invalid(1+6.25)/4*6/3" |
2 |
Is there any function to know if the expression is valid
/*begin event Change() - Indicates that the control's text has changed.*/ /* oCalcEdit = ole_1.Object MessageBox("Information",string( "Valid:" )) MessageBox("Information",string( String(oCalcEdit.IsValid()) )) MessageBox("Information",string( "Expression: " )) MessageBox("Information",string( oCalcEdit.Text )) MessageBox("Information",string( "Result: " )) MessageBox("Information",string( String(oCalcEdit.Result()) )) */ /*end event Change*/ OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.Text = "(1+6.25)/4*6/3" |
1 |
How do I programatically save / load the expression and the result
OleObject oCalcEdit oCalcEdit = ole_1.Object oCalcEdit.Text = "(1+6.25)/4*6/3" MessageBox("Information",string( "Expression: " )) MessageBox("Information",string( oCalcEdit.Text )) MessageBox("Information",string( "Result: " )) MessageBox("Information",string( String(oCalcEdit.Result()) )) |