selection rectangle

hi,

would you give me an advice to solve the following problem:
i cannot find a method to erase the previous state of selection rectangle, when it is dynamically resized.
i have checked it also on oc sample application (attached image), but it is the same.
i'm using oc version 5.2.

best regards,
adrian

Sharjith Naramparambath's picture

Windows 7 GDI doesn't blend well with OpenGL. All my OpenGL applications that have rubberbanding using the GDI rectangle also face the same issue after migrating to Windows 7.

Hesham Nasif's picture

All you need it to use this.Refresh() before calling any function to draw rectangle even using GDI