Jump to content

Slide image not occupying for image DCL


kilari_venkatesh

Recommended Posts

As you can see in the attachement at the bottom of dialog box a rectangular pink box not occupying the full white colour image.Please suggest...

 

: row {

: image {

key = "im" ;

height = 2.15 ; //0.9495

width = 10 ; //1.00

fixed_width = true; //fix the width

fixed_height = true; //fix the height

}

: paragraph {

: text_part {

label = "Designed and Created";

}

: text_part {

label = "XYZ";

}

}

}

 

______________________________Lisp_____________________________

(setq w (dimx_tile "im")

h (dimy_tile "im")

) ;_ end of setq

(start_image "im")

;(fill_image 0 0 w h 1)

(slide_image 0 0 w h "hatch")

(end_image)

1.JPG

Link to comment
Share on other sites

Hi kilari_venkatesh,

 

I don't deal with DCL for a long time, but, let's see if I can assist...

 

A simple soluction would be, to set the background color to -15, the dialog color, it does not modify the image size, but you'll not see the white...

e.g.

: row {
: image {
key = "im" ;
height = 2.15 ; //0.9495
width = 10 ; //1.00
color = -15 ; //the dialog color
fixed_width = true; //fix the width
fixed_height = true; //fix the height
}
: paragraph {
: text_part {
label = "Designed and Created";
}
: text_part {
label = "XYZ";
}
}
}

To fit the image to the tile, you'll have to change the image size, and change the image offset.

e.g.

(setq w (dimx_tile "im")
     h (dimy_tile "im")
) ;_ end of setq
(start_image "im")
(fill_image 0 0 w h 1);;comment after you set the correct img size and offset
(slide_image -25 -5 (* w 2) (* h 2) "hatch")
(end_image)

 

Hope that helps

Henrique

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...