David,
The problem is that you are not using the Dimension class correctly.
This class has only 2 arguments, not 4. Your passing 0 for nWidth and
nHeight for the first two arguments, effectively making the ListBox
control invisible:
Here is the class definition
Dimension{[<nWidth>], [<nHeight>]}
So, change your code to:
local oDim := Dimension {200,200}
local oList := ListBox{self, 99, Point{10,10}, oDim}
oList:Show(SHOWNORMAL)
IMPORTANT: you are declaring a local oList variable. This should be a
PROTECT oList as ListBox at the window class level so can access it
later on.
Jamal
On 12/15/2022 1:01 PM, David Linda wrote:
I placed the code below in the activate event of a datawindow and I could see no listbox. Then I put the code in the click event of a pushbutton and still no listbox.
local oDim := Dimension {0,0,200,200}
local oList := ListBox{self, 99, Point{10,10},oDim}
oList:Show(SHOWNORMAL)
Thanks,
Dsvid
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)