Browsing this Thread:
1 Anonymous Users
|
Re: MUI list behavior
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
magorium wrote: MUIM_List_CreateImage() and MUIM_List_DestroyImage() marked as being for internal use only.
Posted on: 2015/8/29 8:35
|
|||
|
||||
|
Re: MUI list behavior
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
It was not firing at all for me.
Posted on: 2015/8/15 6:35
|
|||
|
||||
|
Re: MUI list behavior
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Quote:
I will work on fixing this. migario: the notification is not firing or is firing with wrong value?
Posted on: 2015/8/15 5:43
|
|||
|
Krzysztof
"There is no such thing as software for free. If it is not the user who covers the cost of software creation with money, it is the developer who covers this cost with his own free time." www.aros3d.org www.twitter.com/ddeadwood |
||||
|
||||
|
Re: MUI list behavior
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
Ah ok. Thank you for that as i didn't realize that. Quote:
Language semantics ? Differences in interpretation of what is written ? It appears Stefan was aware of the difference between should and must (and also *must*) when he wrote the MUI documentation. In the documentation you refer to, I was expecting to read the word must if it should have been must. In my interpretation he meant to say: you really should subclass here, but hey if you want to do otherwise, have fun ! (As in a suggestion.with an exclamation mark to make the statement a bit more powerfull) That's why i verified what was written and to make sure i understood the words being written. I am allowed to do as i do in my code on classic. I understand this to be no guarantee that my code is correct, only that my code shows that the behavior differs (whether that's wanted or not). Sub-classing would just hide the difference in behavior ? I do understand the reason behind the suggestion to subclass there, as it is the only sane way to make sure your images get created and destroyed at the exact locations where these images should be created and destroyed. Although i understand the following to be ridiculous (and i am not 100% sure it is the reason, but i did not get an answer to my question as of why, so i can only guess), it hopefully states my point further: If the Zune list class, as currently implemented, can act so intelligent and 'preserves' resources automatically for me when the application iconifies (BTW: something that the MUI autodocs state i should do manually), then why does the implementation not automatically (re)create the images for me as well ? (when not sub-classing that is) Please don't let the ridiculousness of the above statement throw you off. I strongly believe in my point of view, not only because it appears to work on classic (and i still haven't heard it did not work on MorphOS), but also because current Zune implementation lets you add images with MUIM_List_CreateImage and the list class will happily accept and display the images. It also let's you happily use MUIM_List_DestroyImage, but only _as long as you don't iconfiy the application_. Besides that, classic shows me that the obtained pointer of MUIM_List_CreateImage is valid during the whole duration of the program. Is that still the case if i would subclass the way as was suggested ? Of course you are more then valid to point me to the MUI autodocs and tell me that i'm doing it wrong, but in that case it appears that we disagree on this matter ![]() Quote:
Correct. See also question in my first post.
Posted on: 2015/8/15 4:29
|
|||
|
||||
|
Re: MUI list behavior
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Quote:
Correct. However, it was fixed in ABIv1 in SVN r50292 (2015-04-07), but is now broken again. The docs for the CreateImage method state that it has to be used in the Setup method of your list, which implies that you need to create a List subclass. It doesn't appear that you have done this.
Posted on: 2015/8/15 2:32
|
|||
|
||||
|
Re: MUI list behavior
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
It's not that i can't take any pictures, just that a crash window does not add anything useful to what i've already shown and that this board still does not let me add any pictures. Besides that, i was not at home. Quote:
It's at least broken in latest icaros desktop. But, in the case you think it will help ![]() This picture shows my application running ![]() This picture shows the application in iconified state, after i pressed the zoom button ![]() This spicture is when i try to return the application from iconified state by pressing twice on the AppIcon from the workbench. This is the crashlog it produced
intuition.decor: offsets titleobj = 548, menuobj = 552, winobj = 556
The following material is from the same app as above but modified, where i don't display the images in the displayloop, but i do create the images on startup (like in previous app-version, just after the window has opened without any data in it) and remove the images with MUIM_List_DeleteImage just before the window closes (also like in the previous version). It I also added some extra output. The first set of images is when i don't iconfiy my application -> no crash, can exit normally This picture shows my application running ![]() This picture show me exiting the application without problems ![]() This set if images is more interesting and is made when i iconify the application (and note that i dont display the created images at all). This picture shows my application running ![]() This picture shows the application in iconified state, after i pressed the zoom button ![]() This picture shows when i de-iconified my application. Note that it didn't crash (but that i also don't refer to the images in the displayloop here) ![]() This picture show what happens when i try to exit my application ![]() This is the craslog it produced.
intuition.decor: offsets titleobj = 548, menuobj = 552, winobj = 556
Please feel free to let me know if more information or sources/executables/pictures or something else is needed.
Posted on: 2015/8/14 20:04
|
|||
|
||||
|
Re: MUI list behavior
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
TBH, I can't understand why you can't get a screenshot of what's going wrong (even if it has to be from a digital camera rather than the screengrabber app).
Handling of MUIA_Listview_ClickColumn does seem to be broken since the recent List class changes, as can be seen in the List -> Multicolumn tab in Tests/Zune/Test.
Posted on: 2015/8/14 15:25
|
|||
|
||||
|
Re: MUI list behavior
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Hmz,
the code crashes, so i fear that a screen-shot won't be very helpful (as i already know what's happening). But, you can check it yourself if that would help. Link with source-code (pascal) and executables for AROS-i386 and Amiga m68k (020). Every time you return the application from iconification, it seems the image pointers are being destroyed (or at least are not valid anymore as my list display hook crashes). In a test app here, and if i remove the reference to the text-macro-pointer of the image in the list display hook, then things work ok, until i exit the application, in which case the application crashes when the subroutine CheckBoxes_RemoveImagesFromList() is being invoked, in particular when the meta dispatcher calls the list dispatcher and List_MUIM_DeleteImage is being called. All encountered behavior seems to suggest the image-pointers were rendered invalid after returning from iconify state. PS: I forgot. In the case you are spending time on this, could you perhaps also take a look at why the MUIA_Listview_ClickColumn attribute notification isn't firing with MUIV_TriggerValue when attached to a List Object ?
DoMethod (ThisListObject, MUIM_Notify,
Works for classic, reported to work for MorphOS, not working for AROS.
Posted on: 2015/8/14 5:51
Edited by magorium on 2015/8/14 8:17:08
|
|||
|
||||
|
Re: MUI list behavior
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Can you paste a screen shot of what you describe?
Posted on: 2015/8/14 5:29
|
|||
|
Krzysztof
"There is no such thing as software for free. If it is not the user who covers the cost of software creation with money, it is the developer who covers this cost with his own free time." www.aros3d.org www.twitter.com/ddeadwood |
||||
|
||||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.
















