Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

listbox initial_focus question

3 REPLIES 3
Reply
Message 1 of 4
lorier
180 Views, 3 Replies

listbox initial_focus question

hello, how do i modify the dcl below so that the first list member is selected? or is that possible? the list is filled in later.
thanks in advance.

select_sites : dialog {
label = "Site Volume Librarian";
:row {
:column {
:list_box { width = 20; height = 15; fixed_width = true; key = "1"; label = "Select site: "; value = " "; allow_accept = false; list = ""; multiple_select = false; }
}
:column {
fixed_width=true;
width=20;
:column {
fixed_height=true;
spacer;
spacer;
: button { label = "Select All"; key = "2"; }
: button { label = "Clear All"; key = "3"; }
}
spacer;
}
}
ok_cancel_help;
errtile;
}
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: lorier

I think you can add:
value = "0";
to the tile definition.

--
John Uhden, Cadlantic/formerly CADvantage
http://www.cadlantic.com
Sea Girt, NJ

"lorier" wrote in message news:f141bd7.-1@WebX.maYIadrTaRb...
> hello, how do i modify the dcl below so that the first list member is
selected? or is that possible? the list is filled in later.
> thanks in advance.
> select_sites : dialog {
> label = "Site Volume Librarian";
> :row {
> :column {
> :list_box { width = 20; height = 15; fixed_width = true; key = "1";
label = "Select site: "; value = " "; allow_accept = false; list = "";
multiple_select = false; }
> }
> :column {
> fixed_width=true;
> width=20;
> :column {
> fixed_height=true;
> spacer;
> spacer;
> : button { label = "Select All"; key = "2"; }
> : button { label = "Clear All"; key = "3"; }
> }
> spacer;
> }
> }
> ok_cancel_help;
> errtile;
> }
>
Message 3 of 4
lorier
in reply to: lorier

please excuse my dcl ignorance, but i don't have access to the application that loads the dcl, Is that where the tile definition would go?
Message 4 of 4
Anonymous
in reply to: lorier

You don't necessarily need access to the application.
Make a backup of the current DCL file, and replace its contents with the
following that I cleaned up a little because of word-wrap. Unless the
application's dialog is defined internally, this should work.

select_sites : dialog {
label = "Site Volume Librarian";
: row {
: column {
: list_box {
width = 20;
height = 15;
fixed_width = true;
key = "1";
label = "Select site: ";
//=====================
// Set the value to "0"
// to focus on the first item...
//=====================
value = "0";
allow_accept = false;
list = "";
multiple_select = false;
}
}
: column {
fixed_width=true;
width=20;
: column {
fixed_height=true;
spacer;
spacer;
: button {
label = "Select All";
key = "2";
}
: button {
label = "Clear All";
key = "3";
}
}
spacer;
}
}
ok_cancel_help;
errtile;
}

--
John Uhden, Cadlantic/formerly CADvantage
http://www.cadlantic.com
Sea Girt, NJ

"lorier" wrote in message news:f141bd7.1@WebX.maYIadrTaRb...
> please excuse my dcl ignorance, but i don't have access to the application
that loads the dcl, Is that where the tile definition would go?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost