亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? frmsavegeoset.frm

?? MapX4.0在VB中的應用例子
?? FRM
?? 第 1 頁 / 共 4 頁
字號:
    
    'Set the Tool Icons
    pctTools(1).Picture = ilstIcons.ListImages(4).Picture
    pctTools(2).Picture = ilstIcons.ListImages(2).Picture
    pctTools(3).Picture = ilstIcons.ListImages(3).Picture
    
    'Set the current tool
    Map1.CurrentTool = miZoomInTool
    
    'Set the icons for the File buttons
    pctFileIO(1).Picture = ilstIcons.ListImages(7).Picture
    pctFileIO(2).Picture = ilstIcons.ListImages(8).Picture
    pctFileIO(3).Picture = ilstIcons.ListImages(9).Picture
    
    'Get the location of the GST and map files
    strTemp = QueryValue("SOFTWARE\MapInfo\MapX\4.0", "GeoDictionary")
    
    'At this point strTemp looks something like this -> C:\Program Files\MapInfo\MapX\4.0\Maps\Geodict.dct
    'We just need the path
    
    'Search the string from right to elft
     For intCounter = Len(strTemp) To 1 Step -1
        'If we find a '\' then we have the path (all of the character to the left of it)
         If Mid$(strTemp, intCounter, 1) = "\" Then
            'Set the variable
            mstrPathtoGSTs = Left$(strTemp, intCounter)
            'Get out of the loop
            Exit For
         End If
      Next
      
     'Get the full path and filename of the current geoset
     mstrLastUsedFile = Map1.Geosets(Map1.Geoset).PathName
     
End Sub

Private Sub Form_Resize()
'*****************************************************************************************************
'This routine is called whenever the user resizes the main window.
Map1.Width = frmGeoSets.Width - fraMapViewTools.Left - fraMapViewTools.Width - 100
Map1.Height = frmGeoSets.Height - 100

End Sub

Private Sub mnuFile1_Click(Index As Integer)
'*****************************************************************************************************
'This is called any time the user chooses an item from the File
'
'The Index Numbers go a little something like this :
'File
'    New Geoset         100
'    Open Geoset        101
'    Save Geoset        102
'    Exit                    199
'    Divider Bar         499
'    MRU1                 500
'    MRU2                 501
'    MRU3                 502
'    MRU4                 503

On Error GoTo JRS_GENERIC_ERROR_HANDLER:

Select Case Index
    Case 100 'New Geoset
            'Clear the Geoset, so we start with a new one
            Map1.Geoset = ""
            'Update the Geoset Name text
            txtGeoSetName.Text = "Geoset Name"
            'Allow the user to choose what coordinate system
            Map1.DisplayCoordSys.PickCoordSys
            'Allow the user to add new layers
            Map1.Layers.LayersDlg
            'Update the LastUsedFile variable
            mstrLastUsedFile = mstrPathtoGSTs & "Geoset1.GST"
            
    Case 101 'Open a Geoset
            'Using the Windows CommonDialog control
            With comFileIO
                .DialogTitle = "Open GeoSet"
                .DefaultExt = "GST"
                'Don't show the 'Open as Read Only' checkbox
                .Flags = cdlOFNHideReadOnly
                'Look for the most recently used file as a default
                .filename = mstrLastUsedFile
                'Give user the option of *.GST or *.* for file types
                .Filter = "MapX geoset (*.GST) |*.GST|All Files(*.*)|*.*"
                'By default show *.GST (1st item from the Filter property)
                .FilterIndex = 1
                'Trip an erro if the user hits cancel (so we can trap for it)
                .CancelError = True
                'Action 1 is to show as file open
                .Action = 1
            End With
            
            'As long as we don't have a blank
            If comFileIO.filename <> "" Then
                'Load the geoset
                Map1.Geoset = comFileIO.filename
                'Show the Geoset name
                txtGeoSetName.Text = Map1.Geosets(Map1.Geoset).UserName
                'Hide the title text
                Map1.Title.Visible = False
                'Write to the registry with the new file
                Call UpdateMRUList(comFileIO.filename)
                'Update the file menu
                Call UpdateFileMenu
                'Update the LastUsed variable
                mstrLastUsedFile = comFileIO.filename
            End If
    
    Case 102 'Save the Geoset
            With comFileIO
                .DialogTitle = "Save GeoSet"
                .DefaultExt = "GST"
                'Show a warning dialog if user is going to overwrite, hide the 'read only' checkbox, path that user types in, must exist
                .Flags = cdlOFNOverwritePrompt Or cdlOFNHideReadOnly Or cdlOFNPathMustExist
                .filename = mstrLastUsedFile
                .Filter = "MapX Geoset (*.GST)|*.GST|All Files(*.*)|*.*"
                .FilterIndex = 1
                .CancelError = True
                'Action 2 is Show Save
                .Action = 2
            End With
                        
            If comFileIO.filename <> "" Then
                Dim strName As String
                'If you try and create a freindly geoset name longer than 255 character, it doesn't get written to the *.GST file
                If Len(txtGeoSetName.Text) > 255 Then
                    'If it's too big, grab the left most 255 characters
                    strName = Left$(txtGeoSetName.Text, 255)
                Else
                    'Else, copy the whole thing
                    strName = txtGeoSetName.Text
                End If
                'Save the Geoset
                Map1.SaveMapAsGeoset strName, comFileIO.filename
                'Update things (next 3 lines)
                mstrLastUsedFile = comFileIO.filename
                Call UpdateMRUList(comFileIO.filename)
                Call UpdateFileMenu
                'View the text using NOTEPAD
                'Shell "NOTEPAD.exe " & comFileIO.filename, vbNormalFocus
            End If
            
    Case 199 'Exit
            End
    Case 500, 501, 502, 503
            'These are the 1st,2nd,3rd,4th most recently used file, respectively
            
            Dim strFileNameWithoutNumber As String
            'The menu caption for the MRU's looks like this:
            '  1. C:\MapInfo\MDLand\Maps\Sales.GST   [with the 1 being underscored]
            'As a string, VB sees it as
            '  &1. C:\MapInfo\MDLand\Maps\Sales.GST
            'So we need to pull out just the FileName and get rid of the number
            strFileNameWithoutNumber = Trim$(Right$(mnufile1(Index).Caption, Len(mnufile1(Index).Caption) - 4))
                        
            'Make sure that the file still exists (it could have been deleted since last used)
            If FileExists(strFileNameWithoutNumber) = True Then
                'Set the Geoset
                Map1.Geoset = strFileNameWithoutNumber 'mnufile1(Index).Caption
                'Update the textbox
                txtGeoSetName.Text = Map1.Geosets(Map1.Geoset).UserName
                'Make the title invisible
                Map1.Title.Visible = False
                'Update things (next 3 lines)
                mstrLastUsedFile = Map1.Geosets(Map1.Geoset).PathName
                Call UpdateMRUList(strFileNameWithoutNumber)
                Call UpdateFileMenu
            End If
End Select

Exit Sub

JRS_GENERIC_ERROR_HANDLER:
    Select Case Err.Number
        Case 32755 'User hit cancel
             'Do nothing.  No file will be saved or opened
        Case Else 'Most likely, an error trying to open notepad
             Resume Next
    End Select
End Sub

Private Sub pctFileIO_Click(Index As Integer)
    '**********************************************************************************************
    'CAlled when the user clicks on one of the file icons [New, Open, Save]
    Select Case Index
        Case 1 'New Geoset
            Call mnuFile1_Click(100)
        Case 2 'Open Geoset
            Call mnuFile1_Click(101)
        Case 3 'Save Geoset
            Call mnuFile1_Click(102)
    End Select
End Sub

Private Sub pctTools_Click(Index As Integer)

