sketchucation logo sketchucation
    • Login
    1. Home
    2. arunkumargonal
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Groups 1

    arunkumargonal

    @arunkumargonal

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    arunkumargonal Unfollow Follow
    registered-users

    Latest posts made by arunkumargonal

    • RE: SKUI — A GUI Framework for SketchUp

      Hey TT,

      The remove_control works good. It indeed removes the control from the window.
      The issue was with my code, I was using window.controls.each to call the remove_control in which, the control is deleted from the array.
      My code:
      @window.controls.each do |container| @window.remove_control(container) end

      Code in remove_control
      @controls.delete( control )

      I commented the delete inside the remove_control function and used @windows.controls.clear in my function.

      Thanks & Regards,
      Arun

      posted in Developers' Forum
      A
      arunkumargonal
    • RE: SKUI — A GUI Framework for SketchUp

      Hi ThomThom,

      SKUI is helping me a lot in building some basic GUI.

      Need your help for the following scenario.
      I am adding controls to the window. I have kept a selection observer, when ever the selection changes, Need to remove all the controls in the window and add new ones.

      I am trying to use the remove_control method of control_manager which is not deleting all the controls. Please let me know if it is right to use the below code for removing all the controls of the window.

      window.controls.each do |control| window.remove_control(control) end

      Thank you,
      Arun.

      posted in Developers' Forum
      A
      arunkumargonal