Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:TopicLink 循环遍历

1楼
puma 发表于:2024/4/15 12:59:00
需求:单击某个导航的时候,添加一个logo。
方法:先清除所有的logo。在指定的行添加
问题:TopicLink  怎么循环遍历,清除下top的logo。

Dim tpb As WinForm.TopicBar = Forms("导航").Controls("TopicBar1")
For Each page As WinForm.TopicPage In tpb.Pages
msgbox(page.Name)
    'For Each  tpl As WinForm.TopicLink In pages.TopicLink
        'msgbox("tpl.name")
    'Next
    'If page.Name <> e.Page.Name Then
    'page.Collapsed = True
    'End If
Next
2楼
有点蓝 发表于:2024/4/15 13:34:00
    For Each  tpl As WinForm.TopicLink In page .Links
        tpl.ImageFile =nothing
    Next
3楼
puma 发表于:2024/4/15 13:52:00
感谢!蓝板,已成功实现。贴下我的代码


Dim pageName As String =  args(0)
Dim linkName As String = args(1)

Dim tpb As WinForm.TopicBar = Forms("导航").Controls("TopicBar1")
For Each page As WinForm.TopicPage In tpb.Pages
    For Each  tpl As WinForm.TopicLink In page .Links
        tpl.ImageFile =Nothing
    Next
Next


Dim tl As WinForm.TopicLink
tl = Forms("导航").Controls("TopicBar1").Pages(pageName).Links(linkName)
tl.ImageFile = "右箭头.png"
共3 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03125 s, 2 queries.