[progress Communities] [progress Openedge Abl] Forum Post: Oo Structure

  • Thread starter Thread starter DenDuze
  • Start date Start date
Status
Not open for further replies.
D

DenDuze

Guest
I've got a piece of code from the Telerik forum regarding the RadCalendar. I'm trying to re-code that to the Progress Syntax but I always get stuck. Maybe some of you know how to do this. Code from Telerik forum ( http://www.telerik.com/forums/doubleclick-event-cf47c4ae1e1a ) The part that I want to use is: CalendarCellElement cell = ( this .radCalendar1.ElementTree.GetElementAtPoint(e.Location) as CalendarCellElement) But I always get a System.Reflection.AmbiguousMatchException .NET exception. I think that's because there are 2 methods with the same signature and if I understand correctly Progress doesn't support that So I tried to re-code another example: Private Sub radCalendar1_MouseDoubleClick(sender As Object , e As MouseEventArgs) Dim table As CalendarTableElement = DirectCast ( Me .radCalendar1.CalendarElement.CalendarVisualElement, MonthViewElement).TableElement Dim childrenFlags As ChildrenListOptions = ChildrenListOptions.ZOrdered Or ChildrenListOptions.ReverseOrder Or ChildrenListOptions.IncludeOnlyVisible Dim children As List(Of RadElement) = table.GetChildren(childrenFlags).ToList() For Each element As RadElement In children If element.ElementState <> ElementState.Loaded OrElse Not ( TypeOf element Is CalendarCellElement) Then Continue For End If If element.HitTest(e.Location) AndAlso DirectCast (element, CalendarCellElement).[ Date ] <> Nothing Then 'Clicked on CalendarCellElement Console.WriteLine(element) Exit For End If Next I've managed to get the first defines working but I got stuck on the line Dim children As List(Of RadElement) = table.GetChildren(childrenFlags).ToList() How can I code somthing like that in Progress? I can't find the List class, how to make that a list of RadElements and how can I do that ToList? Maybe some of tou have some ideas Regards

Continue reading...
 
Status
Not open for further replies.
Back
Top