Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A rolling disk gathers no MOS.


devel / comp.lang.tcl / Non-standard colors for ttk::scale elememnts...

SubjectAuthor
* Non-standard colors for ttk::scale elememnts...Robert Heller
`- Re: Non-standard colors for ttk::scale elememnts...Schelte

1
Non-standard colors for ttk::scale elememnts...

<IeKdnaJHZM5WATr_nZ2dnUU7-UXNnZ2d@giganews.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19536&group=comp.lang.tcl#19536

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 13 Jun 2022 15:23:39 -0500
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.13)
Subject: Non-standard colors for ttk::scale elememnts...
Newsgroups: comp.lang.tcl
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <IeKdnaJHZM5WATr_nZ2dnUU7-UXNnZ2d@giganews.com>
Date: Mon, 13 Jun 2022 15:23:39 -0500
Lines: 73
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-26QJpg674AdVyL9RV5vo6LPSS/UusP5KGZm83PEg2O5oYezJud7jvoewuJTS7gK3o2R3EJNHF7JPJ7Y!VLyuoJzQSGCrR5dJXhsdvpttthLRirjDCM7dNarl4yLFG2s6dT+dQfJyBlypvmqXI9TKO5XMroLG!rj0=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3677
 by: Robert Heller - Mon, 13 Jun 2022 20:23 UTC

I am trying to use ttk::scale widgets, but with (very) non-standard colors. I
have things *mostly* set, but there is one color setting I can't seem to
figure out how to set.

Consider this piece of code:

#*****************************************************************************
# # System :
# Module :
# Object Name : $RCSfile$
# Revision : $Revision$
# Date : $Date$
# Author : $Author$
# Created By : Robert Heller
# Created : Mon Jun 13 16:13:05 2022
# Last Modified : <220613.1622>
# # Description
# # Notes
# # History
#
#*****************************************************************************
# # Copyright (C) 2022 Robert Heller D/B/A Deepwoods Software
# 51 Locke Hill Road
# Wendell, MA 01379-9728
# # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# #*****************************************************************************

package require Tk

ttk::style layout NavigationHelmThrustor \
{Vertical.Scale.trough -sticky nswe \
-children {Vertical.Scale.slider -side top -sticky {we}}}
ttk::style configure NavigationHelmThrustor \
{*}[ttk::style configure TScale]
ttk::style configure NavigationHelmThrustor \
-background green \
-troughcolor DarkOliveGreen

pack [ttk::scale .t -style NavigationHelmThrustor -orient vertical]

When you hover the pointer over the slider, its color changes to a pale grey
color. I want it to be some other color. How can I do that?

I am using Tcl/Tk 8.6 on Ubuntu 18.04 (Linux).

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: Non-standard colors for ttk::scale elememnts...

<nnd$3640f892$65f51022@953b5c1c9f77840a>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19537&group=comp.lang.tcl#19537

  copy link   Newsgroups: comp.lang.tcl
Date: Tue, 14 Jun 2022 00:10:03 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0
Subject: Re: Non-standard colors for ttk::scale elememnts...
Content-Language: nl-NL
Newsgroups: comp.lang.tcl
References: <IeKdnaJHZM5WATr_nZ2dnUU7-UXNnZ2d@giganews.com>
From: nospam@wanadoo.nl (Schelte)
In-Reply-To: <IeKdnaJHZM5WATr_nZ2dnUU7-UXNnZ2d@giganews.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <nnd$3640f892$65f51022@953b5c1c9f77840a>
Organization: KPN B.V.
Path: i2pn2.org!rocksolid2!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!news.uzoreto.com!feeder.usenetexpress.com!tr1.eu1.usenetexpress.com!94.232.112.245.MISMATCH!abe005.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 10
Injection-Date: Tue, 14 Jun 2022 00:10:03 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: Schelte - Mon, 13 Jun 2022 22:10 UTC

On 13/06/2022 22:23, Robert Heller wrote:
> When you hover the pointer over the slider, its color changes to a pale grey
> color. I want it to be some other color. How can I do that?
>
Add:
ttk::style map NavigationHelmThrustor -background {active blue}

Schelte.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor