diff --git a/Classes/XCObjects/x-saherelm.x-edit.class.mq5 b/Classes/XCObjects/x-saherelm.x-edit.class.mq5 index a60e4fba..dab9ffea 100644 --- a/Classes/XCObjects/x-saherelm.x-edit.class.mq5 +++ b/Classes/XCObjects/x-saherelm.x-edit.class.mq5 @@ -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: diff --git a/Experts/x-saherelm.x121.ea.mq5 b/Experts/x-saherelm.x121.ea.mq5 index 0e995c2e..6cecfedb 100644 --- a/Experts/x-saherelm.x121.ea.mq5 +++ b/Experts/x-saherelm.x121.ea.mq5 @@ -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); //