BBC BASIC for Windows
« Error in manual »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:08pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Error in manual  (Read 1271 times)
KenDown
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 181
xx Re: Error in manual
« Reply #10 on: Feb 10th, 2014, 10:01pm »

Andy, thanks. You've given the correct version of the call SYS"DrawMenuBar" and now the menu items are greyed out. However your fancy procedure simply toggles the state and doesn't show what the state is.

The menu items are greyed out and unresponsive when I set the flag to 1 and are not greyed out and do respond when I set the flag to 0. That is as I stated originally and contrary to what the manual states.

You try it with the small program I posted above - though add the SYS"DrawMenuBar",@hwnd% to make the gray appear.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Error in manual
« Reply #11 on: Feb 10th, 2014, 10:11pm »

on Feb 10th, 2014, 10:01pm, KenDown wrote:
Andy, thanks. You've given the correct version of the call SYS"DrawMenuBar"

I'm confused. The only message I can see drawing attention to the correct API is the one I posted a few minutes ago.

Quote:
The menu items are greyed out and unresponsive when I set the flag to 1 and are not greyed out and do respond when I set the flag to 0. That is as I stated originally and contrary to what the manual states.

Here is an exact quote from the BB4W manual: "the third parameter is 0 to enable the item and 1 to disable the item (and change it to grey to indicate that it is disabled)":

http://www.bbcbasic.co.uk/bbcwin/manual/bbcwine.html#enablemenuitem

How is that "contrary" to your own findings?

Richard.
« Last Edit: Feb 10th, 2014, 10:32pm by admin » User IP Logged

KenDown
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 181
xx Re: Error in manual
« Reply #12 on: Feb 11th, 2014, 04:53am »

Grrrrr.

1. Someone called S. Bracken posted that the call was SYS"DrawMenu", and both you and Andy gave the correct version. I'm not blaming S. It's all too easy to make such a slip, particularly if you're working from memory.

2. You are absolutely right. The manual does state what I have found. I must be getting old, as I was sure that what I was doing was contrary to the manual - reread it multiple times to work out what I was doing wrong. Bah!

Apologies all round for raising a storm in a teacup (might as well, there's storms everywhere else this week). Possibly, if you felt like it, a reference to SYS"DrawMenuBar" might be useful on that page, as I don't recall ever coming across that call before.
User IP Logged

sbracken
New Member
Image


member is offline

Avatar




PM


Posts: 19
xx Re: Error in manual
« Reply #13 on: Feb 11th, 2014, 3:44pm »

Hi Ken,

Sorry about the mistake. Serves me right for not double checking my facts before posting! Hopefully I did not add too much to your confusion!

Simon

User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls