Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Columns UI (Read 4589937 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Columns UI

Reply #2800
Quote
Quote
Is there a way I can put the track info panel on top of menu and toolbar?
[a href="index.php?act=findpost&pid=377113"][{POST_SNAPBACK}][/a]

Not if the menu is still a toolbar

Ah, didn't see I can put all into the layout. Thank you all!

Columns UI

Reply #2801
This is probably a dumb question, but is it possible to get rid of the active-item frame?

If so, how?

If not... could it be? :p
~

Columns UI

Reply #2802
Another thing is how if the buttons are images, any text or progress-type bars are not properly scaled/centered in the toolbar.
Bostitch vs. Swingline; Choose your stapler wisely.

Columns UI

Reply #2803
Quote
The main issue with this right now for me is the fact that whenever you change something in the layout, you have to resize everything.[a href="index.php?act=findpost&pid=376450"][{POST_SNAPBACK}][/a]
If you add a new panel, it has to start with some size. Also note if you make changes to the layout (i.e. resize stuff) through the main window whilst the configuration window is open, the previous layout in preferences will be applied when you click apply/close the preferences.

Quote
And the fact that you have to right click > move up/down several times in a row some times, and that you can't drag something and move it into another splitter. This would be great but I admit maybe not worth the time coding it.. I'll let you judge that.[a href="index.php?act=findpost&pid=376450"][{POST_SNAPBACK}][/a]

I hope to add dragging them around in preferences later on  Its only "pre-alpha" so not everything is there.

Quote
Having tabs acting like splitters in the Layout dialog being the better solution I think.[a href="index.php?act=findpost&pid=376450"][{POST_SNAPBACK}][/a]
It can do that if it implements the splitter API

Quote
hmm, another thing - adding changes to the layout takes a really, really long time right now. Are there any planned speed improvements in this regard?

Someone in another thread also suggested switching to a Office 2003-style layout, which would be interesting. With every change taking about 15 seconds just to appear, something a little more instantaneous would be nice.
[a href="index.php?act=findpost&pid=376479"][{POST_SNAPBACK}][/a]
15 seconds  That's quite excessive  Well the good news is its all been rewritten in the next version, and the backend to the preferences page does not suck quite as much. So I hope its faster  It maybe repainting whilst populating the tree is slowing it down, so I'll prevent that too.

Dragging panels around through UI: its complicated. I think a good accessible preferences page is allows a bit more in flexibility (e.g. hiding captions) but sacrifices in ease of use.

Quote
To add to this, is there a way to lock a panel in width and height or perhaps set a maximum and minimum for both so that maximizing foobar won't change the panels to undesired sizes?

I like the playlist to take up as much space, but for other panels, I'd like them to stay within a certain size and not expand so much.
[a href="index.php?act=findpost&pid=376530"][{POST_SNAPBACK}][/a]
Beyond locking it: no.

Quote
.To musicmusic.

My suggestion is import and export layout from/to any file, as I can import/export now columns and titles from/to fcs file.

FCS  -columns view,
FCB - buttons view and also
FCL - layout view.

Story layout in foobar.cfg is not good idea.
[a href="index.php?act=findpost&pid=376632"][{POST_SNAPBACK}][/a]
The problem with exporting the layout to a file currently, is that panel configuration data could contain data pertaining to your computer (e.g. file paths in buttons toolbar). So it needs changes in panel API to fix that. I'll make them for next version (better now than later..) so this can maybe be implemented later.

Quote
I have a minor problem with the newest Columns UI (0.1.3 pre-alpha 17v6).

When I try change the font of column title, the change doesn't apply.
I have gone through the preferences dialog, but can't find anything
that would cause this behaviour. I have also tried to restart foobar.
Can anyone confirm this?
[a href="index.php?act=findpost&pid=377128"][{POST_SNAPBACK}][/a]
I would say: it maybe your visual style. For certain common controls if a visual style specifies a font for it then common control will use it instead of whatever I set. So maybe your visual style is specifying a font for the header control. In that case you can either hack your visual style, complain to whoever made it, or find another one (default XP ones are fine).

Quote
Hi,

I'm having trouble refreshing directory trees in the album list panel. it just doesn't work. Is this a bug or am I the only person with this issue? Please help, this is the only thing to be improved that I can think of. Thanks!
[a href="index.php?act=findpost&pid=377159"][{POST_SNAPBACK}][/a]
It refreshes from the media library, not from your hard drive. There is a rescan media library menu item in the library menu.
.

 

Columns UI

Reply #2804
The position of my .png buttons keeps moving vertically. One (reproducible) thing that causes this is changing the desktop background.

normal position:

after changing background:


XP pro sp2, no 3rd party visual styles (using stock "windows classic" theme)
Columns UI 0.1.3 pre-alpha 17v6

Columns UI

Reply #2805
Quote
The position of my .png buttons keeps moving vertically. One (reproducible) thing that causes this is changing the desktop background.

Make your PNGs higher for each button -- that way, they won't be able to move around.

Columns UI

Reply #2806
Quote
Make your PNGs higher for each button -- that way, they won't be able to move around.

Higher images will just make the splitter area/bar become higher, and they will still move around.

Columns UI

Reply #2807
Do your buttons use transparency?

Columns UI

Reply #2808
Yes, but only on the left and right sides. Not the top or bottom.
The pngs are 16 pixels high (x 32w). The splitter bar is being rendered with 5 pixels of vertical space at the top and at the bottom, for a total of 26 pixels in height. The only other things in the horizontal splitter are another set of buttons (same sized), and a seekbar.

Columns UI

Reply #2809
Try padding the height of your buttons to 20 or 32 px with transparency.

Columns UI

Reply #2810
Hi, I'm getting this error:

Failed to load DLL: foo_ui_columns.dll
Reason: This component is missing a required dependency, or was made for different version of foobar2000.


This is Foobar 0.9, with the latest columns.dll (downloaded today). I'm guessing that I need some dlls etc?

thanks.

Columns UI

Reply #2811
Quote
Try padding the height of your buttons to 20 or 32 px with transparency.

It doesn't matter if the images are padded with transparency or not. Increasing their height in any way will in turn increase the overall height of the splitter bar (which I don't want), and make no difference.

