Badre Alam
13th September 2002, 14:29
D/Friends
Using BaaN 3GL I have developed a session in which Forms, ListBox, ComboBox is created dynamically and items/values added to the ListBox, even I trapped all the related events with the objects.
How to get the items from ListBox, what I want to know if any items is selected, in its click event or double click event I want to know the text of current selected item.
I tried all the way but could not do so.
Can any one help me out.......
Rgds
Alam Badre
Code that I have used for ListBox creation:
Function Create.ListBox(long hwnd)
{
listbox = Create.Object(DsClistBox, hwnd,
DsNallowMultiSelection, FALSE,
DsNbackground, motif.blue,
DsNforeground, RGB.WHITE,
DsNfocusColor, motif.blue,
DsNminWidth, 80,
DsNeventMask, EVTLISTBOXSELECTMASK,
DsNjustify, DSJUSTIFYLEFT,
DsNselectedId, 5,
DsNborderColor, RGB.WHITE,
DsNborderWidth, 2,
DsNmaxWindowSize, 200,
DsNspace, 0,
DsNx, xpos,
DsNy, 20)
Update.Object(listbox)
:)
Using BaaN 3GL I have developed a session in which Forms, ListBox, ComboBox is created dynamically and items/values added to the ListBox, even I trapped all the related events with the objects.
How to get the items from ListBox, what I want to know if any items is selected, in its click event or double click event I want to know the text of current selected item.
I tried all the way but could not do so.
Can any one help me out.......
Rgds
Alam Badre
Code that I have used for ListBox creation:
Function Create.ListBox(long hwnd)
{
listbox = Create.Object(DsClistBox, hwnd,
DsNallowMultiSelection, FALSE,
DsNbackground, motif.blue,
DsNforeground, RGB.WHITE,
DsNfocusColor, motif.blue,
DsNminWidth, 80,
DsNeventMask, EVTLISTBOXSELECTMASK,
DsNjustify, DSJUSTIFYLEFT,
DsNselectedId, 5,
DsNborderColor, RGB.WHITE,
DsNborderWidth, 2,
DsNmaxWindowSize, 200,
DsNspace, 0,
DsNx, xpos,
DsNy, 20)
Update.Object(listbox)
:)