[Freemint-list] Remove a window menubar
J. F. Lemaire
jflemaire at skynet.be
Sun Oct 2 13:57:31 MSD 2016
On 1 October 2016 at 14:44, Helmut Karlowski <helmut.karlowski at ish.de> wrote:
> Am 01.10.2016, 11:41 Uhr, schrieb Jean-François Lemaire:
>
>> I'm wondering if it's at all possible to remove a menubar attached to a
>> window with
>> win_set(handle, WF_MENU, ...);
[ ...]
>> I tried
>> wind_set(handle, WF_MENU, NULL, NULL,...);
>>
>> but NULL pointers are not accepted parameters. So it doesn't seem to be
>> possible -- unless there's a new feature I'm missing.
>
> Maybe it wants short-0 not NULL?
>
> wind_set(handle, WF_MENU, 0, 0,...);
Yes, that's it! Thanks for taking the time to look into this, Helmut.
I always thought that NULL was basically equivalent to zero. But you
learn something new every day.
Cheers,
JFL
--
Jean-François Lemaire
More information about the Freemint-list
mailing list