'Set all tools to the "up button" icon
pctTools(1).Picture = ilstIcons.ListImages(1).Picture
pctTools(2).Picture = ilstIcons.ListImages(2).Picture
pctTools(3).Picture = ilstIcons.ListImages(3).Picture

'Get the "down button" picture from the image list control
pctTools(Index).Picture = ilstIcons.ListImages(Index + 3).Picture

'Set the current tool
Select Case Index
    Case 1
        Map1.CurrentTool = miZoomInTool
    Case 2
        Map1.CurrentTool = miZoomOutTool
    Case 3
        Map1.CurrentTool = miPanTool
End Select
End Sub

Public Sub UpdateMRUList(ByVal strGeosetPath As String)
'*****************************************************************************************************
'Here we write to the registry, keeping track of the 4 most recently used files
'  If the newest file is not in the list, we add that as the 1st and bump #2 to #3, and #3 to #4, and 4 gets thrown away
' If the newest file is in the list, we just have to shuffle the list around.  The variable *intNumMatch* will point to the
'Item it matches with

Dim strMRU1 As String, strMRU2 As String, strMRU3, strMRU4 As String
Dim intNumMatch As Integer

'Set the variables which will hold the filenames of the most recently used files.  I used UCASE$ so that they would all
'be in uppercase, so we don't have to worry about case inconsistancies
strMRU1 = UCase$(QueryValue("SOFTWARE\MapInfo\GeosetManager", "MRU1"))
strMRU2 = UCase$(QueryValue("SOFTWARE\MapInfo\GeosetManager", "MRU2"))
strMRU3 = UCase$(QueryValue("SOFTWARE\MapInfo\GeosetManager", "MRU3"))
strMRU4 = UCase$(QueryValue("SOFTWARE\MapInfo\GeosetManager", "MRU4"))

'Uppercase the name of the file that was passed as a parameter to this function
strGeosetPath = UCase$(strGeosetPath)

'Right now, the new file doesn't match any of the existing filenames
intNumMatch = 0

'You can't take the LEFT$() of an empty string
If Len(strMRU1) > 0 Then
    'If we have a match between the #1 most recently used and the current file, set the matched variable to 1
    'I use the left$() here, because the strMRU1 has an additional character (NULL char, I think) at the end
    If Left$(strMRU1, Len(strMRU1) - 1) = strGeosetPath Then intNumMatch = 1
End If

'Repeat the above process to check if the current file matches the #2, #3, or #4 MRUfiles

If Len(strMRU2) > 0 Then
    If Left$(strMRU2, Len(strMRU2) - 1) = strGeosetPath Then intNumMatch = 2
End If

If Len(strMRU3) > 0 Then
    If Left$(strMRU3, Len(strMRU3) - 1) = strGeosetPath Then intNumMatch = 3
End If

If Len(strMRU4) > 0 Then
    If Left$(strMRU4, Len(strMRU4) - 1) = strGeosetPath Then intNumMatch = 4
End If


Select Case intNumMatch
        'Depending on (if there was a match)/(which one it matched) update the reg entries
        Case 0
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU1", strGeosetPath, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU2", strMRU1, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU3", strMRU2, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU4", strMRU3, REG_SZ
        Case 1
            'It was the first in the list, everything stays the same
            
        Case 2
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU1", strMRU2, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU2", strMRU1, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU3", strMRU3, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU4", strMRU4, REG_SZ
        Case 3
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU1", strMRU3, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU2", strMRU1, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU3", strMRU2, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU4", strMRU4, REG_SZ
        Case 4
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU1", strMRU4, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU2", strMRU1, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU3", strMRU2, REG_SZ
            SetKeyValue "SOFTWARE\MapInfo\GeosetManager", "MRU4", strMRU3, REG_SZ
        
End Select

End Sub

Public Sub UpdateFileMenu()
'*************************************************************************************************
'This sub reads the registry entries and updates the File menu with the names of most recently used files
    
    Dim intCounter As Integer
    Dim strTemp As String
    
    'Turn the dividing bar off
    mnufile1(499).Visible = False
    
    'Loop through the 4 menu items (Index numbers 500,501,502,503
    For intCounter = 500 To 503
            'read the registry entry, getting key MRU1, MRU2, MRU3 or MRU4
            strTemp = QueryValue("SOFTWARE\MapInfo\GeosetManager", "MRU" & Trim$(Str$(intCounter - 499)))
            'If the key exists (it won't the first time you run this program)
            If Len(strTemp) > 1 Then
                'Make the menu item visible
                mnufile1(intCounter).Visible = True
                'Set it's caption
                mnufile1(intCounter).Caption = "&" & (intCounter - 499) & ".  " & strTemp
                'Show the divider bar
                mnufile1(499).Visible = True
            Else
                'Make the menu item invisible
                mnufile1(intCounter).Visible = False
            End If
    Next
End Sub

Function FileExists(filename As String) As Integer
'********************************************************************************************
'This function deermines whether or not a file exists, hence the name FileExists.
    
    Dim i As Integer
    On Error Resume Next
        i = Len(Dir$(filename))
            If Err Or i = 0 Then
                FileExists = False
                Else
                FileExists = True
    End If
