From mint-bounce@lists.fishpool.fi Wed Mar 12 04:27:55 2008 Date: Wed, 12 Mar 2008 09:22:10 +0100 (MET) From: Jo Even Skarstein To: Message-ID: <23315756.140311205310130274.JavaMail.adm-moff@moffice3.nsc.no> Subject: [MiNT] Menus in windows in XaAES MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_14167_12744764.1205310130269" X-Priority: 3 (Normal) X-Mailer: Mobile Office v1.44 (Telenor Nordic) 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: ------=_Part_14167_12744764.1205310130269 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit I've been experimenting with menu bars in windows in XaAES, using the dialtest.c example by Henk as reference. I can easily attach a menu using wind_set/handle, WF_MENU, object), and I also receive correct MN_SELECTED-messages. The problem is how to redraw the menu bar after an item has been selected? menu_tnormal() doesn't work, and Henk's sample code doesn't do any redrawing at all. Any suggestions on how to do this? I've tried redrawing the menu widget using wind_set(handle, WF_TOOLBAR, menuobj, 0, 0), and while this indeed redraws the menu it causes other problems. These might be related to the fact that I don't have a TOOLBAR in this window. Jo Even ------=_Part_14167_12744764.1205310130269--