home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 February
/
Chip_2001-02_cd1.bin
/
sharewar
/
vecad
/
examples
/
vb
/
editor
/
Strings.bas
< prev
next >
Wrap
BASIC Source File
|
2000-09-01
|
763b
|
26 lines
Attribute VB_Name = "Module3"
'-------------------------------------------------------------------
' Overwrite VeCAD strings
' Used to localize VeCAD to other languages
'-------------------------------------------------------------------
Function LoadString(ByVal Id As Long) As Long
Dim str As String
LoadString = 1
' assign new string according to string's identifier
Select Case Id
Case VS_PRINT_TITLE
str = "Print2"
Case VS_ENTPROP_TITLE
str = "Objects properties 2"
Case VS_LINE_TITLE
str = "Line2"
Case Else
LoadString = 0 ' string will not overwritten
End Select
' pass new string to VeCAD
If (LoadString = 1) Then
vlPropPut VD_DWG_STRING, 0, str
End If
End Function