bugGNU TeXmacs - Bugs: bug #40697, Pulldown buttons inside widgets

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #40697: Pulldown buttons inside widgets

Submitter:  Joris van der Hoeven <vdhoeven>
Submitted:  Mon 25 Nov 2013 01:49:05 PM UTC
   
 
Category:  Qt port Priority:  3 - Low
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  mdbenito
Originator Name:  Open/Closed:  Closed
Release:  None Release: 
Fixed Release:  None Fixed Release: 
Keywords: 

Sat 07 Jun 2014 04:27:14 PM UTC, comment #4: 

Revision 8615 fixes the appearance of tool buttons displaying only icons. It also displays menus to the right of the button for pullright_menus. However, the small menu-indicator arrow is still drawn by QTMStyle. I think this cannot be fixed with a style sheet since we are using a custom QStyle, so we need to tweak QTMStyle.

Miguel de Benito <mdbenito>
Group Member
Sun 29 Dec 2013 03:32:10 PM UTC, comment #3: 

Thanks.
I've implemented pulldowns in revision 8115. They do work, though they look best when used with text. Here's an example:


(tm-widget (test)
  (resize "600px" "300px"
    (horizontal
      (texmacs-input `(document "Blah")
                     `(style (tuple "generic"))
                     "tmfs://aux/test")
      (vertical
        (text "Blah")
        ---
        (=> "Foreground" (link document-foreground-color-menu))
        (=> "Background" (link document-background-color-menu))
        (-> (icon "tm_theorem.xpm") (link enunciation-menu))
        ---
        (text "Blah blah")))))



Miguel de Benito <mdbenito>
Group Member
Wed 04 Dec 2013 09:41:42 PM UTC, comment #2: 

You should replace ("blip") by "blip" in any case.
If you still cannot get it to work, then I will try to produce an X11 example.

Joris van der Hoeven <vdhoeven>
Group administrator
Wed 04 Dec 2013 09:15:09 PM UTC, comment #1: 

I've tried a simple example widget but the scheme code is wrong:


(tm-widget (test)
  (vertical
    (text "Blah")
    (=> ("blip") (link add-package-menu))))
(show test)

produces

Missing expression in (lambda ()).


This is probably very silly. Do you have an example working in X11?

Miguel de Benito <mdbenito>
Group Member
Mon 25 Nov 2013 01:49:05 PM UTC, original submission:  

Pulldown buttons (e.g. (=> "Button" ...)) do not work inside widgets (they only work inside toolbars and top menus).  Same for pullright buttons.  However, such buttons could be quite useful for the design of certain widgets, since this is the natural way to use menus inside arbitrary widgets.

Joris van der Hoeven <vdhoeven>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mdbenito (Posted a comment)
  • -email is unavailable- added by vdhoeven (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-06 vdhoeven StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2014-01-02 mdbenito Priority5 - Normal 3 - Low
    2013-12-29 mdbenito StatusConfirmed In Progress

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code