Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all.
I have assigned an image_button in the dialog and am trying to display the image of the slide on this button.
However, the image is displayed too small.
I want to display the image on the entire surface of the button
Is there a solution?
The slide is created by mslide after creating a 0,0 200,200 viewport on the layout and then filling it with zoom e.
When this is displayed, it looks like this
layout
image_button
The dialog file is this
Test :dialog{
:image_button{
key = "plan";
width = 5;
height = 15;
color = 9;
}
ok_cancel;
}
The Lisp file is this
(defun c:test2 ( / dcl_file dlg_id ix iy ret)
(setq dcl_file (findfile "test.dcl"))
(setq dlg_id (load_dialog dcl_file))
(new_dialog "Test" dlg_id)
(setq ix (dimx_tile "plan"))
(setq iy (dimy_tile "plan"))
(start_image "plan")
(slide_image 0 0 ix iy "Plan.sld")
(end_image)
(action_tile "accept" "(done_dialog 1)")
(action_tile "cancel" "(done_dialog 0)")
(setq ret (start_dialog))
(unload_dialog dlg_id)
(princ "\nX= ")(princ ix)
(princ "\nY= ")(princ iy)
(princ)
)
Thank you
Saitoib
Solved! Go to Solution.