Support Board
Date/Time: Thu, 06 Feb 2025 02:56:39 +0000
Post From: Horizontal Line: Name & Value Display
[2020-04-08 06:54:25] |
User907968 - Posts: 825 |
Set the name and value properties in a single operation, if you do them separately you are simply overwriting the previous value. PreviousCloseLine.LineLabel = LL_DISPLAY_NAME | LL_NAME_ALIGN_CENTER | LL_NAME_ALIGN_LEFT_EDGE | LL_DISPLAY_VALUE | LL_VALUE_ALIGN_CENTER | LL_VALUE_ALIGN_FAR_RIGHT; Alternatively you could use the |= (or equals) compound assignment operator when assigning the second set of properties PreviousCloseLine.LineLabel = LL_DISPLAY_NAME | LL_NAME_ALIGN_CENTER | LL_NAME_ALIGN_LEFT_EDGE; PreviousCloseLine.LineLabel |= LL_DISPLAY_VALUE | LL_VALUE_ALIGN_CENTER | LL_VALUE_ALIGN_FAR_RIGHT; |