Comments (3)
Reason why the TextInputField doesn't work is because it doesn't get keypressed events. You can set up the event listeners for TextInputField by calling setup() or setUseListeners(true) on it upon creation in ofxTLFlags.cpp 185-189. However this leads to problems in deleting flags as the TextInputField in the just deleted flag sometimes reacts to the delete key even if you disable the listeners again upon deletion. I ended up fixing it by simply passing the keypressed args of the flag to the TextInputField when editing.
ofxTLFlags.cpp 168-184
void ofxTLFlags::keyPressed(ofKeyEventArgs& args){
if(enteringText){
//enter key submits the values
//This could be done be responding to the event from the text field itself...
if(args.key == OF_KEY_RETURN){
enteringText = false;
timeline->dismissedModalContent();
timeline->flagTrackModified(this);
}
clickedTextField->textField.keyPressed(args); // <-- Line I added to pass the key args to the TextInputField
}
//normal behavior for nudging and deleting and stuff
else{
ofxTLBangs::keyPressed(args);
}
}
from ofxtimeline.
I've been having problems getting it to build with openAL32.dll, but two problems you mentioned I seemed to fix by
- changing getCocoaWindow() to getWin32Window()
- using a past version of ofxTimeline (before it was changed 5 mo ago to accommodate changes in ofxTextInputField)
from ofxtimeline.
Where would I get this "latest" version of ofxTextInputField? Can't seem to find it anywhere.
//Edit: I actually have it. However I can't type in text for Flags. Tried ofxTextInputField on its own and it works. I looked a the commits for updating ofxTimeline towards the latest version of ofxTextInputField and I can't see why it wouldn't work.
from ofxtimeline.
Related Issues (20)
- build failed on linux with g++ 4.8 HOT 2
- Current addon_config.mk settings do not work with Project Generator
- Broken video track examples - TIMELINE_VIDEO_INCLUDED HOT 1
- ofxTLAudioTrack duration limitation.
- Issue with hotkeys implementation on Raspberry Pi HOT 5
- Compile errors on OSX XCode 6 HOT 1
- example files with videos don't work.
- Can't draw anywhere other than (0, 0) HOT 4
- Switch events 'stuck' on
- What does <value> tag represent in the Flags XML?
- What does <value> tag represent in the Flags XML?
- README.md missing pictures
- ofxTimeline addon not working HOT 1
- 'void ofThread::startThread(bool, bool)' is deprecated
- Some methods that possibly no longer exist?
- can't compile any example on 0.9.3 OSX... HOT 2
- ofxTween is deprecated
- Needs Updates for 0.10 HOT 1
- Update and others... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxtimeline.