Display slide on image_button

Display slide on image_button

saitoib
Advocate Advocate
922 Views
5 Replies
Message 1 of 6

Display slide on image_button

saitoib
Advocate
Advocate

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
キャプチャ.PNG
image_button
キャプチャ2.PNG
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
0 Likes
Accepted solutions (1)
923 Views
5 Replies
Replies (5)
Message 2 of 6

Mehmet_Demiryurek
Mentor
Mentor
Accepted solution

Hi,

 

The mslide command saves the entire drawing screen.
In the Dcl table, the blank screen other than the drawing is also included in the slide image.
Make sure that only the drawing appears on the drawing screen and repeat the process.

 

Mehmet_Demiryurek_0-1650966249867.png

Mehmet_Demiryurek_1-1650966283497.png

 

 


Mehmet Şamil DEMİRYÜREK

Bu gönderiyi faydalı buldunuz mu? Bu gönderiyi beğenmekten çekinmeyin.
Sorunuz başarıyla yanıtlandı mı? ÇÖZÜMÜ KABUL ET düğmesine tıklayın.


EESignature

Linkedln

Message 3 of 6

saitoib
Advocate
Advocate

@Mehmet_Demiryurek 

Oh, that was the reason.
I understood.
Thank you very much.

Saitoib
Message 4 of 6

Sea-Haven
Mentor
Mentor

You have to be careful of say 4k screens these make the slides very small. Make your layout say 0,0 100,100 and make sure its full size on the screen, then mslide. I batch make slides for multiple dwgs etc and found a trick was to reduce the size of my Autocad not having it full screen. Zoom E Zoom 0.9XP

Message 5 of 6

saitoib
Advocate
Advocate

@Sea-Haven 

Thank you for your valuable advice!

Saitoib
0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

Slides started with like color and 640x480 resolution, I dont think they have ever been changed in like 40 years.

 

You can definitely script make slides if you have lots of blocks or std dwgs etc.

0 Likes