Ticket #159 (closed: fixed)
Options- group color not changing in Ecosim
Reported by: | carieh | Owned by: | administrator |
---|---|---|---|
Priority: | normal | Milestone: | Ecopath 6: build 6.0.7 |
Component: | Overall GUI | Version: | |
Severity: | minor | Keywords: | |
Cc: |
Description
So assuming I am using this correctly. . . I loaded an existing model (lab 1 Aug 6 created) and I went to the tools->options->model-> color and then changed all of the group colors to new ones. Then I went to Ecosim to run the model, and the colors remained at the default.
Please send this back if this is not what I am meant to test.
Change History
comment:3 Changed 16 years ago by user8
Hi Jeroen,
Two causes:
- In cEcopathGroupInput, when UI do
grp.PoolColorArgb? = m_PoolColor(i).ForeColor?
The following property actually swaps R and B value..
Public Property PoolColorArgb?() As System.Drawing.Color
Get
Dim iColor As Integer = Me.PoolColor?
Return Drawing.Color.FromArgb?(255, (iColor >> 16) And &HFF, (iColor >> 8) And &HFF, iColor And &HFF)
End Get
Set(ByVal? value As System.Drawing.Color)
Me.PoolColor? = (value.R << 16) + (value.G << 8) + value.B
End Set
End Property
- After that, Could you check if that color has been saved to DB? If not, The biomass run form won't get the latest color from DB, when it fails, it will call
default color.
-- F
has duplicate #278