Columns UI

Reply #2812
I'm sorry, I've been searching for hours and I might need glasses or something, but I can't see why it keeps on failing :

I want to use custom buttons. I use foobar 0.9, columns_ui 0.1.3 pre-alpha 17v6.

At first I thought it was my VS' fault, but even when I use default windows themes it does the following : I launch foobar, I load the .fcb file, il loads the buttons (i can actually see them). I close foobar, I start it again, the buttons are gone!

Is it a UXtheme problem? But I saw some of you using Visual Styles too! Well, what's wrong with me? Any clue?

Thanks!

Columns UI

Reply #2813
Quote
I'm sorry, I've been searching for hours and I might need glasses or something, but I can't see why it keeps on failing :

I want to use custom buttons. I use foobar 0.9, columns_ui 0.1.3 pre-alpha 17v6.

At first I thought it was my VS' fault, but even when I use default windows themes it does the following : I launch foobar, I load the .fcb file, il loads the buttons (i can actually see them). I close foobar, I start it again, the buttons are gone!

Is it a UXtheme problem? But I saw some of you using Visual Styles too! Well, what's wrong with me? Any clue?

Thanks!
[a href="index.php?act=findpost&pid=378572"][{POST_SNAPBACK}][/a]
Can you point me to the fcb file you are trying to import? Also when you next start foobar, all the buttons are gone, right? Thanks.
.

Columns UI

Reply #2814
Quote
Can you point me to the fcb file you are trying to import? Also when you next start foobar, all the buttons are gone, right? Thanks.
[{POST_SNAPBACK}][/a]

First of all, thanks for trying to help me, it's very nice of you.

Second:  i've tried various .fcb in fact, a few from [a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=35270]this topic[/url], and even those linked here.

A few precisions:
- win xp SP2
- ux theme modified dll (last version i guess)
- test with various themes (clear looks, milk 2.0, default playschool win xp, default old style win).

And yes : the buttons appear, and when I close and start again my foobar they're gone, leaving me with an empty area, unless I specify "display image+text"

Again : THanx

Columns UI

Reply #2815
So the buttons still show up correctly in the customisation dialog? When you say you selected "display image+text", what are you changing it from? [edit] Also check for any errors in the console after startup.

Can you import an fcb (that doesnt work), close foobar, and upload your foobar2000.cfg (its in %appdata%\foobar2000 or foobar2000 install directory if you disabled per-user settings)

Thanks
.

Columns UI

Reply #2816
OK, it is official: I am a dumbass

I did not even have the idea of looking at the console, even though I use it very often with other plugins, it said :

Code: [Select]
Failed to load the libpng library. Check that libpng13.dll and zlib1.dll are present in your foobar2000 directory. See "libraries" in preferenes for further details.


And I was like : wtf?? it is here! But I thought it should be in /components, and in fact it should be in /

Sorry for that guys. Awesome job musicmusic

(I just realized that "preferences" is mispelled in the console output I quoted, nothing fundamental though )

Columns UI

Reply #2817
Ok thanks for isolating that

Actually after thinking about it I had a suspicion it was because you put them in the components folder. But I'm not too sure why it works initially  I'll add it to the FAQ since I've seen it reported in another thread too.

Also thanks for noticing that typo
.

