thomthom / SKUI

Ruby wrapper of classes that maps to GUI controls in SketchUp's UI::WebDialogs
MIT License
26 stars 14 forks source link

Button text can not be more than one word #88

Closed jimfoltz closed 10 years ago

jimfoltz commented 10 years ago

If I create a Button..

btnAdd = SKUI::Button.new('Add Layer') { |control|

Only the word "Add" appears as the button text.

noelwarr commented 10 years ago

Been a while since I used SKUI so thought this was the perfect excuse. I tried out your code and have attached a screenshot. Please notice a small pixel under the "A" of "Add". This is the tip of the "L" in Layer. Your button is wrapping the text into two lines because it doesn't fit on one. Try making the button longer. That should fix it. Here is an example

w = SKUI::Window.new b = SKUI::Button.new( 'Add Layer' ) { puts 'World! :)' } b.position( 10, 5 ) b.width = 200 w.add_control( b ) w.show

On 9 March 2014 16:47, Jim Foltz notifications@github.com wrote:

If I create a Button..

btnAdd = SKUI::Button.new('Add Layer') { |control|

Only the word "Add" appears as the button text.

Reply to this email directly or view it on GitHubhttps://github.com/thomthom/SKUI/issues/88 .

jimfoltz commented 10 years ago

Yep, that was it. :stuck_out_tongue_winking_eye:

Thanks.

thomthom commented 10 years ago

phew!