Author Topic: Error in Dialog Box DCL  (Read 1383 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 495
Error in Dialog Box DCL
« on: June 12, 2016, 09:14:54 AM »
Hi

I get following error in Dialog Box DCL.
It is when any of X and Y coordinates of my screen resolution are less than X or Y (size) of the Dialog Box.

The size of Dialog Box is dynamic in my case because I am displaying an image in it, hence size of dialog box varies with size of image.

How to solve it.

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: Error in Dialog Box DCL
« Reply #1 on: June 12, 2016, 12:07:26 PM »
Obviously you need to shrink down the dialog size, maybe separate the image and have as "child" dialog that displays on top of the main dialog.  Install a preview image button or some other means to activate the child dialog, then a close button on the child to bring back to main dialog.

mailmaverick

  • Bull Frog
  • Posts: 495
Re: Error in Dialog Box DCL
« Reply #2 on: June 12, 2016, 02:32:22 PM »
But even if I separate the image as a "child" dialog, then also I cannot fit the image larger than screen resolution.

Now my problem is, how to reduce the image size in Autolisp ?

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: Error in Dialog Box DCL
« Reply #3 on: June 12, 2016, 02:44:37 PM »
But even if I separate the image as a "child" dialog, then also I cannot fit the image larger than screen resolution.

Now my problem is, how to reduce the image size in Autolisp ?

Is the image a slide file?

The post stated you had a dynamic preview window size, and it did not appear you wanted to change that. 


mailmaverick

  • Bull Frog
  • Posts: 495
Re: Error in Dialog Box DCL
« Reply #4 on: June 13, 2016, 07:28:21 AM »
The image is in form of grid (lists of lists) of Pixel (AutoCAD ACI) Colors like :-
(
(9 9 254 254 254 254 254 254 254 254)
(9 254 254 254 254 254 254 254 9 254)
(9 9 9 9 9 9 9 253 253 7)
(7 7 254 251 8 7 9 9 254 254)
(7 254 254 254 9 252 251 251 251 251)
(251 250 250 251 253 253 253 253 253 253)
)

How to reduce the image size ?