Jump to content


Photo

extevent runtime


  • Please log in to reply
4 replies to this topic

#1 jahlxx

jahlxx

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 883 posts

Posted 06 July 2018 - 12:26 PM

Hi.

 

I have this for some components:

 

               tunibitbtn(formulario.components[n]).ClientEvents.ExtEvents.Values['onadded']:='function add(sender, container, pos, eOpts)'+
                    ' { sender.addCls(''myOKboton'');}';
 

 

I'd like to do something similar for some forms:

 

               formulario.ClientEvents.ExtEvents.Values['onwindowadded']:='function window.add(sender, component, index, eOpts)'+
                    ' { sender.addCls(''myForm'');}';


 

 

But this don't work.

 

I don't know with is the correct event.

 

Some idea?

 

thanks.


  • 0

#2 jahlxx

jahlxx

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 883 posts

Posted 06 July 2018 - 04:02 PM

I¡ve been reviewing some posts in the forums, but I can't find a way to do it.

 

I "only" want to change border color of a form in run time, like I can do with buttons.

 

Any idea?

 

Thanks.


  • 0

#3 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5177 posts

Posted 06 July 2018 - 05:42 PM

Hi,

 

Also this post can help you:

http://forums.unigui...-and-title-bar/


  • 0

#4 jahlxx

jahlxx

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 883 posts

Posted 07 July 2018 - 09:35 AM

almost.

 

can I use uniform instead of webform?

 

thanks.


  • 0

#5 jahlxx

jahlxx

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 883 posts

Posted 09 July 2018 - 04:25 PM

sorry.  webform is a property of uniform.

 

it works perfect.

 

Thanks.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users