RSS/Atom feed Twitter
Site is read-only, email is disabled

fractional small-step for SF-ADJUSTMENT

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

fractional small-step for SF-ADJUSTMENT Alan Campbell 21 Nov 16:14
  fractional small-step for SF-ADJUSTMENT paynekj 23 Nov 15:32
Alan Campbell
2010-11-21 16:14:35 UTC (about 14 years ago)

fractional small-step for SF-ADJUSTMENT

Hi,

I wanted to have a spinner (roller-box), measurement in inches, jumping by 0.0625 (1/16") every time user clicked the spinner.

Doesn't seem to work. Looks like small-step, large-step have to be integral values.

That match what everyone else finds?

Sample code:

(define (wrf_test inBoardWidth inBoardWith2) 0
)

(script-fu-register "wrf_test" "_A Test..."
"Testing Menu Naming" ; description "Alan Campbell"
"no copyright"
"today"
""
; adjustment: "title" (start-value min-value max-value ; small-step large-step [int=0 or float=1] [slider=0 or roll-box=1]) SF-ADJUSTMENT "Board width:" (list 4.00 0 12 .03125 0.625 1 1) SF-ADJUSTMENT "Board width:" (list 4.00 0 12 1 10 1 1) SF-OPTION "Shoulder type" '("two" "none" "one") )

(script-fu-menu-register "wrf_test" "/File/Create/")

Yrs,

Alan

24 hours in a day, 24 beers in a case. Coincidence?

===================== +++++ =====================

2010-11-23 15:32:42 UTC (about 14 years ago)
postings
16

fractional small-step for SF-ADJUSTMENT

Hi,

I wanted to have a spinner (roller-box), measurement in inches, jumping by 0.0625 (1/16") every time user clicked the spinner.

Doesn't seem to work. Looks like small-step, large-step have to be integral values.

That match what everyone else finds?

; small-step large-step [int=0 or float=1] [slider=0 or roll-box=1]) SF-ADJUSTMENT "Board width:" (list 4.00 0 12 .03125 0.625 1 1)

No. Your problem is the incorrect description of the parameters that you've used. The value [int=0 or float=1] is actually the precision, or number of decimal places to display. So if you change the value to 5 you should find the behaviour you are looking for.