2005-05-17, 22:58
cool... i'll check it out later.
Quote: put up an updated guicontrol.cpp on sourceforge, which implements discussed behaviour (hidding text inbetween items if one of them is not returning anything)..
(nuka1195 @ may 19 2005,07:38 Wrote:i can not get any $localize(12345) strings to work with the updated guicontrol.cpp.i'll see what happened with the localize strings.
did the format change?
also, might i suggest a new format.
this is extreme, but say you wanted a line like this.
<label>playing track $info(musicplayer.track) on $info(musicplayer.album) cd</label>
how does your code know what text goes with what $info(). could another seperator be added?
<label>{playing track $info(musicplayer.track) on }{$info(musicplayer.album) cd}</label>
(kraqh3d @ may 19 2005,13:35 Wrote:i already committed it. what bug? it seemed to work fine for me with simple things like:
"$info(musicplayer.artist) - $info(musicplayer.album)" where i intentionally had the artist missing from the tage.
i donno about these conditionals. its getting way to complicated now.
(kraqh3d @ may 19 2005,13:44 Wrote:what do you mean localize didnt? something like this:no $localize didn't /doesn't work at all, it will never write the localized string... somehow i never tested that
"$info(musicplayer.artist)$localize(12345)$info(musicplayer.album)" would still show the localized string?