jahlxx Posted March 1, 2018 Share Posted March 1, 2018 Hi. Is possible to put the caption of a form blinking? Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 1, 2018 Share Posted March 1, 2018 Hi, If I understand you correctly, one possible solution I think: MainForm -> ClientEvents -> ExtEvents -> function window.afterrender: function window.afterrender(sender, eOpts) { (function blink() { $('#O0_id .x-title-text').fadeOut(500).fadeIn(500, blink); })(); } Best regards, Quote Link to comment Share on other sites More sharing options...
jahlxx Posted March 1, 2018 Author Share Posted March 1, 2018 Ok. Thanks. But I was thinking in change to blinking in run time, something simitar to; form.caption := <font color="red">WORK IN PROCESS</font>'; But blinking. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 1, 2018 Share Posted March 1, 2018 Ok. Thanks. But I was thinking in change to blinking in run time, something simitar to; form.caption := <font color="red">WORK IN PROCESS</font>'; But blinking. One possible solution: 1. CustomCSS: .flash { animation-name: flash; animation-duration: 0.3s; animation-timing-function: linear; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: running; } @keyframes flash { from {color: red;} to {color: black;} } 2. "blink": Self.WebForm.JSInterface.JSCall('header.titleCmp.addCls', ['flash']); 3. "cancel": Self.WebForm.JSInterface.JSCall('header.titleCmp.removeCls', ['flash']); Quote Link to comment Share on other sites More sharing options...
Fidel76 Posted March 18, 2018 Share Posted March 18, 2018 How can i change the Tuniform ; 1. TitleBar Background color, 2. Border color, 3, Text color, 4. Font size, in delphi using such as MyFormName.WebForm.JSName? without going through ClientEvents->ExtEvents. But doing so at runtime. ? Thanks all in advance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.