Thread View: comp.sys.acorn.tech
2 messages
2 total messages
Started by TMOTA
Sun, 11 Oct 1992 23:15
Mr Iconise, again
Author: TMOTA
Date: Sun, 11 Oct 1992 23:15
Date: Sun, 11 Oct 1992 23:15
44 lines
2451 bytes
2451 bytes
OK. Thanks to the guys at Acorn who helped me out with the Iconise protocol messages. I have just one question: Is pinboard broken, or am I doing something wrong? (It's hard to tell because the instructions for Message_WindowInfo are so unhelpful and vague) I appeal to the techpubs people at Acorn to *please* rewrite the page about iconisation: It is *very* difficult to understand (especially the implied context switches between iconiser and client) I have coded the folowing: On receipt of Messge_WindowInfo, I call Wimp_Poll once to allow the Un-Acked message to get back to Pinboard, thus getting the iconisation to occur. I then send (Wimp_SendMessage,17) a msg_WindowInfo to pinboard, thus getting the correct icon and title. In my attempts to get this working, I have tried *every* combination of message types, acks, etc., and *only* the above seems to work (if I ack, the machine locks up, most of the rest of the time, I get a blank title and the "ic_?" sprite...) The half-way point (without the Wimp_Poll in the middle) is when the title text is correct, and for about 1/10th of a second, the icon is correct, and then the icon is replaced by "ic_?". Arrrgh! So, anyway, I had it working, by using a Wimp_Poll... And then I reset my machine and started it up without my normal boot sequence (i.e. a "blank" RISC OS 3.10 A5000). Hey, presto! It's BROKEN again! It works fine if I boot from my hard drive... Arrrrgh! Why? Has anybody ever actually tested pinboard with an application that supplies sprite names *other* than the same name as the application's taskname? (i.e. taskname = "edit", icon = "ic_edit"; taskname = "dsedit ii", icon = "dsed-1" or "dsed-2" or "dsed-t"?) Help! I'm at my wits end over what must qualify as the simplest message protocol available! Arrrgh! -- _________________ "I'd like to answer this question in two ways: /____ _ _/_ __ First in my normal voice, and then // / //_//_ /_/ in a silly, high-pitched whine." (Monty Python)
Re: Mr Iconise, again
Author: Felix GTi Andrew
Date: Thu, 15 Oct 1992 19:15
Date: Thu, 15 Oct 1992 19:15
25 lines
1469 bytes
1469 bytes
In article <1992Oct11.231546.9456@cs.aukuni.ac.nz> jwil1@cs.aukuni.ac.nz (TMOTA) writes: >OK. Thanks to the guys at Acorn who helped me out with the Iconise protocol >messages. I have just one question: > >Is pinboard broken, or am I doing something wrong? (It's hard to tell because >the instructions for Message_WindowInfo are so unhelpful and vague) Oh thank g*d for that - I thought I was doing something wrong too. Mr Glover kindly sent me information on how to iconise a window. What I want to do is send a window a messge to inform it that its going to be iconised - ie emulate a shift close. It may be much MUCH simpler for me to simply send icon -3 a click message, but I'm not sure how to inform Wimp that the shift key is down. Anyway back to the plot - I tried this send message 17 with action code of 400CC to one of my windows and it never arrives - really odd. Upon return from the SendMessage, R2 is my application task handle so I assume somewhere it got to me, but not in my poll-loop. PLEASE someone, could you tell me how to get this to work! Thanks Felix felixa@microsoft.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads