Jump to content

form caption


jahlxx

Recommended Posts

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,

Link to comment
Share on other sites

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']);
Link to comment
Share on other sites

  • 3 weeks later...

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.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...