ne_me_sis
Nov 10 2003, 07:55
Here is a suggestion for playlist column mode in the core:
* core should return a list of columns according to the format string
* UI will add these columns into the listview
* TextOutColorsTabbed should take column widths and order as a parameters
(colmns order and widths are taken from the listview)
* without these parameters will make TextOutColorsTabbed same output as today
* there can be optionally a function returning default column widths for the format string and window size
I hope it is enough to implement often requested 'column mode'.
Messer
Nov 10 2003, 08:07
Why do you need core support for that? All those features really seem plugin specific and I'd rather implement them in UI plugin...
ne_me_sis
Nov 11 2003, 00:48
I don't think it is 100% UI plugin specific because TextOut.... functions are already in the 'core'. It would be implemented in utf8api.dll because it will save a lot of work.
kode54
Nov 11 2003, 01:06
Or you could put a little more work into your list view renderer. Tip: Rendering to an off-screen bitmap is faster.
ne_me_sis
Nov 11 2003, 04:29
I know about it, anyway this functionality will preserve compatibility with format strings (which would be good).
There are many possible 'columns' which are based on tags and technical infos, so UI makers would still update component to keep in touch with newly supported tags, infos etc. Formating strings make it more easier.
I beleive it is not so difficult to implement it inside utf8api.dll because TextOut... functions already work with 'columns'.
Messer
Nov 11 2003, 08:44
Yeah, maybe.
But I really wouldn't count on that. The worst (IMO) part is already done - you have quite powerful methods to format string and function to render it on any device context. The rest is your job and don't expect someone will just do it for you
ne_me_sis
Nov 12 2003, 01:44
-------
ne_me_sis
Nov 12 2003, 01:44
is there some helper to parse format string (and get columns)?
foosion
Nov 12 2003, 02:09
QUOTE(ne_me_sis @ Nov 12 2003, 08:44 AM)
is there some helper to parse format string (and get columns)?
No. Also, if you have a fixed number of columns (I believe you have), you should IMHO not use tab chars to split the format string into parts after titleformatting as that may yield a varying number of tab chars.
ne_me_sis
Nov 12 2003, 04:31
QUOTE(foosion @ Nov 12 2003, 12:09 AM)
QUOTE(ne_me_sis @ Nov 12 2003, 08:44 AM)
is there some helper to parse format string (and get columns)?
No. Also, if you have a fixed number of columns (I believe you have), you should IMHO not use tab chars to split the format string into parts after titleformatting as that may yield a varying number of tab chars.
that's why I'd like to have support in utf8api.dll (but nobody seems to do it)
kode54
Nov 12 2003, 21:04
QUOTE(ne_me_sis @ Nov 12 2003, 03:31 AM)
QUOTE(foosion @ Nov 12 2003, 12:09 AM)
QUOTE(ne_me_sis @ Nov 12 2003, 08:44 AM)
is there some helper to parse format string (and get columns)?
No. Also, if you have a fixed number of columns (I believe you have), you should IMHO not use tab chars to split the format string into parts after titleformatting as that may yield a varying number of tab chars.
that's why I'd like to have support in utf8api.dll (but nobody seems to do it)
The source is available, have at it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.