Message Boards Message Boards

0
|
5196 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Button alignment in grid and output values in same grid?

Posted 6 years ago

Hi, Iam trying to get all buttons on same line and require the output result values to be in the grid itself instead of on the next line. I require the final GUI to be like this.

enter image description here

I've tried Span options for buttonvalignment The code is as follows:

imageTreeSky={imgTree=IMAGE 1;ImgSky=IMAGE 2}; Grid[{{imgTree,ImgSky}, {Button["Image Distance",Print[ImageDistance[imgTree,ImgSky]],ImageSize->{100,30}],SpanFromLeft}, {Button["Pixel for Tree",Print[ImageMeasurements[imgTree,"MeanIntensity"]],ImageSize->{100,30}], Button["Pixel for Sky",Print[ImageMeasurements[ImgSky,"MeanIntensity"]],ImageSize->{100,30}] }},Frame-> All

Attachment

Attachment

POSTED BY: Manoj Imrith
2 Replies
Posted 6 years ago

Dear Dr. Trounev,

Thank you very much

Regs

POSTED BY: Manoj Imrith
Grid[{{imgTree, , ImgSky}, {Button["Pixel for Tree"], 
   Button["Image Distance"], 
   Button["Pixel for Sky"]}, {Button[
    ImageMeasurements[imgTree, "MeanIntensity"]], 
   Button[ImageDistance[imgTree, ImgSky]], 
   Button[ImageMeasurements[ImgSky, "MeanIntensity"]]}}, Frame -> All]

fig1

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract