sketchucation logo sketchucation
    • Login
    1. Home
    2. exchudy
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    E
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 1

    Posts

    Recent Best Controversial
    • SKUI Textbox :onkey event getkey

      Hi

      I am trying to figure out is there a way, without changing SKUI wraper from thomthom, to get "ENTER" press event.

      I am using SKUI in my plugin, and because i am not very experienced in ruby, its very helpful. But i cant get this work.

      Any help will be welcome.
      Best regards

      my code:

      
      def testwindow
        window = SKUI;;Window.new( title; 'Test Window',
                                      width; 500,
                                      height; 210,
                                      resizable; false)
      
        txt = SKUI;;Textbox.new( 'nothing' )
        txt.position( 10, 10 )
        txt.width = 70
        txt.on( ;change) { |c| @promien = c.value }
        txt.on( ;keyup)     { |c| puts "keyup; #{c.value} '#{STDIN.getc}'"    }
        txt.on( ;keydown)   { |c| puts "keydown; #{c.value}"  }
        txt.on( ;keypress)  { |c| puts "keypress; #{c.value}" }
      
        window.add_control( txt )
      
      end
      
      
      posted in Developers' Forum
      E
      exchudy
    • 1 / 1