Jump to content

Recommended Posts

Posted

hi,all

is there any way to set the font color of edit_box by property in dcl ?

for codes below:

by default,the font color is black,how can I change it to red?thanks.

toleranc : dialog {
          label = "toleranceediton";
          : boxed_column {
            label = "tolerance";
              : edit_box {
                label = "uppertolerance";
                key   = "dimtp";
                edit_width = 8;
              }
              : edit_box {
                label = "downtolerance";
                key   = "dimtm";
                edit_width = 8;
              }
              spacer_1;
          }
          : button {
            label = "restore";
            key   = "comeback";
          }
   spacer;
   ok_cancel;
}

Posted

I don't think you can with standard DCL, take a look here and perhaps try OpenDCL:

http://www.cadtutor.net/forum/showthread.php?52498-Mode-less-dcl-dialog&p=355722&viewfull=1#post355722

Posted

I thought it probably wouldn't work but I figure its worth the try. There's some really cool things on his site.

Posted

Lee,

I wanted to ask and I'll probably will start a new thread so this doesn't get confusing. How do you figure out the vector_image #'s? I used terry's program but it seems it doesn't get all of the objects I select.

 

This is quite the dcl morning!

Posted

The vector images numbers are the coordinates of the vector start/end x/y values, relative to the dialog box tile coordinate system.

 

([color=blue][b]vector_image[/b][/color] [color=green][b]x1 [color=red]y1[/color] x2 [color=red]y2[/color] [color=purple]colour[/color][/b][/color])

Hence all objects must be approximated by a series of vectors and the coordinates of the endpoints of such vectors translated relative the the dialog tile in which the origin is the top left corner.

 

You can also get the dimensions of the tile so that you know the viewing limits of the tile coordinate system using dimx_tile and dimy_tile. With this information you can scale the coordinates of your objects to fit within the tile.

 

There are quite a few program out there that will calculate the vectors, Terry's being one of them. I've also written one that gives me a little extra control over the alignment of the image in the tile.

 

Lee

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...