11VERSION 5.00
22Begin {C62A69F0-16 DC-11 CE-9 E98-00 AA00574A4F} LatexForm
33 Caption = "IguanaTex"
4- ClientHeight = 5880
5- ClientLeft = -264
6- ClientTop = -960
7- ClientWidth = 9192.001
4+ ClientHeight = 7056
5+ ClientLeft = -240
6+ ClientTop = -864
7+ ClientWidth = 11028
88 OleObjectBlob = "LatexForm.frx" :0000
99 StartUpPosition = 1 'CenterOwner
1010End
@@ -703,12 +703,12 @@ Sub ButtonRun_Click()
703703 End If
704704 ' Tag shape and its components with their "original" sizes,
705705 ' which we get by dividing their current height/width by the scaling factors applied above
706- NewShape.Tags.Add "ORIGINALHEIGHT" , NewShape.Height / tScaleHeight
707- NewShape.Tags.Add "ORIGINALWIDTH" , NewShape.Width / tScaleWidth
706+ NewShape.Tags.Add "ORIGINALHEIGHT" , Str( NewShape.Height / tScaleHeight)
707+ NewShape.Tags.Add "ORIGINALWIDTH" , Str( NewShape.Width / tScaleWidth)
708708 If NewShape.Type = msoGroup Then
709709 For Each s In NewShape.GroupItems
710- s.Tags.Add "ORIGINALHEIGHT" , s.Height / tScaleHeight
711- s.Tags.Add "ORIGINALWIDTH" , s.Width / tScaleWidth
710+ s.Tags.Add "ORIGINALHEIGHT" , Str( s.Height / tScaleHeight)
711+ s.Tags.Add "ORIGINALWIDTH" , Str( s.Width / tScaleWidth)
712712 Next
713713 End If
714714 Else
@@ -719,10 +719,10 @@ Sub ButtonRun_Click()
719719 .LockAspectRatio = msoFalse
720720 .ScaleHeight BitmapScalingY, msoFalse
721721 .ScaleWidth BitmapScalingX, msoFalse
722- .Tags.Add "OUTPUTDPI" , OutputDpi ' Stores this display's resolution
722+ .Tags.Add "OUTPUTDPI" , Str( OutputDpi) ' Stores this display's resolution
723723 ' Add tags storing the original height and width, used next time to keep resizing ratio.
724- .Tags.Add "ORIGINALHEIGHT" , NewShape.Height
725- .Tags.Add "ORIGINALWIDTH" , NewShape.Width
724+ .Tags.Add "ORIGINALHEIGHT" , Str( NewShape.Height)
725+ .Tags.Add "ORIGINALWIDTH" , Str( NewShape.Width)
726726 ' Apply scaling factors
727727 .ScaleHeight tScaleHeight, msoFalse
728728 .ScaleWidth tScaleWidth, msoFalse
@@ -975,16 +975,16 @@ End Sub
975975Private Sub AddTagsToShape (ByVal vSh As Shape )
976976 With vSh.Tags
977977 .Add "LATEXADDIN" , TextWindow1.Text
978- .Add "IguanaTexSize " , val( NormalizeDecimalNumber(textboxSize.Text) )
978+ .Add "IGUANATEXSIZE " , NormalizeDecimalNumber(textboxSize.Text)
979979 .Add "IGUANATEXCURSOR" , TextWindow1.SelStart
980980 .Add "TRANSPARENCY" , checkboxTransp.value
981981 .Add "CHOOSECOLOR" , CheckBoxChooseColor.value
982982 .Add "COLORHEX" , TextBoxChooseColor.Text
983983 .Add "FILENAME" , TextBoxFile.Text
984984 .Add "LATEXENGINEID" , ComboBoxLaTexEngine.ListIndex
985985 .Add "TEMPFOLDER" , TextBoxTempFolder.Text
986- .Add "LATEXFORMHEIGHT" , LatexForm.Height
987- .Add "LATEXFORMWIDTH" , LatexForm.Width
986+ .Add "LATEXFORMHEIGHT" , Str( LatexForm.Height)
987+ .Add "LATEXFORMWIDTH" , Str( LatexForm.Width)
988988 .Add "LATEXFORMWRAP" , TextWindow1.WordWrap
989989 .Add "BitmapVector" , ComboBoxBitmapVector.ListIndex
990990 End With
@@ -1577,11 +1577,11 @@ Sub RetrieveOldShapeInfo(ByVal oldshape As Shape, ByVal mainText As String)
15771577 ComboBoxLaTexEngine.ListIndex = .item("LATEXENGINEID" )
15781578 End If
15791579 If .item("LATEXFORMHEIGHT" ) <> vbNullString Then
1580- LatexForm.Height = NormalizeDecimalNumber(.item("LATEXFORMHEIGHT" ))
1580+ LatexForm.Height = val( NormalizeDecimalNumber(.item("LATEXFORMHEIGHT" ) ))
15811581 FormHeightSet = True
15821582 End If
15831583 If .item("LATEXFORMWIDTH" ) <> vbNullString Then
1584- LatexForm.Width = NormalizeDecimalNumber(.item("LATEXFORMWIDTH" ))
1584+ LatexForm.Width = val( NormalizeDecimalNumber(.item("LATEXFORMWIDTH" ) ))
15851585 FormWidthSet = True
15861586 End If
15871587 If .item("LATEXFORMWRAP" ) <> vbNullString Then
0 commit comments