Consultor Eletrônico



Kbase P169994: NETUI: How to change an Infragistics UltraButton image in ABL?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/4/2011
Status: Unverified

GOAL:

NETUI: How to change an Infragistics UltraButton image in ABL?

GOAL:

How can I change the image of an Infragistics UltraButton at runtime?

GOAL:

What is the correct syntax to load an image from a file to an Infragistics UltraButton ?

FACT(s) (Environment):

Windows
OpenEdge 10.2x

FIX:

The following line of code, embedded in an UltraButton click event handler, changes the current image of the button, if any, to the image in the specified file:

METHOD PRIVATE VOID ultraButton1_Click( INPUT sender AS System.Object, INPUT e AS System.EventArgs ):
THIS-OBJECT:ultraButton1:Appearance:Image = System.Drawing.Image:FromFile("C:\OpenEdge\WRK102B\yshanshi.jpg").
END METHOD.