Rank: Member
Groups: Approved
Joined: 4/2/2020(UTC) Posts: 11 Thanks: 4 times Was thanked: 1 time(s) in 1 post(s)
|
Hi, is there an example of the proper way to call sp_config.PenColor to modify the primary stroke color? It's not a function and if I try to set it to anything I get an invalid field assignment error
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,349 Location: Tampa, FL Thanks: 28 times Was thanked: 416 time(s) in 354 post(s)
|
Since it's GDI, it uses a weird COLORREF struct. This works for me: (I couldn't seem to get the constructor to work)Code:var newColor = new COLORREF();
newColor.R = 56;
newColor.G = 169;
newColor.B = 255;
sp_config.PenColor = newColor;
sp_config.Save();
sp.Reload();
|
1 user thanked Rob for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close