shoes / shoes-deprecated

Former repo for Shoes... see README for up to date locations!
http://shoesrb.com/
Other
1.15k stars 168 forks source link

edit_box not working (walkabout) #282

Open Dassadar opened 8 years ago

Dassadar commented 8 years ago

Hello,

An edit_box is not displayed on my following ruby example, can you please help?

Shoes.app do
    app.stack do
        app.flow do
            app.stack width:95 do
                app.inscription "Personal comments:", align: "right"
            end
            comPerso = app.edit_box height: 40, width: 201
            valButton = app.image "img/ok.jpg", height: 25, width: 45, margin_left: 10, margin_right: 10
        end
    end
end

Thx & regards, David

ccoupe commented 8 years ago

remove the app. from the start of stack, flow, edit_box and image. also remember Shoes 3.2/3 has a different issue page. As does Shoes 4

Dassadar commented 8 years ago

Thx. But it unfortunately doesn't fix:

Shoes.app do
    stack do
        flow do
            stack width:95 do
                inscription "Personal comments:", align: "right"
            end
            comPerso = edit_box height: 40, width: 201
            valButton = image "img/ok.jpg", height: 25, width: 45, margin_left: 10, margin_right: 10
        end
    end
end
ccoupe commented 8 years ago

That code works on my Ubuntu box! I don't have img/ok.jpg which the Shoes console tell me about. What error message are you getting - alt / to get the console.

Dassadar commented 8 years ago

Here is the screenshot: all is there, except the edit_box. I get no error message. Any idea?

2016-03-03 23:06 GMT+01:00 Cecil Coupe notifications@github.com:

That code works on my Ubuntu box! I don't have img/ok.jpg which the Shoes console tell me about. What error message are you getting - alt / to get the console.

— Reply to this email directly or view it on GitHub https://github.com/shoes/shoes/issues/282#issuecomment-191987448.

ccoupe commented 8 years ago

screenshot from 2016-03-03 16 22 08

Dassadar commented 8 years ago

Hi,

Ok, strange... Actually worse; this dislpays nothing:

Shoes.app do edit_box end

What do you need to progress please?

Regards, David

2016-03-04 0:23 GMT+01:00 Cecil Coupe notifications@github.com:

[image: screenshot from 2016-03-03 16 22 08] https://cloud.githubusercontent.com/assets/222691/13513138/339a77b8-e15c-11e5-9bd4-d9ac505521e4.png

— Reply to this email directly or view it on GitHub https://github.com/shoes/shoes/issues/282#issuecomment-192017339.

ccoupe commented 8 years ago

We need to verify that you've installed Shoes. Are you running from the Menus or the command line? Linux or Windows? . Can you run Shoes at all - the manual? the maintain shoes? the samples in the manual->furthermore ?

Dassadar commented 8 years ago

Hi Cecil,

Same story via command line or via the Shoes GUI. OS is Linux Ubuntu 15.10

All the rest works perfect: I mean the whole interface I designed has all except the 2 edit_box.

Regards, David

2016-03-04 7:20 GMT+01:00 Cecil Coupe notifications@github.com:

We need to verify that you've installed Shoes. Are you running from the Menus or the command line? Linux or Windows? . Can you run Shoes at all - the manual? the maintain shoes? the samples in the manual->furthermore ?

— Reply to this email directly or view it on GitHub https://github.com/shoes/shoes/issues/282#issuecomment-192128691.

ccoupe commented 8 years ago

In samples is simple-control-sizes.rb (or the Packaging, or Maintain Shoes->Manage_Gems) all use edit_boxes, if they work, then the problem would be something in your code like somehow they are defaulted to hidden state or Shoes just doesn't see them as Shoes methods. If edit_boxes don't show up in the examples mentioned then it's something much much different that would affect all applications on your machine, not just Shoes.

Dassadar commented 8 years ago

Hi,

Here is the result:

Does it look fine?

Regards,

David

Le 2016-03-05 21:05, Cecil Coupe a écrit :

In samples is simple-control-sizes.rb (or the Packaging, or Maintain Shoes->Manage_Gems) all use edit_boxes, if they work, then the problem would be something in your code like somehow they are defaulted to hidden state or Shoes just doesn't see them as Shoes methods. If edit_boxes don't show up in the examples mentioned then it's something much much different that would affect all applications on your machine, not just Shoes.

Reply to this email directly or view it on GitHub [1].

Links:

[1] https://github.com/shoes/shoes/issues/282#issuecomment-192721027

ccoupe commented 8 years ago

You have to attach files using the web browser https://github.com/shoes/shoes/issues/282 . Replying in email doesn't send them to github (or to mail box)

Dassadar commented 8 years ago

Sorry, here it is! 0ab6ec59

ccoupe commented 8 years ago

Here's what it should look like: screenshot from 2016-03-06 00 05 42

That screams some sort of theme problem. Notice edit box and edit list are both wrong! However, you do have edit_lines. Do you have some sort of mobile friendly theme installed. I'm Ubuntu 14.04.

Dassadar commented 8 years ago

What should I do then please? My shoes build is 3.3.0 r2333.

ccoupe commented 8 years ago

Please posting a new issue at https://github.com/Shoes3/shoes3 since this site is only for very old Shoes. Over there, are some additional folks that don't monitor this old site. They may have better ideas. Be sure to mention Ubuntu 15.10. This is very disturbing. If if you just want to click things, then you could change themes and/or check the settings inside.