End Function

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲国产日韩| 欧美日韩黄色影视| 国产欧美一区二区精品仙草咪| 久久精品国产久精国产爱| 日韩三级视频在线观看| 国产毛片精品视频| 欧美经典一区二区三区| 91蝌蚪porny| 五月天网站亚洲| 日韩欧美国产1| 北条麻妃一区二区三区| 亚洲激情综合网| 欧美一区二区在线免费播放| 韩国av一区二区三区四区| 国产精品久久久久久久久久久免费看 | 久久国产综合精品| 国产欧美精品国产国产专区| 91香蕉视频污在线| 日本不卡在线视频| 国产精品免费aⅴ片在线观看| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 欧美裸体一区二区三区| 国产在线播放一区三区四| 一区免费观看视频| 91精品一区二区三区久久久久久| 国产精品中文欧美| 亚洲国产综合91精品麻豆| 欧美刺激午夜性久久久久久久| 成人免费高清视频| 日韩激情在线观看| 亚洲欧美另类久久久精品| 3d动漫精品啪啪一区二区竹菊| 懂色av一区二区夜夜嗨| 亚洲成人先锋电影| 国产精品丝袜91| 欧美一级在线视频| 色又黄又爽网站www久久| 精品综合久久久久久8888| 亚洲人精品午夜| 久久久久久亚洲综合| 欧美精三区欧美精三区| 99精品视频中文字幕| 国产麻豆欧美日韩一区| 亚洲成人av福利| 亚洲乱码国产乱码精品精可以看| 精品人伦一区二区色婷婷| 欧洲一区二区三区在线| 成人午夜在线播放| 精品制服美女久久| 午夜精彩视频在线观看不卡| 亚洲欧洲日韩在线| 久久精品免视看| 日韩欧美另类在线| 欧美日韩国产欧美日美国产精品| 99久久综合国产精品| 国产精品一卡二卡| 久久99精品久久只有精品| 视频一区二区三区入口| 亚洲专区一二三| 亚洲精品伦理在线| 亚洲欧美在线aaa| 亚洲国产精品t66y| 国产亚洲污的网站| 久久亚洲精品国产精品紫薇| 日韩你懂的电影在线观看| 欧美理论片在线| 欧美三级日韩在线| 欧美日韩精品高清| 欧美精品久久99| 91麻豆精品国产91久久久| 欧美日韩情趣电影| 欧美日韩高清在线播放| 欧美三级三级三级| 欧美日韩免费视频| 91.com视频| 日韩欧美中文一区二区| 欧美一区二区视频在线观看2022 | 国产精品色眯眯| 亚洲国产精品国自产拍av| 欧美激情一区二区三区| 中文一区二区在线观看| 国产精品久久久久一区二区三区共| 久久精品人人做人人综合| 欧美激情资源网| 最新日韩av在线| 亚洲综合久久久久| 午夜欧美在线一二页| 捆绑调教一区二区三区| 久久99日本精品| 国产v综合v亚洲欧| av一区二区三区在线| 欧美亚洲一区二区在线观看| 91精品久久久久久久91蜜桃 | 成人免费毛片高清视频| 不卡一区二区三区四区| 欧美影院午夜播放| 日韩三级在线免费观看| 国产日产欧美一区| 亚洲视频一区二区在线| 天天操天天色综合| 精品夜夜嗨av一区二区三区| 成人av一区二区三区| 欧美视频一区二区在线观看| 日韩免费一区二区| 中文字幕av一区二区三区| 亚洲图片欧美色图| 国产美女一区二区| 欧美自拍偷拍一区| 久久久久久日产精品| 亚洲欧美日韩国产手机在线| 免费成人在线网站| 成人av在线看| 91精品久久久久久久91蜜桃| 国产精品三级久久久久三级| 亚洲自拍都市欧美小说| 韩国女主播一区二区三区| 欧美精品一区视频| 亚洲男人的天堂网| 精品亚洲免费视频| 91久久国产最好的精华液| 精品国产乱码久久久久久影片| 国产精品福利电影一区二区三区四区| 亚洲成人自拍偷拍| 成人综合在线网站| 精品国产一区二区三区不卡| 亚洲裸体xxx| 国产成人午夜精品5599| 91精品在线一区二区| 成人欧美一区二区三区白人 | 夜夜嗨av一区二区三区| 国产一区中文字幕| 欧美精选午夜久久久乱码6080| 国产精品久久毛片av大全日韩| 日韩在线a电影| 在线观看国产一区二区| 国产精品久久久久三级| 精品一区二区三区视频在线观看| 91年精品国产| 中文文精品字幕一区二区| 精品一区二区三区欧美| 欧美日韩一区二区三区在线看| 欧美国产视频在线| 韩国视频一区二区| 欧美一区二区三区色| 一区二区免费看| 色综合久久中文字幕| 国产精品视频麻豆| 国产成人av自拍| 国产欧美日韩激情| 国产亚洲一区二区三区| 亚洲综合色噜噜狠狠| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 亚洲一二三区在线观看| 成人av电影在线观看| 久久久午夜电影| 久草中文综合在线| 精品88久久久久88久久久| 日本中文一区二区三区| 在线电影院国产精品| 亚洲va在线va天堂| 欧美人妖巨大在线| 午夜精品国产更新| 欧美精品日韩综合在线| 日本美女一区二区| 欧美精品欧美精品系列| 日韩va亚洲va欧美va久久| 欧美欧美欧美欧美首页| 人人精品人人爱| 欧美成人三级电影在线| 经典三级视频一区| 国产欧美一区二区精品久导航 | 91在线视频观看| 综合激情成人伊人| 91麻豆国产香蕉久久精品| 洋洋成人永久网站入口| 欧美视频完全免费看| 日本不卡视频一二三区| 日韩一区二区影院| 韩国av一区二区三区| 亚洲国产精品黑人久久久| 91在线视频免费观看| 亚洲成va人在线观看| 欧美剧情片在线观看| 国产在线日韩欧美| 中文字幕制服丝袜成人av| 在线亚洲一区二区| 蜜臀精品久久久久久蜜臀| 亚洲精品在线一区二区| 99久久国产综合精品女不卡| 亚洲最大的成人av| 欧美岛国在线观看| 成人一级黄色片| 亚洲一二三区在线观看| 精品福利一区二区三区免费视频| 成人h精品动漫一区二区三区| 亚洲图片自拍偷拍| 国产色综合一区| 91成人免费在线| 国产又粗又猛又爽又黄91精品| 国产精品视频在线看|