Jump to content

Recommended Posts

Posted

 

Lee,

Great work.

I work with many blocks and your routine is very helpful.

I have a request:

How apply width and heigh to DCL box?

 

Thanks in advance.

Posted

@scamaru: Is better to start a new discussion in a dedicated thread, than appending to an un-related one.

 

To answer your question, look for width and height dialog attributes. But please keep in mind that those may be overridden by the summated size of defined controls on horizontal, respectively vertical.

TEST : dialog {
width  = 50;
height = 30;
spacer;

ok_cancel;
}

Posted

Hi scamaru,

 

Change Line 144:

 

"; } spacer; ok_cancel;}"

to:

 

"; width = [color=red]50[/color]; height = [color=red]25[/color]; fixed_width = true; fixed_height = true; } spacer; ok_cancel;}"

Change the width and height values (in red) to suit.

Guest kruuger
Posted
Lee,

Thanks for your reply.

I made the change in line 144, as suggested, but did not change the size of box.

 

  (write-line
       (strcat
           "listbox : dialog { label = \""
           title
           "\"; spacer; : list_box { key = \"list\"; multiple_select = "
           (if multiple "true" "false")
            "; width = 150; height = 250; fixed_width = true; fixed_height = true; } spacer; ok_cancel;}"       
       )
       des
  )

 

250 is probably to much. try around 50.

k.

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