Fix XCLabel Background Color issue on Volume Panel by Using XCEdit Object and Set ReadOnly Flag ...
This commit is contained in:
@@ -166,6 +166,16 @@ class XCEdit : public XCObject
|
||||
ObjectSetString(mChartID, mName, OBJPROP_FONT, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set ReadOnly State of Object ...
|
||||
*
|
||||
* @param value: boolean value
|
||||
*/
|
||||
void ReadOnly(bool value)
|
||||
{
|
||||
ObjectSetInteger(mChartID, mName, OBJPROP_READONLY, value);
|
||||
}
|
||||
|
||||
//
|
||||
// Protected ...
|
||||
protected:
|
||||
|
||||
@@ -234,7 +234,7 @@ bool eaUseForceMomentumProtecting = eaUseForceMomentumsInProtection;
|
||||
XCPanel eaVolumePanel;
|
||||
XCButton eaDynamicVolumeBtn;
|
||||
XCEdit eaStaticVolumeTb;
|
||||
XCLabel eaStaticVolumeLbl;
|
||||
XCEdit eaStaticVolumeLbl;
|
||||
XCButton eaSetStaticVolumeBtn;
|
||||
XCButton eaResetStaticVolumeBtn;
|
||||
double eaAppliedStaticVolume = eaVolume;
|
||||
@@ -2112,15 +2112,19 @@ bool InitVolumeGUI()
|
||||
result = eaStaticVolumeLbl.Create(
|
||||
eaStaticVolumeLblName,
|
||||
10,
|
||||
275 //
|
||||
275,
|
||||
150,
|
||||
25 //
|
||||
);
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
eaStaticVolumeLbl.FontSize(10);
|
||||
eaStaticVolumeLbl.ReadOnly(true);
|
||||
eaStaticVolumeLbl.Color(clrWhite);
|
||||
eaStaticVolumeLbl.Text("Static Volume: ");
|
||||
eaStaticVolumeLbl.BGColor(clrMediumSlateBlue);
|
||||
eaVolumePanel.Add(eaStaticVolumeLblName);
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user