Is there a simple way to draw rotated text?
simple, no. But possible to write text in an image object (have to be defined first), then when image done, draw it with the desired angle
e.g.
// declare globals variable
var image;
....
// in a function called once on script launching, create the image ...
image = gdi.CreateImage(70, 25);
gb = image.GetGraphics();
var font = gdi.Font("tahoma", 10, 0);
gb.SetTextRenderingHint(5);
gb.DrawString("REPEAT", font, 0xff000000, 0, 0, 70, 25, cc_stringformat); // cc_stringformat is to be defined (alignement... check WSH doc of DrawString api)
image.ReleaseGraphics(gb);
....
// then in on_paint function, you'll be able to draw this image but with a rotate of 90° ....
var angle = 90;
gb.DrawImage(image, 100, 100, 70, 25, 0, 0, 70, 25, angle, 255);
....
Also! Is there a way to access the current playback mode?
read the doc (interfaces.txt), extract:
// Known playback orders:
// Default: 0,
// RepeatPlaylist: 1,
// RepeatTrack: 2,
// Random: 3,
// ShuffleTracks: 4,
// ShuffleAlbums: 5,
// ShuffleFolders: 6
(read, write) uint PlaybackOrder;
so just use in your script fb.PlaybackOrder
One last question, is there a way to get rid of the ever so faint light gray border on between my panels that show up even if the 'border style' property is set to none on Win7?
the only way to remove visible splitters (their colors math the windows visual style colors (button face)) is to use Panel Stack Splitter component for ColumnsUI. in DUI, you can't get rid off these splitters.
http://www.hydrogenaudio.org/forums/index....showtopic=62114
HTH