Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8231715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:35:18+00:00 2026-06-07T17:35:18+00:00

I am trying to use SlidingMenuGrid code inside my app and changing a bit

  • 0

I am trying to use SlidingMenuGrid code inside my app and changing a bit the beahaviour. The thing is I am a bit stuck. In Brandon Reynolds’s blog you can find a sample project with the menu which is great. I am very greatful to him for sharing his useful code.

What I want to achieve is a sliding menu where not only the image item can be touched but also an image representing a button with the option to buy the product (or more buttons – example BUY/SELL – USE/STOP USING etc.. RPG Style). In the image below I used a menu item with text but in the final version I will want to use a Menu item with sprite.

SlidingMenuGrid works by accepting an array of CCMenuItemSprite and the API allows to set the display type, nr of columns and rows.

I have tried adding a CCMenu with a selector in the CCLayer where I also add the SlidingMenuGrid instance but unfortunately, even if I enable touches, the selector is never called when clicking on it.

I think that what is happening is that SlidingMenuGrid swallows all touches. I tried to modify it but I don’t really understand the code and I was trying to find a simpler and easier solution (e.g. by adding a menu item on the Layer instead of playing with SlidingMenuGrid).

Any ideas or suggestions?

That's what I want to achieve - more or less

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:35:20+00:00Added an answer on June 7, 2026 at 5:35 pm

    Some previous users have mentioned that they have added a “Back” button to the system by placing it on another layer and setting the menugrid to not swallow touches. I have not tested this but I would think it should work..

    [[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:INT_MIN+1 swallowsTouches:NO]

    See the rest of the comments on the post on my blog for maybe some further information.

    -Brandon Reynolds

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying use a Java Uploader in a ROR app (for its ease
trying to use hibernate with my web app and getting following exception: Initial SessionFactory
trying to use the preferred on method call but the code is not working
I'm working with VS2010 express on Win7 (64 bit) and I'm trying use System.ServiceModel
Trying to use Java's regexp I want to match /app, /app/.* , but not
I am trying use the onClick() function in an activity for an android app.
I was trying use the code shown below to plot in such a way
I'm trying use this code to get image resolution from file bool GetImageSizeEx(const char
I'm trying use a UIScrollview inclined 350 degrees, the first thing I thought was
i'm trying use facebook API to upload photo in my fan page. I downloaded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.