Hi Cüneyt

> **: Finetuning like positioning the bars on screen, overlaying icons
> is not done yet, so don't use it! Any ideas, improvements welcome.

A few ideas:

Add to your Local declarations at the top, just after setting _handle

a better tooltip, to distinguish two similar notepad windows for example:
  Local _tooltip = exename ++ ?":  " ++ win.caption(_handle)

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)
  
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

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.

Maybe name their command lists: minbar1, minbar2, etc.
You will need a bunch of statics, such as _NextBarNum
which contains the next unused barname (increment when you use it).
There will be discontinuities in the numbering of the surviving bars
because I assume you destroy the bars when they are un-minimised.
Don't renumber the barnames, only remove them from the vector,
so your vector MinBarsList may contain: minbar2 minbar3 minbar15 minbar28

Using a vector for the list of minbars may save you from writing
so many For...Endfor loops.

---------------------------------------------------

> 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.

Or: Just use your resized capture as the background and make the icon
as a button.
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

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 notice you Name the one large button from the _exename
and you set a fontname in properties, but I can't see
its name in the images you linked to.
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.

Or maybe just adding the title text to the tooltip is enough.

-------------------------------------------

After coffee I might add a few more ideas.



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/
 


Reply via email to