xLabel and Icons Thread last updated on 2006-12-17 08:32:35

Posted by member 348804 on 2006-12-15 12:05:55

well, my theme is coming together and I sure am learning alot, although I am still continually confounded :(

I am using xLabel to build a nice launch bar. I would like to use icons instead of png's and simply make the icon a little larger on hover

However when I use an ico file instead of a png, it displays an empty box. Is there anyway to use .ico files instead?

If not I will start the process of converting them...but maybe a custom popup might work here....I will research that a bit.

I dont think quicklaunch mode of xPopup will work as far as I can tell it only supports a single level and not subfolders.

Peter

Posted by member 348804 on 2006-12-15 12:33:07 link

ok started playing a bit with popup so I can try it...in addition to my normal popup menu I have this:

in xLabels.rx:
pl1_buttonOnLeftClick !Popupplaunch

*Popup "plaunch" !new !popup plaunch
*Popup "Test" "!alert 1"
*Popup "Normal Entry" !alert "my quicklaunch entry"
*popup ~new

Nothing ever shows up.

Peter

Posted by member 1949 on 2006-12-15 15:54:33 link

I think popup.rc maybe a better place to store your config
considering popup has nothing to do with xlabel...

And your config is wrong.
Try it like this...

pl1_buttonOnLeftClick !Popupplaunch

*Popup !New !Popupplaunch
*Popup "Normal Entry" !alert "my quicklaunch entry"
*Popup ~New

Posted by member 348804 on 2006-12-15 17:10:11 link

ok, that did the trick, there is no real explanation in the docs that I have (that I could find) describing the new paramaters

However it is becoming apparent to me that popup wont work for what I want because it will only display 16x16 or 32x32 icons, and I need up to 128x128.

So back to xLabel...can it show icons? or only bitmaps?

Peter

Posted by member 1949 on 2006-12-16 00:30:55 link

MyAppEvar "C:\WINDOWS\explorer.exe"
*Label pl1_
pl1_X 5
pl1_Y 5
pl1_Width 128
pl1_Height 128
pl1_Image $MyAppEvar$
pl1_ExtractIconSize 128
pl1_OnLeftClick $MyAppEvar$
pl1_OnMiddleClick !none
pl1_OnRightClick !none
pl1_BalloonToolTip
pl1_ToolTip $MyAppEvar$
pl1_AlphaMap

Posted by member 348804 on 2006-12-16 21:19:49 link

Immortal...excellent...this is what I want..few questions for you on this:

1. I have an .ico file, with 16, 32, 48, 64, 72, 128x128 icons in it. I extract a 128 or a 64 and it is obviously extracting the 16x16 and stretching it (as seen be really jagged edges). Is this a bug, or am I doing something wrong?

2. Is there a ~command to launch to my computer? Similar to !PopupMyComputer, but maybe simply !MyComputer?

3. Is it possible to extract a 2nd image for a hover effect (ie 64x64 for normal and 72x72 for hover)?
Peter

Posted by member 12025 on 2006-12-17 08:32:35 link

2. for using explorer:
explorer /e,$drives$ (with folder sidebar) or explorer $drives$
For a bang, you'll have to make one, using either alias, mzscript, lslua, pyscript, or...

Now, if you want this done from something like a label click or a opup entry, you don't need to make a bang for it.