01.10.2025, 05:09 PM
(01.10.2025, 02:29 PM)Borje Hagsten Wrote: To always show & in static (label) control, add %SS_NOPREFIX style to it.
MS explains: "Prevents interpretation of any ampersand (&) characters in the control's text as accelerator prefix characters. These are displayed with the ampersand removed and the next character in the string underlined. This static control style may be included with any of the defined static controls.
An application can combine SS_NOPREFIX with other styles by using the bitwise OR (|) operator. This can be useful when filenames or other strings that may contain an ampersand (&) must be displayed in a static control in a dialog box."
N.B. Applies to Labels but not to Buttons. (for a button, you have to use "&&")
--
New PowerBASIC User Community Forum:
https://pbusers.org/forum
New PowerBASIC User Community Forum:
https://pbusers.org/forum