How to shorten display time for the inline message in Windchill 10.0

本文介绍如何通过修改Windchill 10.0中的messaging.jsfrag文件来缩短内联消息的显示时间和淡出时间。具体步骤包括调整消息显示时长及淡出持续时间,并重新编译文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

标题How to shorten display time for the inline message in Windchill 10.0
说明
  • The inline message will display 4 seconds, then fade out gradually.
  • How to shorten the display time?
  • Inline message example after creating a new object successfully:

CONFIRMATION: Create successful
The object was created successfully.

适用于Windchill PDMLink 10.0 M020
原因 
解决方案
1. Open file <WT_HOME>\codebase\netmarkets\javascript\util\jsfrags\messaging.jsfrag in a text editor
2. Locate following content:
 

/** after user has not touched the message window for 4 seconds, begin to fade it out */
PTC.messaging.deferTimeoutMill = 4000;


3. Change the value of PTC.messaging.deferTimeoutMill from 4000 (4 seconds) to 1000 (1 second), this will shorten the display time for inline message.

4. Locate following content:

PTC.messaging.messageFadeout = function(){
    PTC.messaging.msgWindow.getEl().fadeOut({
        endOpacity: 0.01,
        duration: 6,
                  callback: PTC.messaging.closeInlineMessageFadeout
    });
};

5. Change the duration value from 6 to 1, this will shorten the fade out time for inline message.
6. Save the file
7. Execute following command in Windchill shell:
 

ant -f bin\jsfrag_combine.xml

8. Restart Windchill
9. Open a new browser session to observe the change
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值