unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using defcustom to set width and height for set-window-scroll-bars
@ 2024-05-14  0:34 Heime
  2024-05-14  6:18 ` Eli Zaretskii
  0 siblings, 1 reply; 30+ messages in thread
From: Heime @ 2024-05-14  0:34 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

Am using a defcustom to specify the scroll bar size (width, height) in pixels
for use with set-window-scroll-bars

Emacs seems to get confused in applying width and height.

(defcustom bdrive-barsize 80
  "Customizable variable to store the scroll bar size in pixels."
  :type 'integer
  :group 'bdrive)

  (let ( (window (selected-window))
         (width bdrive-barsize)
         (vertical-type 'right)
         (height bdrive-barsize)
         (horizontal-type 'bottom)
         (persistent nil) )
    (set-window-scroll-bars window width vertical-type
                            height horizontal-type persistent))






^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2024-05-15 11:24 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14  0:34 Using defcustom to set width and height for set-window-scroll-bars Heime
2024-05-14  6:18 ` Eli Zaretskii
2024-05-14 11:03   ` Heime
2024-05-14 11:14     ` Heime
2024-05-14 11:37       ` Heime
2024-05-14 11:55         ` Eli Zaretskii
2024-05-14 11:38       ` Eli Zaretskii
2024-05-14 11:43         ` Heime
2024-05-14 12:00           ` Eli Zaretskii
2024-05-14 13:19             ` Heime
2024-05-14 13:33               ` Eli Zaretskii
2024-05-14 13:33         ` Po Lu
2024-05-14 13:54           ` Heime
2024-05-14 14:05             ` Eli Zaretskii
2024-05-14 14:09               ` Heime
2024-05-14 16:53                 ` Eli Zaretskii
2024-05-14 18:08                   ` How to tell if Emacs's built with GTK? [was: Using defcustom to set width and height for set-window-scroll-bars] Pierre Rouleau
2024-05-14 18:25                     ` Eli Zaretskii
2024-05-14 19:12                       ` Pierre Rouleau
2024-05-14 19:25                         ` Eli Zaretskii
2024-05-14 20:01                           ` Pierre Rouleau
2024-05-15  2:34                             ` Eli Zaretskii
2024-05-14 14:19               ` Using defcustom to set width and height for set-window-scroll-bars Heime
2024-05-14 17:04                 ` Eli Zaretskii
2024-05-14 20:13                   ` Heime
2024-05-15  2:35                     ` Eli Zaretskii
2024-05-15  2:48                       ` Heime
2024-05-15 11:24                         ` Eli Zaretskii
2024-05-14 21:33           ` Heime
2024-05-14 11:37     ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).