Properties ListBox an ComboBox

Started by velasquez · 2013-10-01 12:35 UTC · 5 replies · SMF topic #2034

I have not seen in the properties of the ListBox and ComboBox something like "SecurSel".
Is there something that works like this?

thanks,
Velasquez
Hi, velasquez, do you mean SetCurSel? Of course, there is:

{2}
{2}

In multiple selectable listboxes you use {2} or {2}

But maybe you mean something different.
regards, Fred
author=Fred Tomke link=topic=2034.msg10044#msg10044 date=1380649941 wrote:
Hi, velasquez, do you mean SetCurSel? Of course, there is:

{2}
{2}

In multiple selectable listboxes you use {2} or {2}

But maybe you mean something different.
regards, Fred


Hi Fred,
I was looking at (dcl_Control_GetProperties Project1_Tes_ListBoxDN)
and (dcl_Control_GetProperties Project1_Tes_ComboBoxDN).
This would be good to work with mapcar.
regards, Velasquez

author=velasquez link=topic=2034.msg10045#msg10045 date=1380653895 wrote:
[quote author=Fred Tomke link=topic=2034.msg10044#msg10044 date=1380649941]
Hi, velasquez, do you mean SetCurSel? Of course, there is:

{2}
{2}

In multiple selectable listboxes you use {2} or {2}

But maybe you mean something different.
regards, Fred


Hi Fred,
I was looking at (dcl_Control_GetProperties Project1_Tes_ListBoxDN)
and (dcl_Control_GetProperties Project1_Tes_ComboBoxDN).
This would be good to work with mapcar.
regards, Velasquez


Hi Fred,
Do you think I can ask this property as a new item for (dcl_Control_GetProperties. ..

Regards, Velasquez
Hi, Sorry, but I didn't quite understand your needs. If you want to get the currently selected item(s) them. you have to call the method. That's why you can't set or get it using dcl_set_properties.
Fred
author=Fred Tomke link=topic=2034.msg10136#msg10136 date=1383239774 wrote:
Hi, Sorry, but I didn't quite understand your needs. If you want to get the currently selected item(s) them. you have to call the method. That's why you can't set or get it using dcl_set_properties.
Fred


Ok Fred,
I wanted to work with something like:

(mapcar '(lambda (x)
          (dcl_Control_SetProperty x "SelectedItem" 2)
        ) ;_ fim de lambda
        (list DuctilCAD_Juncoes_ListBoxDN
              DuctilCAD_Juncoes_ComboBoxDN
              DuctilCAD_Juncoes_ListBoxDN-1
              DuctilCAD_Juncoes_ComboBoxDN-2
        ) ;_ fim de list
) ;_ fim de mapcar

Thanks
velasquez