Re: FXListbox and ampersand

Jeroen van der Zijp <[email protected]>
Newsgroups gmane.comp.lib.fox-toolkit.user
Organization FOX Toolkit
Message-ID <[email protected]>
On Sat, 11 Mar 2023 19:26:48 -0500
<[email protected]> wrote:

> In my FXListbox I have an entry "B & W". If I append "B & W", it looks right
> in the popup list but when selected is shows as "B_W" in the textfield. If I
> append "B && W" it shows correctly in the textfield when selected ("B & W")
> but shows "B && W" in the popup list.
> 
>  
> 
> I'm using fox v1.7.50
> 
>  
> 
> Kind regards,

In newer versions the hotkey will be removed if the string is changed; the
contructor of FXLabel parses out caption, hotkey, help string, and tip string.

A new convenience function (for FXLabel) setTextAndHotKey() which sets both
hotkey and new caption [hotkey being mapped may change].


    -- JVZ
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.