(text) formatting in AlertWindow() ?

Home Forums General Programming (text) formatting in AlertWindow() ?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #117740
    higgy
    Participant
      • Topics: 9
      • Replies: 11
      • Total: 20

      Hi,

      Ctrlr version: 5.4x

      On my panels I’m using AlertWindow() (not utils.AlertWindow but the juce method) to display popup windows with help text/documentation for the panel functions (panel buttons call a ctrlr method which opens AlertWindows)

      Is is possible to add at least some basic (text) formatting, e.g.
      – minimum width of the popup window
      – fixed font (instead of default proportional)
      – and, the holy grail, add images and/or graphs

      I tried with lookandfeel but I must say I don’t get in tune with it.

      Or maybe someone has some other ideas for displaying ‘built-in’ help text?

      BTW: juce DocumentWindow() and DialogWindow() are not available in ctrlr, right?

      Thx
      Franky

      #117742
      Tedjuh
      Participant
        • Topics: 9
        • Replies: 97
        • Total: 106
        • ★★

        Shouldn’t that be possible with either addcustomcomponent or addtexteditor? They are both available in alertwindow class in Juce.

        #117749
        higgy
        Participant
          • Topics: 9
          • Replies: 11
          • Total: 20

          the panel uses addTextBlock (only displaying text, no need for editing), but as said, I don’t find a way to formatting. OK, I’ll dive into customcomponent.
          f

          #117754
          Tedjuh
          Participant
            • Topics: 9
            • Replies: 97
            • Total: 106
            • ★★

            Is this of any help?

            https://www.tutorialspoint.com/lua/lua_strings.htm

            There are some formatting thingies..

            #117785
            higgy
            Participant
              • Topics: 9
              • Replies: 11
              • Total: 20

              unfortunately not. This covers Lua strings but my problem is in juce. Tried yet again ctrlr look&feel with getAlertWindowMessageFont and getAlertWindowFont definitions/overwrites but neither AlertWindow nor AlertWindow:showMessageBox do react to font settings. I’m close to give up… :-/

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The forum ‘Programming’ is closed to new topics and replies.
            There is currently 0 users and 42 guests online
            No users are currently active
            Forum Statistics
            Threads: 2,495, Posts: 17,374, Members: 77,605
            Most users ever online was 12 on January 22, 2019 3:47 pm
            Ctrlr