Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Dcl Problem
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Dcl Problem (Read 1533 times)
0 Members and 1 Guest are viewing this topic.
Travaci
Mosquito
Posts: 1
Dcl Problem
«
on:
October 16, 2019, 03:11:05 AM »
Hi everyone,
I can't put my .sld center
İt's looking diffrent on win7 and win10
What should i do ?
Logged
roy_043
Water Moccasin
Posts: 1895
BricsCAD 18
Re: Dcl Problem
«
Reply #1 on:
October 16, 2019, 03:22:12 AM »
You can get the dimensions of the tile and use them to correctly position the slide.
Maybe this helps:
Code - Auto/Visual Lisp:
[Select]
(
defun
KGA_Dcl_Image_FillSlide
(
tile slide scaleFactor lineColor backColor
/
xSize xSizeScaled ySize ySizeScaled
)
(
setq
xSize
(
dimx_tile
tile
)
)
(
setq
ySize
(
dimy_tile
tile
)
)
(
setq
xSizeScaled
(
fix
(
*
(
-
xSize
4
)
scaleFactor
)
)
)
(
setq
ySizeScaled
(
fix
(
*
(
-
ySize
4
)
scaleFactor
)
)
)
(
set_tile
tile
""
)
(
start_image
tile
)
(
fill_image
0
0
xSize ySize lineColor
)
(
fill_image
1
1
(
-
xSize
2
)
(
-
ySize
2
)
backColor
)
(
if
slide
(
slide_image
(
/
(
-
xSize xSizeScaled
)
2
)
(
/
(
-
ySize ySizeScaled
)
2
)
xSizeScaled ySizeScaled slide
)
)
(
end_image
)
)
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Dcl Problem