Columns UI

Reply #2818
Quote
Hi, I'm getting this error:

Failed to load DLL: foo_ui_columns.dll
Reason: This component is missing a required dependency, or was made for different version of foobar2000.


This is Foobar 0.9, with the latest columns.dll (downloaded today). I'm guessing that I need some dlls etc?

thanks.
[{POST_SNAPBACK}][/a]

That doesn't make much sense. Are you sure you haven't installed a 0.8.3 version of Columns UI in 0.9? The current version is at [a href="http://music.morbo.org]http://music.morbo.org[/url]
.

Columns UI

Reply #2819
Hi. What exactly does the $calculate_blend_target() function do? I can see it in your default configuration of Columns UI, but there is no description for it... or maybe it's that simple I can't see it

Columns UI

Reply #2820
Quote
Hi. What exactly does the $calculate_blend_target() function do? I can see it in your default configuration of Columns UI, but there is no description for it... or maybe it's that simple I can't see it
[a href="index.php?act=findpost&pid=378742"][{POST_SNAPBACK}][/a]
It takes the sum of the red, green and blue components of the colour, and outputs "0" if it is >= 128x3, "ffffff" otherwise. I'm not sure how useful it is outside of the default script
.

Columns UI

Reply #2821
Thanks for your reply  I have one more little request...

Could you please paste here your source code for $OffsetColor() function, or any hint how do you achieve this effect (for example r=(r2-r1)*percent+r1 --or something...).

I'm making some application that uses something similar to $OffsetColor(), and I can't get it to work properly...

Columns UI

Reply #2822
It just literally offsets the colour.
Code: [Select]
    else if (!stricmp_utf8_ex(p_name,p_name_length,"offset_colour",infinite))
    {
 if (p_params->get_param_count() == 3)
 {
     const char * p_val, * p_val2;
     unsigned p_val_length, p_val2_length;
     p_params->get_param(0,p_val,p_val_length);
     int colour = strtoul_n(p_val, p_val_length);
     p_params->get_param(1,p_val2,p_val2_length);
     int target = strtoul_n(p_val2, p_val2_length);
     int amount = p_params->get_param_uint(2);

     int rdiff = (target & 0xff) - (colour & 0xff);
     int gdiff = ((target & 0xff00)>>8) - ((colour & 0xff00)>>8);
     int bdiff = ((target & 0xff0000)>>16) - ((colour & 0xff0000)>>16);

     int totaldiff = abs(rdiff + gdiff + bdiff);

     int newr = (colour & 0xff) + (totaldiff ? (rdiff * amount*3 / totaldiff) : 0);
     if (newr < 0) newr = 0;
     if (newr > 255) newr = 255;

     int newg = ((colour & 0xff00)>>8) + (totaldiff ? (gdiff * amount*3 / totaldiff) : 0);
     if (newg < 0) newg = 0;
     if (newg > 255) newg = 255;

     int newb = ((colour & 0xff0000)>>16) + (totaldiff ? (bdiff * amount*3 / totaldiff) : 0);
     if (newb < 0) newb = 0;
     if (newb > 255) newb = 255;

     int newrgb = RGB(newr,newg,newb);

     char temp[33];
     memset(temp, 0, 33);

     ultoa(newrgb, temp, 16);
     p_out->write(titleformat_inputtypes::unknown, temp, 33);
     p_found_flag = true;
     return true;
 }
    }

where strtoul_n is my own function but I figure you don't need it
.

Columns UI

Reply #2823
musicmusic, would it be possible to have a tooltip option for the playlist tabs? Something customisable would be cool. It's just that sometimes I'd like to know how many tracks / how long the tracks are in the playlist quickly without actually selecting the playlist.

Thanks for all your hard work again! Really looking forward to the new presets system

Columns UI

Reply #2824
Thank you very, very much, musicmusic  You've just saved my life (and a lot of time ) But I've got one more little request (I promise it is the last time... well, for next 10 minutes at least ) - Which system colors do you use as your default values for "Text", "Selected text", "Background", "Selected background", "Selected background (no focus)". Certainly you've got it declared somewhere in your code, so one small Ctrl-C -> Ctrl-V would cause big smile on my face  I'm making some sort of CustomListBox, and I'm using the same coloring scheme as you in your default configuration for Playlist View (I hope you don't have anything against it), because it looks great on every XP style (and on "98" style, too).

And I've got one small problem. When I use System Colors in my app, and change them for example in Desktop -> Display -> Properties -> ..., they won't change (in my app) until I restart my application. Should I process any message or something to notice that XP Theme has changed?...

BTW, I'm really looking forward for new beta of Columns UI. I don't know if it was good idea to write the changelog before releasing plugin - now I check your site every 5 minutes to see if there is new version available