mockey_a wrote (on 14.08.2006 22:27):
> I tried to whip up something similar the last days because I kinda
> liked the idea. My concept is a bit different, though, because I
> don't align the graphics but place them in a corner of the window
> that's getting minimized.
This sounds really interesting. If I understood you correctly, you kind
of miniaturize and roll up windows to a corner. Any screenshots?
> Also I was to lazy tor write an alignment routine...;-)
Well, take mine ;)
> I was rather experimenting with a drop-shadow and a mouseover-
> effect...
What about using transparency for mouseover? 150 for normal and 0 for
hovered images? Looks very nice here. You have to activate "Hover clicks
left/right/.." and call this one from your button:
@HoverTrans
Local _mybar = ifelse(arg(1), arg(1), win.handle("under"))
Local _event
_wl = win.left(_mybar)
_wr = win.right(_mybar)
_wt = win.top(_mybar)
_wb = win.bottom(_mybar)
;win.debug(_wl, xmouse, _wr, _wt, ymouse, _wb)
If(_wl < xmouse < _wr && _wt < ymouse < _wb)Do
If(event.exists(_e))
event.destroy(_e)
_e = event.createms(25, 0, ;;+
?#win.trans("#++_mybar++?#", 150)#, ;;+
?#xmouse < _wl or _wr < xmouse or ymouse < _wt or _wb < ymouse#, 1)
EndIf
win.trans(_mybar, 0)
quit
I should add this one to my script, too.
> Anyway, I came across the same icon-problem. My solution was to
> calculate the size of the mini-bitmap (window-size fitting into mini-
> window-size, keeping its ratio) and then calculate the icon-
> placement accordingly and use this in the skin file (iconleft,
> icontop). So I can place the icon at the lower right corner (only
> reason for me to use a skin-file actually).
What I'd ideally have is to preserve the original aspect ratio, and fill
the rest with transparent but still clickable area. It looked
deceptively easy until I've realized I can't have a skin and * as
background at the same time, and that magic pink doesn't get transparent
if you use it with allbmp, facebmp, etc. Cropping the surplus to make
everything fit into 4:3 ratio is the best way I found so far.
> win.tofile(_handle, _outthumb, 200, 150)
> in the latest Ppro you don't need any external program anymore. :-)
Yes, I've tried it, it works and looks really good.
> There's no need for:
> _tooltipsep = "^" in tooltips
> You can simply separate lines with "\n". Makes it more portable.
The only problem is my escapechar is not \. Maybe Bruce could introduce
a new function to return special chars and values under "Advanced Setup".
On second thought, I could use an arbitrary char/string and split the
tooltip into multiple lines using a regexp.
> For dragging the mini windows, you could also use
> Format Drag
> instead of mousetrap. The MMV-stuff is pretty CPU-intensive.
Well, I didn't notice any last on my PC using MMV but Format Drag is
much simpler and better anyway. After years of PP (and Stiletto) usage I
still learn about features that are long there and I don't know of...
Amazing program.
Thanks for the feedback. I'll update my script taking your suggestions
into account and upload a new version soon.
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/