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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...