Posted by member 100676 on 2004-01-12 20:55:15
I need a little help coding in a quicklaunch bar. The graphics are already there for it, just working the code is getting tricky. I've tried using examples from other themes but it's still not coming close as I don't know wich parts to use. I'm trying to do it without scripting if possible.
My other problem is getting my Memory Usage label to show after toggle. I can get it to hide, but when I button again to show, it doesn't. Here's my code for the labels...
LabelMemText "Phys: [meminuse(%)]% [memAvailable]\nSwap [swapinuse(%)]% [swapAvailable]"
LabelMemX 924
LabelMemY 1
LabelMemImage labelBackrev.bmp
LabelMemOnLeftClick !Execute [!LabelMemHide][!LabelDiskShow]
LabelDiskText "D: [diskinuse('d:',MB)]\nF: [diskinuse('f:',MB)]"
LabelDiskX 924
LabelDiskY 1
LabelDiskImage labelBackrev.bmp
LabelDiskStartHidden
LabelDiskOnLeftClick !Execute [!LabelDiskHide][!LabelMemShow]
And the toggle settings...
*Shortcut "toggle" 1 1 btnNorm.bmp .none btnPress.bmp #1OC !Execute [!ShortcutGroupHide 1 2 3 4 5][!jAmpHide][!LabelTextHide][!vwmHide][!grdTrayHide][!ShortcutGroupShow 6]
*Shortcut "toggle" 1 1 btnNorm.bmp .none btnPress.bmp #6HOC !Execute [!ShortcutGroupToggle 6 1 2 4][!jAmpShow][!LabelTextShow][!vwmMove 1 37][!vwmShow][!grdTrayShow]
*Shortcut "cap" 9 1 trayCap.bmp .none .none #6HOC .none
*Shortcut "toggle" 1015 1 btnNorm.bmp .none btnPress.bmp #1OC !Execute [!LabelMemHide]
*Shortcut "toggle" 1015 1 btnNorm.bmp .none btnPress.bmp #6HOC !Execute [!LabelMemShow]
*Shortcut "tray" 100 1 trayHide.bmp .none trayShow.bmp #2OC !Execute [!grdTrayHide][!ShortcutGroupToggle 2 3]
*Shortcut "tray" 100 1 trayShow.bmp .none trayHide.bmp #3HOC !Execute [!grdTrayShow][!ShortcutGroupToggle 2 3]
*Shortcut "cap" 105 1 trayCap.bmp .none .none #3HOC .none
;Amp shortcuts with jAmp shown
*Shortcut "jAmp" 0 29 jAmpHide.bmp .none jAmpShow.bmp #4OC !Execute [!jAmpHide][!ShortcutGroupToggle 4 5][!vwmMove 1 29]
*Shortcut "space" 13 29 ampSpace.bmp .none .none #4OC .none
*Shortcut "prev" 17 29 ampPrev.bmp .none .none #4OC !Amp_Prev
*Shortcut "stop" 28 29 ampStop.bmp .none .none #4OC !Amp_Stop
*Shortcut "pause" 39 29 ampPause.bmp .none .none #4OC !Amp_Pause
*Shortcut "next" 50 29 ampNext.bmp .none .none #4OC !Amp_Next
*Shortcut "play" 61 29 ampPlay.bmp .none .none #4OC !Amp_Play
*Shortcut "eject" 72 29 ampEject.bmp .none .none #4OC !Amp_LoadFile
*Shortcut "power" 83 29 ampPower.bmp .none .none #4OC !Amp_Power
*Shortcut "cap" 94 29 ampCap.bmp .none .none #4OC .none
;Amp shortcuts with jAmp hidden
*Shortcut "jAmp" 0 21 jAmpShow.bmp .none jAmpHide.bmp #5HOC !Execute [!jAmpShow][!ShortcutGroupToggle 4 5][!vwmMove 1 37]
*Shortcut "space" 13 21 ampSpace.bmp .none .none #5HOC .none
*Shortcut "prev" 17 21 ampPrev.bmp .none .none #5HOC !Amp_Prev
*Shortcut "stop" 28 21 ampStop.bmp .none .none #5HOC !Amp_Stop
*Shortcut "pause" 39 21 ampPause.bmp .none .none #5HOC !Amp_Pause
*Shortcut "next" 50 21 ampNext.bmp .none .none #5HOC !Amp_Next
*Shortcut "play" 61 21 ampPlay.bmp .none .none #5HOC !Amp_Play
*Shortcut "eject" 72 21 ampEject.bmp .none .none #5HOC !Amp_LoadFile
*Shortcut "power" 83 21 ampPower.bmp .none .none #5HOC !Amp_Power
*Shortcut "cap" 94 21 ampCap.bmp .none .none #5HOC .none
On a side note, what does the #1OC and #6HOC settings mean. I've searched the docs and haven't found anything on it.
Thanks in advance.
My other problem is getting my Memory Usage label to show after toggle. I can get it to hide, but when I button again to show, it doesn't. Here's my code for the labels...
LabelMemText "Phys: [meminuse(%)]% [memAvailable]\nSwap [swapinuse(%)]% [swapAvailable]"
LabelMemX 924
LabelMemY 1
LabelMemImage labelBackrev.bmp
LabelMemOnLeftClick !Execute [!LabelMemHide][!LabelDiskShow]
LabelDiskText "D: [diskinuse('d:',MB)]\nF: [diskinuse('f:',MB)]"
LabelDiskX 924
LabelDiskY 1
LabelDiskImage labelBackrev.bmp
LabelDiskStartHidden
LabelDiskOnLeftClick !Execute [!LabelDiskHide][!LabelMemShow]
And the toggle settings...
*Shortcut "toggle" 1 1 btnNorm.bmp .none btnPress.bmp #1OC !Execute [!ShortcutGroupHide 1 2 3 4 5][!jAmpHide][!LabelTextHide][!vwmHide][!grdTrayHide][!ShortcutGroupShow 6]
*Shortcut "toggle" 1 1 btnNorm.bmp .none btnPress.bmp #6HOC !Execute [!ShortcutGroupToggle 6 1 2 4][!jAmpShow][!LabelTextShow][!vwmMove 1 37][!vwmShow][!grdTrayShow]
*Shortcut "cap" 9 1 trayCap.bmp .none .none #6HOC .none
*Shortcut "toggle" 1015 1 btnNorm.bmp .none btnPress.bmp #1OC !Execute [!LabelMemHide]
*Shortcut "toggle" 1015 1 btnNorm.bmp .none btnPress.bmp #6HOC !Execute [!LabelMemShow]
*Shortcut "tray" 100 1 trayHide.bmp .none trayShow.bmp #2OC !Execute [!grdTrayHide][!ShortcutGroupToggle 2 3]
*Shortcut "tray" 100 1 trayShow.bmp .none trayHide.bmp #3HOC !Execute [!grdTrayShow][!ShortcutGroupToggle 2 3]
*Shortcut "cap" 105 1 trayCap.bmp .none .none #3HOC .none
;Amp shortcuts with jAmp shown
*Shortcut "jAmp" 0 29 jAmpHide.bmp .none jAmpShow.bmp #4OC !Execute [!jAmpHide][!ShortcutGroupToggle 4 5][!vwmMove 1 29]
*Shortcut "space" 13 29 ampSpace.bmp .none .none #4OC .none
*Shortcut "prev" 17 29 ampPrev.bmp .none .none #4OC !Amp_Prev
*Shortcut "stop" 28 29 ampStop.bmp .none .none #4OC !Amp_Stop
*Shortcut "pause" 39 29 ampPause.bmp .none .none #4OC !Amp_Pause
*Shortcut "next" 50 29 ampNext.bmp .none .none #4OC !Amp_Next
*Shortcut "play" 61 29 ampPlay.bmp .none .none #4OC !Amp_Play
*Shortcut "eject" 72 29 ampEject.bmp .none .none #4OC !Amp_LoadFile
*Shortcut "power" 83 29 ampPower.bmp .none .none #4OC !Amp_Power
*Shortcut "cap" 94 29 ampCap.bmp .none .none #4OC .none
;Amp shortcuts with jAmp hidden
*Shortcut "jAmp" 0 21 jAmpShow.bmp .none jAmpHide.bmp #5HOC !Execute [!jAmpShow][!ShortcutGroupToggle 4 5][!vwmMove 1 37]
*Shortcut "space" 13 21 ampSpace.bmp .none .none #5HOC .none
*Shortcut "prev" 17 21 ampPrev.bmp .none .none #5HOC !Amp_Prev
*Shortcut "stop" 28 21 ampStop.bmp .none .none #5HOC !Amp_Stop
*Shortcut "pause" 39 21 ampPause.bmp .none .none #5HOC !Amp_Pause
*Shortcut "next" 50 21 ampNext.bmp .none .none #5HOC !Amp_Next
*Shortcut "play" 61 21 ampPlay.bmp .none .none #5HOC !Amp_Play
*Shortcut "eject" 72 21 ampEject.bmp .none .none #5HOC !Amp_LoadFile
*Shortcut "power" 83 21 ampPower.bmp .none .none #5HOC !Amp_Power
*Shortcut "cap" 94 21 ampCap.bmp .none .none #5HOC .none
On a side note, what does the #1OC and #6HOC settings mean. I've searched the docs and haven't found anything on it.
Thanks in advance.