Foxtable(狐表)用户栏目专家坐堂 → [求助]窗口菜单的自动翻译问题


  共有2227人关注过本帖树形打印复制链接

主题:[求助]窗口菜单的自动翻译问题

帅哥哟,离线,有人找我吗?
atmetmicoo
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:二尾狐 帖子:531 积分:4155 威望:0 精华:0 注册:2012/11/26 21:54:00
[求助]窗口菜单的自动翻译问题  发帖心情 Post By:2016/9/7 17:30:00 [只看该作者]

各位老师好,

每个窗口我都做了自动翻译,

Dim EFrom as String = e.Form.Name
For Each c As Winform.Control In Forms(EFrom).Controls

    If  Typeof c Is WinForm.CheckBox Then
        Dim w As WinForm.CheckBox = Forms(EFrom).Controls(c.name)
        Dim dr As DataRow = DataTables("SyLanuage").find("[cn] = '" & w.Text & "'")
        If dr IsNot Nothing
            w.text = dr("en")
        End If
    End If

    If  Typeof c Is WinForm.Table Then
        Dim w As WinForm.Table = Forms(EFrom).Controls(c.name)
        Dim t1 As String = EFrom & "_" & w.Name
        For Each cl As Col In Tables(t1).cols
            Dim dr As DataRow =  DataTables("SyLanuage").find("[cn] = '" & cl.Caption & "'")
            If dr IsNot Nothing
                cl.Caption = dr("en")
            End If
        Next
        Tables(t1).BuildHeader()
    End If
    '省略很多代码...

Next

但是窗口菜单我不知道怎么历遍,哪位老师知道怎么写这个代码吗?谢谢。

 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109463 积分:556971 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2016/9/7 17:57:00 [只看该作者]


For Each Strip As WinForm.Strip In e.Form.Strips
    For Each sit As WinForm.StripItem In Strip.Items
        Output.Show(sit.name)
    Next
Next

 回到顶部