change shape fill style


Author
Message
Daniela Rybarova
Daniela Rybarova
Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)
Group: Forum Members
Posts: 16, Visits: 1
It works, thank you very much.

Originally, I used: shape.Style.FillStyle = new NColorFillStyle(fillColor); nDrawingView.SmartRefresh();
and it had the problem described above.

Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi,

The problem is that you do not refresh the drawing view after you change the fill style of the shape. You should call the SmartRefreshAllViews method of the drawing document in order to do so:

NStyle.SetFillStyle(shape, new NColorFillStyle(KnownArgbColorValue.Red));

document.SmartRefreshAllViews();



Best Regards,
Nevron Support Team


Daniela Rybarova
Daniela Rybarova
Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)
Group: Forum Members
Posts: 16, Visits: 1
I want change shape.Style.FillStyle after click on a toolbar in my application.
I will change shape.Style.FillStyle in some function and:

* when the window with the nDrawingView is maximized, the shape.Style.FillStyle is changed correctly

* but when the window is not maximized the shape.Style.FillStyle is changed only after the mouse cursor is in the window with nDrawingView.

Where is the problem?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search