PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Anonymous on May 02, 2004, 08:35:34 AM

Title: Problem with menu?
Post by: Anonymous on May 02, 2004, 08:35:34 AM
I have discovered what I think could be a bug with the menu creation system.

If you create a menu 1 level deep it works perfectly:

  File
  -->Menu #1A
  -->Menu #1B
  Help
  -->About

However if you then create a submenu (or 2nd level menu) then when the FireFly application is executed the menu does not show on the dialog at all:

  File
  -->Menu #1A
  -->Menu #1B
  ----->Menu #2A
  ----->Menu #2B
  Help
  -->About

In this example the "File" menu refuses to appear at all, until all elements of the 2nd level menu (2A/2B) have been removed using the menu editor.

I assume the menu editor is supposed to work in the same way that the VB menu editor works (it looks pretty much identical).

Andrew
Title: Problem with menu?
Post by: TechSupport on May 02, 2004, 09:04:47 AM
Hi Andrew,

Right you are. Something is happening in the code generation that should not be. I will fix ASAP.
Title: Problem with menu?
Post by: TechSupport on May 02, 2004, 06:40:51 PM
This problem only seems to occur when the 2nd level menu is the last item in the menu list.

For example, this should compile:

File
-->Menu #1A
-->Menu #1B
----->Menu #2A
----->Menu #2B
-->Exit
Help
-->About

Nonetheless, I need to fix this behaviour.
Title: Problem with menu?
Post by: David Martin on May 02, 2004, 10:07:51 PM
Thought I would give this a run through and came up with this:

File
--> Open
--> New
--> --> NewA
--> --> NewB
Edit
Search

Gave me only Edit & Search menus ... no File menu.

But this:

File
--> Open
--> New
--> --> NewA
--> --> NewB

Correctly gave me a file menu with two options and the New option had a submenu with NewA & NewB options on it.

David
Title: Problem with menu?
Post by: Anonymous on May 03, 2004, 03:39:49 AM
That's exactly the behaviour I spotted David. Took me a little while to figure out what was going wrong :)

Andrew