How to rotate Image widget in Openedge GUI?

Posted by fiservarvind on 13-Nov-2019 12:39

Is there a way to rotate Image widget in Openedge GUI to all 360 degrees?

All Replies

Posted by Matt Gilarde on 13-Nov-2019 13:47

The OpenEdge image widget doesn't support rotation. If you can use .NET in your application, rotation can be done with the RotateFlip method of the Image class in a PictureBox control.

Posted by fiservarvind on 13-Nov-2019 14:12

Is there a way to embed .NET Picturebox control to Openedge classic Window(.w program)? If this is possible then I may use use .Net PictureBox control in place of Progress Image widget.

Posted by Matt Gilarde on 13-Nov-2019 14:23

You can't embed a .NET control in an OpenEdge window. You can embed an OpenEdge window in a .NET form. So you could have a .NET form which has the contents of your .w (minus the image) and a PictureBox for the image.

Posted by tbergman on 13-Nov-2019 14:41

Another way to use .Net to do this would be to load the image into a .Net Image object, rotate it, save it, then open it in the Progress GUI image widget. Not an ideal method but would allow you to continue using the GUI widget.

A quick search yielded this URL. stackoverflow.com/.../c-sharp-image-rotation

The last example is pretty close to what you'll need to do once translated into ABL.

This thread is closed