GrandOrgue / GoOdf

A tool for creating/editing organ definition files for GrandOrgue
GNU General Public License v3.0
11 stars 1 forks source link

unable to set a DispLabelText=<empty> for GUI Elements #58

Closed MStraeten closed 11 months ago

MStraeten commented 11 months ago

if the DispLabelText is empty in an imported odf its removed on writing, so if the Gui elemt ist displayed via an image, the name is written overlaying the image. There's no way to define a DispLabelText= statement.

larspalo commented 11 months ago

@MStraeten Right, because it's never supposed to be set like that in the first place. The correct way to not display text for an element is to set the TextBreakWidth to zero (TextBreakWidth=0). The DispLabelText should only be used to replace the string normally displayed from the Name property (not to hide it), and to really be valid it should have a value and not be empty. It's actually a bug (for instance in OdfEdit) and it will be fixed https://github.com/GrandOrgue/OdfEdit/issues/29.

From the GrandOrgue help:

TextBreakWidth
(integer 0 - text rectangle width, default: slightly smaller than TextWidth) If 0, no text is displayed. Otherwise the value specifies the maximum line width used for text breaking. 
MStraeten commented 11 months ago

thanks for the hint