www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Windows Class: SetControlProp

Previous  Top  Next  


Prototype: (Long pFEQ, Long pProperty, String pValue)

 

pFEQField EQuate label for the control to change

 

pPropertyProperty to set

 

pValueValue to set the Property to.

 

This method does simple property assignment, but only if the property value has changed.  This can reduce flicker caused by setting properties on controls repeatedly inside of a loop.  This method simply sets the property only if it has changed.

 

Example:

 

ITW  ITWindowsClass

Code

If EVENT() = EVENT:Timer

  If TimerActive

    Loop 100 Times

      Next(MyFile)

      If ErrorCode()

        TimerActive = False

        Close(MyFile)

        Break

      End

      ITW.SetControlProp(?String1,PROP:Text,MYF:Name) ! Only changes PROP:Text if MYF:Name has changed

    End

  End

End

 

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/setcontrolprop_window.htm