Hi Alan, I'm replying both your emails here.
Alan Martin wrote (on 10.08.2006 07:31): > a better tooltip, to distinguish two similar notepad windows for example: > Local _tooltip = exename ++ ?": " ++ win.caption(_handle) You're right! I was in such a hurry to get it done, that I didn't think about user-friendliness :) > and for shaping the new bar: > Local _winwidth = win.width(_handle) > Local _winheight = win.height(_handle) > Local _barwidth = 200 > Local _barheight = _winheight x 200 / _winwidth > > and at the bottom of the script: > cl.setwidth(_dynbarname, 0, _barwidth) > cl.setheight(_dynbarname, 0, _barheight) I don't get this one. Actually Irfanview is keeping the AR during resampling, or do you mean something else? > That way, you don't have a transparent area at the bottom of each bar, > so it has the same aspect ratio as the window, > so it will be easier to place bar3 10 pixels below the bottom of bar2. > win.move(minbarlist[3], _leftcolumn, win.bottom(minbarlist[2] + 10) > > Before that move, if the first column is full, increase _leftcolumn: > If((win.bottom(minbarlist[3]) + 20 + win.height(minbarlist[4])) > yscreen)do > static _leftcolumn = _leftcolumn + 220 > static _nexttop = 40 > endif I've totally overseen this, I'll definitely add it, great thinking! > It will take another large section of the script to keep track > of how many minbars still exist, and position them as in your images. That's right. But before I work on this script more, I want to double-check whether the thing with the skins is a bug or not. >> overlaying icons is not done yet > > I can think of two very differnt ways. > > Either: maybe you can automate pasting the icon onto the bitmap > by sending commands to an image editor [maybe IrfanView?] > before it is used as the bar's background. I don't think IV supports overlaying on the command line, it may be over-complicated anyhow. > Or: Just use your resized capture as the background and make the icon > as a button. I'll go this way. > Fill the rest of the bar's area with blank buttons (no text or icon). > All buttons have the same commands so you can click the bar anywhere. > Button 1: is 64x64 with a 32x32 icon centred on it. That makes 16 pixel > space above and to its left (which saves making so many blank buttons). > Button 2: width is 134 [200 -64 -2] by 64 high > Format NewBarRow > Button 3: width is 200, height is _barheight -64 I think I'll make all the buttons super-flat (no hover) and change the left-click action to a double-click with something like Alex Peters' IfDoubleClick-technique, so it feels like a real minimized desktop icon... just like the good old Win 3.1 :) Oh god, what am I doing? > Note that Help says: > PowerPro only reads true 48x48 and 64x64 icons from .ico files; > from other files it uses stretched versions of the 32x32 icon. I think I'll stick to 32x32, with 64x64 it might look very ugly for many windows, since many apps don't have hires icons. > When a few windows look almost identical (3 notepads) I think > the Window's title is more useful than the exename. > So, consider adding about 20 pixels height to the bar > for an extra 200x20 button with a plain color background > at bottom of the bar to show the window's title. Good one! Will do it. > After coffee I might add a few more ideas. Btw, we have typical german weather over here today. The moment you think "well it's the perfect day for an ice-tea: warm and sunny!" it becomes the perfect day for a hot chocolate :/ This goes on and on... Alan Martin wrote (on 10.08.2006 08:15): > The "width" setting for a button is actually 2 less than the real > width of the button painted on screen. The "height" setting is true. I was wondering about the extra pixels myself, -2 works like a charm! > Button 1: "width" 62 by height 64 with a 32x32 icon centred on it. > Button 2: "width" 132 [200 -64 -2 -2] by 64 high > Format NewBarRow > Button 3: "width" is 198, height is _barheight -64 Good one! Will do it. Thanks for the suggestions and ready-to-paste code :) Be my guest and drink more coffee ;) Inspired by your ideas, I'll add a tiny part to make the captured window temporarily always-on-top, so that it doesn't get overlapped by other apps during capturing. Peace, Cüneyt Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
