This project is read-only.

OOP Menu Submenu Problem

Topics: General
Jul 15, 2014 at 5:09 PM
Using demomenu2.prg as a template to try to create a menu system. I am able to create my own pads and bars within those pads, but failing when it comes to having a bar add another bar for a submenu. Can anybody shed light on this?
Jul 16, 2014 at 12:09 AM
See the AddBar topic under the Class sfbar heading in the help file for details on how to do that (note that you may have to right-click the CHM file and choose Unblock to see the contents).

Jul 16, 2014 at 3:17 AM
Thank you for the prompt reply Doug. I've been looking at the CHM file but still can't seem to solve my problem. I am able to create submenus when I run the code in the CHM file from the AddBar topic in the sfbar class. But when I try to create bars in 'mymenu.scx' class they fail to create submenus. I feel like I am missing something. Sorry to be a pain.
Jul 16, 2014 at 1:21 PM
Please post your code here so I can see what you're doing.
Jul 16, 2014 at 5:01 PM
I decided to build the menu in a prg like the demomenu1.prg sample. It works perfectly. The change forced me to deal with some bad code I have had floating around for a while, which is a good thing.