Skip to content

Commit

Permalink
近接幅を相対的な値に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
ta-kon committed May 8, 2018
1 parent 159324c commit 6b415d6
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
Binary file modified Numbering-ExcelAddin.xlam
Binary file not shown.
4 changes: 2 additions & 2 deletions source/Model.bas
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ Public Sub initModel()
' リボン起動時に初期化

SELECT_SORT_ORDER = SORT_ORDER_ROW
COLLISION_NUM_STRING = "20px (標準)"
COLLISION = 20
COLLISION_NUM_STRING = "0.50倍 (標準)"
COLLISION = 0.50
START_NUM = 1
IS_CHANGE_TEXT = TRUE
IS_SELECT_FIGURE = TRUE
Expand Down
28 changes: 16 additions & 12 deletions source/View.bas
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,26 @@ Sub onCollisionTextChange(ByRef control As IRibbonControl, ByRef text As String)
COLLISION_NUM_STRING = text

Select Case text
Case "0px"
Case "0倍 (非隣接)"
COLLISION = 0
Case "10px"
COLLISION = 10
Case "20px (標準)"
COLLISION = 20
Case "30px"
COLLISION = 30
Case "0.25倍"
COLLISION = 0.25
Case "0.50倍 (標準)"
COLLISION = 0.50
Case "0.75倍"
COLLISION = 0.75
Case "1.00倍"
COLLISION = 1.00
Case Else
Dim s As String
s = Replace(text, "px", "")
If IsNumeric(s) Then
COLLISION = CLng(s)
Dim strDbl As String
strDbl = Trim(text)
strDbl = Replace(strDbl, "倍", "")
strDbl = Trim(strDbl)
If IsNumeric(strDbl) Then
COLLISION = CDbl(strDbl)
Else
Dim message As String
message = "数値を入力してください。(単位: px), 現在の値=" & text
message = "数値を入力してください。(単位: ), 現在の値=" & text
Call setMsgAndStatus(message)
End If
End Select
Expand Down
11 changes: 6 additions & 5 deletions source/customUI14.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@
</dropDown>

<comboBox id="collisionComboBox" label="近接幅:" keytip="C" imageMso="ControlPropertyHeightValue" showItemImage="true" maxLength="10" sizeString="WWWWWWWWWW"
supertip="採番する際に、同じ採番範囲の図形だとする範囲を設定します。"
supertip="採番する際に、同じ採番範囲の図形だとする範囲を設定します。図形を比較する際に重なる図形の幅の倍率を指定できます。"
getText="View.getCollisionText"
onChange="View.onCollisionTextChange">
<item id="COLLISION_0px" label="0px" />
<item id="COLLISION_10px" label="10px" />
<item id="COLLISION_20px" label="20px (標準)" />
<item id="COLLISION_30px" label="30px" />
<item id="COLLISION.x0.00" label="0倍 (非隣接)" />
<item id="COLLISION.x0.25" label="0.25倍" />
<item id="COLLISION_x0.50" label="0.50倍 (標準)" />
<item id="COLLISION_x0.75" label="0.75倍" />
<item id="COLLISION_x1.00" label="1.00倍" />
</comboBox>
</group>

Expand Down

0 comments on commit 6b415d6

Please sign in to comment.