lsbox Thread last updated on 2004-02-29 15:44:29

Posted by member 97484 on 2004-02-29 01:00:00

OK this is bugging the hell out of me. Can anyone tell me where I'm going wrong.

Building a theme with lsboxs on a XP system and I can't get my labels to display in my box. The theme is in the early stages and everything is stripped down to the bare minimum.


theme.rc
;######################################################################
;____Enviromental_Variables____________________________________________

OTSMajorVersion 2
OTSMinorVersion 0

ThemeName "BoliDesk"
ThemeAuthor "Steven Wrightson"

LSImageFolder "$ThemeDir$images\"
ConfigDir "$ThemeDir$config\"
MiscDir "$ThemeDir$misc\"
BoxDir "$ThemeDir$config\box\"
BoxImage "$ThemeDir$images\box\"


;######################################################################
;_____Load_Modules_____________________________________________________

*NetLoadModule lsbox-2.95 ; LSbox
*NetLoadModule popup2-2.1.4 ; Popups
*NetLoadModule jdesk-0.73 ; Changing work area
*NetLoadModule label-1.99 ; Labels
*NetLoadModule shortcut2-2.0 ; Shortcuts


;######################################################################
;_____LSbox____________________________________________________________

*LsBoxCreate $BoxDir$vwm_max.box


;######################################################################
;_____Lables___________________________________________________________

Labels vwmMainLbl
AllLabelsFont Tahoma
AllLabelsFontHeight 12
AllLabelsFontColor FFFFFF
AllLabelsJustify left
AllLabelsAlwaysOnTop
AllLabelsTransparent

vwmMainLblText "VWM Control"
vwmMainLblX 18
vwmMainLblY 6
vwmMainLblWidth 100
vwmMainLblHeight 12
;vwmMainLblLSBoxName vwm_max


vwm_max.box
LsBoxName vwm_max
LsBoxX 500
LsBoxY 500
LsBoxRememberPosition
LsBoxZOrder stayontop
LsBoxSnapArea 0 0 1600 1200
LsBoxBackGround $BoxImage$box_back4.png
LsBoxDragRect 2 2 176 15

*ModuleHook !LabelLsBoxHook date


The line:

;vwmMainLblLSBoxName vwm_max

is REMed, but when I remove the ";" the label doesn't attach itself to the lsbox at all - or even appear anywhere. It just seems to vanish.

Any thoughts?

~ Boli

Posted by member 562 on 2004-02-29 03:52:45 link

you should load label module before lsbox module

Posted by member 99 on 2004-02-29 15:44:29 link

Also you probably need slashes at the end of ConfigDir, MiscDir, BoxDir, and BoxImage.

$BoxImage$box_back4.png = $ThemeDir$images\boxbox_back4.png