Questions tagged [ccscrollview]

18 questions
2
votes
1 answer

Cocos2D v3 CCTableView not scrolling

I am trying to use a CCTableView in my game. You should be able to scroll through a list of names. I am able to click on a cell and log the which cell was clicked. However when I try to scroll there is no movement. @interface…
Asdrubal
  • 2,421
  • 4
  • 29
  • 37
1
vote
0 answers

Visual C++ MFC CScrollView: caret stops flashing

My English is not perfect. I am using Visual C++ 2019 16.9.3 Community Edition with MFC, AMD64 Release. Single-document and multiple-document programs are concerned so. Example program: a single-document program. Base of View class is…
1
vote
1 answer

CScrollView only scrolls through parts of a large area

I encountered a problem scrolling large areas in a CScrollView. When slowly moving the scrollbar from top to bottom the behaviour is the following: At first the scrolling is working fine. At some point scrolling further does not do anything, instead…
sietschie
  • 7,425
  • 3
  • 33
  • 54
1
vote
1 answer

cocos2d-objc v3.4.9 CCScrollView problems after migrating to Xcode7, iOS9

After updating cocos2d-objc project to Xcode7, iOS9 I have got my CCScrollView instances broken. Tap and pan gestures aren't recognized + xcode throws console warning WARNING: A Gesture recognizer (; target= <(action=handleTap:, target=)>>) was…
duganets
  • 1,853
  • 5
  • 20
  • 31
1
vote
1 answer

Getting position of a touch in a CCScrollview

I have a scrollview at one side of the screen filled with CCSprites and I want to be able to drag one of them into the main area of the screen. I just need to find which Sprite the user started dragging on. I have tried to move the Touch location…
Conor
  • 1,007
  • 1
  • 10
  • 16
1
vote
1 answer

Cocos2d-x V3.0 scrollview usage

How to include and use ScrollView in Cocos2d-x project? By simply writing #include "CCScrollView.h" is not helping & generates compilation issues for both iOS & Android? (Haven't checked for other platforms) Can someone help me how to include…
sagarkothari
  • 24,520
  • 50
  • 165
  • 235
1
vote
2 answers

How to stop scrolling animation of CCScrollView object in cocos2d v3

In my cocos2d v3 app for iOS I ran into misunderstanding of how to stop scrolling animation of CCScrollView object. I have tried some combinations of calls to its methods with no success, like [_scrollView…
duganets
  • 1,853
  • 5
  • 20
  • 31
1
vote
1 answer

scrollbars of a CScrollView in a CDockablePane are disabled

I've designed a toolbox control. It's inside a CDockablePane object. Since the tools inside it may need to be scrolled, I've created a CScrollView as a child of the pane and have inserted the tools inside it as children. Based on the pane size,…
hamidi
  • 1,611
  • 1
  • 15
  • 28
1
vote
0 answers

CCScrollView content is still showing out of the bounds of the scrollview?

I have started making a game using SpriteBuilder and Xcode, and everything is going fine. But then I wanted to add a stats page in the game, and wanted some kind of scrollview. So i dragged in a CCScrollView (in Spritebuilder). And it scrolls just…
1
vote
1 answer

Spritebuilder and CCScrollView, page indicators not showing up?

I'm using Spritebuilder to make my game, and CCScrollView usually saves me quite a bit of time. I'm trying to implement the scroll view much in the same way as the home screen on an iphone uses the UIScrollView. I want the page indicators to be…
spaderdabomb
  • 942
  • 12
  • 28
1
vote
1 answer

cocos2d-x CCScrollview children not affected by anchor points?

I am creating a CCScrollview in my app scrollView = CCScrollView::create(); scrollView->retain(); scrollView->setViewSize(CCSize(size.width,size.height - 100)); scrollView->setContentSize(CCSize(size.width,1000)); scrollView->setDirection(…
Sean Wagner
  • 121
  • 1
  • 2
  • 9
0
votes
0 answers

CCScrollview not working

I am using Sprite Builder and created a scrollview to create selection of players list in stripe which can be scrolled horizontally. PlayerListContainer.ccb:Scrollview Container Taken a scroll view of width: 300, height: 320 with Horizontal…
Paresh Thakor
  • 1,795
  • 2
  • 27
  • 47
0
votes
1 answer

cocos2d-x 2.x CCScrollView getContentOffset always return Y is 0 when rescroll

I use 2.x cocos2d-x. And I use CCScrollView. I create new CCLayer extended class and, add CCScrollView on the instance. When I am scrolling, and I try to scroll again. getContentOffset always show Y is 0. void MyClass::scrollViewDidScroll( enter…
shinriyo
  • 344
  • 3
  • 17
0
votes
1 answer

CCScrollView returns one children

I am working on cocos2dx 3.0, and working on cocos2d::extension::ScrollView, getting a strange problem, is the scrollview doesn't return all the Nodes added to it, just returns one child, that too a different one.. See my code below void…
iphonic
  • 12,615
  • 7
  • 60
  • 107
0
votes
1 answer

How can I control the size of a CCScrollView?

When using a CCScrollView I would like to be able to limit the viewable area to a certain bounding box. How can this be achieved? Setting the content size does not affect the viewable area.
Grant Cermak
  • 1,808
  • 1
  • 19
  • 23
1
2