No the library should not care about the are actually handled in the LCL interface object for the implemented toolkit.
Cliff Baeseman

Mailing lists / lazarus / 2000-05
5 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
No the library should not care about the are actually handled in the LCL interface object for the implemented toolkit.
Cliff Baeseman
Does it has a need to validate if the message realy could be apply to the asked widget? If so What would be done in case of bad message?
Vital Tremblay
That sounds like a reasonable way to handle it just remember that I believe the window handle is a long integer inside the lcl so we need a int or long int to reference the instance.
As for finishing it or adding to it, I cannot deal with it at the moment. I have to finish the lfm read and write routines and then I can maybe help you out some. End of the week at the earliest.
Cliff
I would suggest another way of managing the handle. Instead of using the index in the list, we could use the pointer of the instance of the wrapper class (TWidgetObject) which is any way the instance that we will need to find by is index. We then get direct access to the instance without the need to retrieve it from the list. This is not a great deal but that would prevent the mess when some object will be deleted from the list resulting in a shifted index. So the index will be out of sync.
Those that make sence.
By the way Cliff, Do you relay on my to finish this work now or you have to complete it somehow before I get involve?
Vital Tremblay