No text with taskbar3-0.306_alph-3 Thread last updated on 2004-08-12 18:49:05

Posted by member 108633 on 2004-08-05 23:46:18

I have a switch in the popuptheme that declaires taskt as 1 or 2. And this is in my taskbar.rc file:
IF taskt = 1
TaskbarTextShow True
TaskbarNoFontShift true
ELSEIF taskt = 2
TaskbarTextShow False
TaskbarNoFontShift false
ENDIF


What am I doing wrong? I want text with taskt=1 and no text when taskt=2.

Posted by member 37809 on 2004-08-05 23:54:39 link

You are setting taskt as
taskt 1

or
taskt 2

before this conditional?

Also, you may as well treat taskt as a boolean. Why take default values with your omission of an ELSE, when you can define the defaults yourself:
IF taskt
TaskbarTextShow True
TaskbarNoFontShift true
ELSE
TaskbarTextShow False
TaskbarNoFontShift false
ENDIF

Posted by member 108633 on 2004-08-05 23:59:22 link

this will clear things up.
; THEME.RC

*NetLoadModule textedit-2.52
*NetLoadModule taskbar3-0.306_alpha-3

include "$ConfigDir$scheme.rc"
include "$ConfigDir$taskbar.rc"

; POPUPTHEME.RC

*Popup "Taskbar" Folder
*Popup "Icon and Text" !Execute [!textreplace "$ConfigDir$scheme.rc" "taskt *" "taskt 1"][!Recycle]
*Popup "Icon Only" !Execute [!textreplace "$ConfigDir$scheme.rc" "taskt *" "taskt 2"][!Recycle]
*Popup ~Folder

; SCHEME.RC

taskt 2

; TASKBAR.RC

IF taskt = 1
TaskbarTextShow True
TaskbarNoFontShift true
ELSEIF taskt = 2
TaskbarTextShow False
TaskbarNoFontShift false
ENDIF

Posted by member 108633 on 2004-08-07 11:35:49 link

bump

Posted by member 108633 on 2004-08-08 16:39:48 link

No one knows?

Posted by member 37809 on 2004-08-08 18:02:17 link

Well, the problem isn't the conditional.
!alert "$taskt$ $TaskbarTextShow$ $TaskbarNoFontShift$"
appears to confirm that for each value of taskt it works.

Could it be invalid setting names for taskbar3?
Have you confirmed that each of setting values work?

Could it be the !textreplace calls? Try them and check the file to see what was written.

For the longest time I thought textedit-2.52 was broken. Does the old syntax work? If you use the new syntax, make sure you tell textedit you want to use the new syntax.

Posted by member 108633 on 2004-08-08 18:21:47 link

"Could it be invalid setting names for taskbar3?
Have you confirmed that each of setting values work?"

This is my first theme. I dont understand the questions.

"Could it be the !textreplace calls? Try them and check the file to see what was written."

I use it for all custimization, and so far works great.

Posted by member 103254 on 2004-08-08 19:34:32 link

he was asking if the settings were valid taskbar3 settings.

Posted by member 108633 on 2004-08-09 10:46:36 link

They were in the readme, and thats the name of the taskbar...

Posted by member 108633 on 2004-08-12 18:49:05 link

bump