Change field FBTN size and position

896 views
Skip to first unread message

Paul

unread,
Jan 21, 2016, 4:30:58 AM1/21/16
to yad-common
Dear all, I would like to play with graphic in yad strating with size and position of my button. I have main yad window and I would like to keep size and column, but change just field FBTN in my window. Is it possible?

See my yad script:

yad \
--width 650 \
--height 750 \
--center \
--on-top \
--borders=30 \
--fixed \
--button="Align!gtk-ok":0 \
--button=gtk-help:2 \
--button=gtk-cancel:1 \
--buttons-layout=end \
--form \
--field " ":lbl "" \
--field="<big><b>field1:</b> </big>":LBL "" \
--field " ":lbl "" \
--field="field2:"" \
--field="Select file":FBTN "bash $current_dir/select_files" \
--field "
":lbl "" \
--field="
show file":FBTN "bash $current_dir/show_selected_files.sh" \
--field "
":lbl "" \
--field="
command 3":FBTN "bash $current_dir/command.sh" \
--field "
":lbl "" \
--columns=1


How Can I easy change size and position of --fields FBTN without affect to windows size and another fields?

Thank you so much for any ideas.








FFRR

unread,
Feb 14, 2016, 5:01:49 PM2/14/16
to yad-common
Only way I have found to do this is to use a transparent icon in the button, like this:

--field="MYLABEL!"~/transparent.png":FBTN" ""

you might need a full path to the image. Play around with the Label position and image geometry and it might work for you?

I attach a suitable image file, in case you need one


Tim
transparent.png

Paul

unread,
Mar 9, 2016, 8:41:31 AM3/9/16
to yad-common
Thank you so much Tim. This is very good idea. It is curious than there is not option to change size of fbtn dont you think? :-)

Paul.
Reply all
Reply to author
Forward
0 new messages