Re: Gah! Old error pops up. Long email

Brian Wolven <[email protected]>
Newsgroups gmane.comp.windows.shells.litestep
Message-ID <[email protected]>
Hale, Paul wrote:
> OK, I had thought that I had long ago rid myself of this error, but it
> has reared it's head again. Here is the situation. I have the taskbar,
> xtray, and time set to always keep a steady space between them. At
> certain times when I toggle all the xtray icons, the taskbar loses or
> forgets it width and goes off screen. According to !parseevars !alert
> $xtaskbarcurrentwidth$, the width is 1080. Is that significant? I don't
> know.
> 
> Anyway, I have narrowed it down to my weather script. When I had my
> weather as a text file displayed on a label via wazup, it worked fine.
> But since I now use vars to define conditions and update a label that
> way, the problem has returned.  Below is the pertinent config lines:
> 
> WeatherButton_OnMiddleClick !Execute [!WazupCheck
> Weather][!UpdateWeather]
> 
> *Script bang !UpdateWeather 
>  *Script exec !reload
>  *Script exec !netReloadModule $ColorModule$
>  *Script exec !LabelRefresh WeatherLabel_
> *Script ~bang
> 
> *MainBar_ModuleHook !LabelLSBoxHook Time_
> Time_X -68
> Time_Y 3
> Time_AutoWidthMode right
> Time_AutoMinWidth 64
> Time_Align right
> Time_FontVertAlign center
> Time_OnLeftClick !xTrayToggleHiddenIcons
> Time_OnResize !ParseEvars !xTrayMove
> %#Time_CurrentX-xTrayCurrentWidth-4%# $xTrayY$
> 
> xTrayLoadInBox
> *MainBar_ModuleHook !xTrayLSBoxHook
> xTrayCurrentX 0
> xTrayX $Time_CurrentX-4$
> xTrayCurrentWidth 0
> xTrayAutoSize 5 1
> xTrayLayout .horizontal
> xTrayDirection .left
> xTrayOnIconHide !xTextAppend @$configdir$xTrayHide.rc@ @*xTrayHide
> \=%[classname]%\= \=%[windowtext]%\=@
> xTrayOnIconUnHide !xTextDelete @$configdir$xTrayHide.rc@
> @\=%[classname]%\= \=%[windowtext]%\=_@
> 
> xTaskBarLoadInBox
> *MainBar_ModuleHook !xTaskBarLSBoxHook xTaskBar
> xTaskBarCurrentX 0
> xTaskBarX $Base_X$
> xTaskBarWidth $xTrayCurrentX-xTaskBarX$
> xTaskBarLayout .horizontal
> xTaskBarDirection .right
> xTaskBarHideIfEmpty
> 
> I know it has something to do with the !reload. I would guess that
> !reload is wiping out the currentX definitions, but I don't know how to
> redifine those.

This is sufficient for me, at least with current versions of xabel. I 
have a label with current conditions (cond.), and one with the forecast 
(forecast.).

  *alias !updateConditions !execute [!labelRefresh Cond.][!labelUpdate 
Cond.][!labelSetText Cond. $Cond.Text$]
  *alias !updateForecast	!execute [!labelRefresh Forecast.][!labelUpdate 
Forecast.][!labelSetText Forecast. $Forecast.Text$]
  *alias !updateWeather !execute [!updateConditions][!UpdateForecast]


---------------------------------------------------------------------
    Can't Unsubscribe? Check http://desktopian.org/listunsub.html
        LS List Homepage: http://wuzzle.org/list/litestep.php
            Get the LS FAQ: http://lsfaq.shellfront.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.