乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
楼主: The Buzzard

[编程交流] 列表框,如何突出显示

[复制链接]

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 05:14:32 | 显示全部楼层
好的,我将列表提取的函数调用移到set_tile调用之上,现在它可以工作了。
 
 
非常感谢,这是票。
 
  1. test : dialog { label = "List_Box Example";
  2. spacer;
  3. : list_box { label = "Select Item"; key = "lst"; }
  4. spacer;
  5. ok_cancel;
  6. }
  7.             
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 05:17:57 | 显示全部楼层
李,
 
我仍然看到这种安排发生了一些奇怪的事情。我确信您提供了正确的使用程序。我将更完整地查看示例代码并进行一些实验。
 
我会告诉你我发现了什么。
回复

使用道具 举报

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 05:18:30 | 显示全部楼层
祝你好运
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 05:22:20 | 显示全部楼层
李,
 
在仔细检查了您的代码并了解如何将其应用于我的代码后,我发现这只是两种不同的情况。您正在显示的代码有一个列表,没有任何内容控制,例如单选按钮或其他列表。我的情况是单选按钮控制第一个列表的内容,第一个列表控制第二个列表的内容。每次对这些控制器中的任何一个执行操作时,高亮显示就会消失。必须有另一种方法来做到这一点,但什么都没有想到。为了克服这些障碍,我已经更改了这段代码好几天了。我想我会让这一个休息一下,直到我能找到类似的情况。
 
无论如何,谢谢你的帮助,
秃鹰
回复

使用道具 举报

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 05:25:11 | 显示全部楼层
嗨,Buzzard,我发布了一个尽可能简单的示例-我将尝试发布一个适用于您的情况的示例。
回复

使用道具 举报

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 05:28:40 | 显示全部楼层
秃鹰,
 
玩得开心点
实例lsp
实例dcl
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 05:31:51 | 显示全部楼层
回复

使用道具 举报

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 05:34:08 | 显示全部楼层
Lee,
 
After careful review of looking over your code and seeing how I could apply it to mine, I found that these are just two different situations. The code you are showing has one list with nothing controlling its contents such as a radio button or another list. My situation has radio buttons controlling the contents of the first list and the first list contolling the contents of the second list. Each time something is done to any of these controllers the highlighting disappears. There must be another way to do this, But nothing comes to mind. I have been changing this code around for days just to get past these obstacles. I guess i will let this one rest a while till I can find something similar to this situation.
 
Thanks for your help anyway,
The Buzzard
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 05:37:40 | 显示全部楼层
Hi Buzzard, I posted my example to be the simplest possible - I shall try to post an example that would apply to your situation.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 05:43:03 | 显示全部楼层
Buzzard,
 
Have fun playing around with this one
Example.lsp
Example.dcl
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-10 18:35 , Processed in 1.798926 second(s), 71 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表