Properties ListBox an ComboBox

Started by velasquez, October 01, 2013, 05:35:38 AM

Previous topic - Next topic

velasquez

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

thanks,
Velasquez

Fred Tomke

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

ComboBox
ListBox

In multiple selectable listboxes you use SelectItem or SelectString

But maybe you mean something different.
regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

velasquez

Quote from: Fred Tomke on October 01, 2013, 10:52:21 AM
Hi, velasquez, do you mean SetCurSel? Of course, there is:

ComboBox
ListBox

In multiple selectable listboxes you use SelectItem or SelectString

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


velasquez

Quote from: velasquez on October 01, 2013, 11:58:15 AM
Quote from: Fred Tomke on October 01, 2013, 10:52:21 AM
Hi, velasquez, do you mean SetCurSel? Of course, there is:

ComboBox
ListBox

In multiple selectable listboxes you use SelectItem or SelectString

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

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

velasquez

Quote from: Fred Tomke on October 31, 2013, 10:16:14 AM
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