From mint-bounce@lists.fishpool.fi Mon Aug 9 16:02:00 2010 Message-ID: <4C605E6A.701@online.no> Date: Mon, 09 Aug 2010 22:00:42 +0200 From: Jo Even Skarstein User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: Peter Persson CC: "mint@lists.fishpool.fi" Subject: Re: [MiNT] XaAES: Menus in windows vs. menu_tnormal() References: <69CED659-62D4-47DA-B4ED-544AD3E4A682@gmail.com> <4C59BA2E.2070103@online.no> <4C5F16AC.8070204@online.no> <7FEB9705-135B-468D-8283-B4A5E9B9FA29@gmail.com> In-Reply-To: <7FEB9705-135B-468D-8283-B4A5E9B9FA29@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: joska@online.no Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: On 08/09/2010 12:00 AM, Peter Persson wrote: > Sorry, I forgot to reply to this :) Upcoming electronics exam steals 101% of my brain atm. > > I couldn't find a good solution for this, no. A temporary workaround could be to use form_dial() to force a redraw of the menu area, but I haven't been able to do that (either menu_calc() doesn't work the way I want for menu bars, or menu_calc() is broken when using WO0_WCOWORK). So if you have an example which works, I would naturally like to have a peek! form_dial works, I used this before Helmut fixed some bugs in the menu code last year. My Milan is as usual not networked ATM, so I can't send you the actual source files. I can just retype the relevant code here ;-) I did find something interesting though, which is why I've cc'ed this to the list: When I look at the code I see that I'm *not* using menu_tnormal in window menus, but the following code: obj_deselect(o + e->msg[3]); obj_deselect(o + e->msg[4]); wind_set(w->handle, WF_TOOLBAR, NULL, 0, 0); wind_set is the recommended way to redraw the menu widget according to some docs I found (written by Henk I think). I've also made a comment in the code that menu_tnormal doesn't do anything so I manually deselect the items instead. I'm not sure if this is a bug or by design. Helmut? Henk? Anyway, the code above works. Jo Even