PIP button PlayBook?
I'm developing a simple application for the Playbook that has a lot of buttons. In the Simulator, a button works only when you press on the lower part of the 1/4 of it. All other buttons have a similar code, and work very well. Also, when I change the coordinates of the button screen, it works normally again. Is it a small problem with the SDK, or is it possible that I am doing something wrong?
Hey,.
found the problem. from the looks of it your TextField object interferes with the key. because it is added last (hight z position) his blocking you to use your button. your button starts at x =580 and your textfield takes the pixels between x =100 at x =700. It covers the button to x =580 at x =680.
I changed the width of the textfield 400 so it takes only 100 -> 500pixels. Here's the change with the change of "BOLD":
package{ import flash.display.Sprite; import flash.events.MouseEvent; import flash.text.TextField; import flash.text.TextFormat; import qnx.ui.buttons.LabelButton; [SWF(width="1024", height="600", backgroundColor="#111111", frameRate="30")] public class Test extends Sprite { public function Test() { var decimalUsed:Boolean = false; var format:TextFormat = new TextFormat(); format.color = 0xFFFFFF; format.size = 72; var text:TextField = new TextField(); text.text = ""; text.x = 100; text.y = 100; text.width = 400; text.height = 100; text.setTextFormat(format); var lblButton1:LabelButton = new LabelButton(); lblButton1.x = 580; lblButton1.y = 120; lblButton1.width = 100; lblButton1.height = 110; lblButton1.label = "1"; lblButton1.addEventListener(MouseEvent.CLICK, add1); var lblButton2:LabelButton = new LabelButton(); lblButton2.x = 690; lblButton2.y = 120; lblButton2.width = 100; lblButton2.height = 110; lblButton2.label = "2"; lblButton2.addEventListener(MouseEvent.CLICK, add2); var lblButton3:LabelButton = new LabelButton(); lblButton3.x = 800; lblButton3.y = 120; lblButton3.width = 100; lblButton3.height = 110; lblButton3.label = "3"; lblButton3.addEventListener(MouseEvent.CLICK, add3); var Backspace:LabelButton = new LabelButton(); Backspace.x = 910; Backspace.y = 120; Backspace.width = 100; Backspace.height = 110; Backspace.label = "0) { if (text.text.charAt(text.text.length - 1) == ".") { decimalUsed = false; } text.text = text.text.substr(0, text.text.length - 1); text.setTextFormat(format); } } function add4():void{ text.appendText("4"); text.setTextFormat(format); } function add5():void{ text.appendText("5"); text.setTextFormat(format); } function add6():void{ text.appendText("6"); text.setTextFormat(format); } function clear():void{ text.text = ""; text.setTextFormat(format); decimalUsed = false; } function add7():void{ text.appendText("7"); text.setTextFormat(format); } function add8():void{ text.appendText("8"); text.setTextFormat(format); } function add9():void{ text.appendText("9"); text.setTextFormat(format); } function enter():void{ //enter } function decimal():void{ if (!decimalUsed) { text.appendText("."); text.setTextFormat(format); decimalUsed = true; } } function add0():void{ text.appendText("0"); text.setTextFormat(format); } function minus():void{ if (text.text.length == 0) { text.appendText("-"); } text.setTextFormat(format); } } }}
hope that helps. Good luck!
Tags: BlackBerry Developers
Similar Questions
-
PIP button notification center
Today, after re - install El capitan on my macbook pro (late 2011), I found this notification Center has some graphical glitch.
The buttons have a very large border outside... no idea on how to solve this problem? It is not a big problem but it's boring.
It is not a graphic bug
System Preferences > keyboard > shortcuts:
Clicking on the button "text boxes and lists only", will remove the great frontier.
But, the disadvantage of the selection of this preference, you lose the ability to use the Tab key to move focus to all controls.
-
I have a Sony Trinitron KV27XBR15 mfg nov 1990 with a distance of RM762. I have a black box in the lower left of my screen and want to remove it.
Hi mikey9001,
Welcome to the community of Sony!
Thank you for your message. Regarding your concern, try and locate the PIP button on your remote control. If found, press one time and check if the black box disappears. Another option is the button on the TV itself, you can also press and hold the multi-PICTURE then check if disables the PIP function.
Let me know how it goes.
If my post answered your question, please click on the button "accept as Solution" under my message.
Kind regards
-
There is no button 'Buy' the world of BB for Playbook
Hello!
I'm always panic when a new client contacted me because he can't install my application on Playbook because there is no button 'buy' on my app on App World detail. He said he spent an hour by telephone with customer without a solution guys.
So, I tried...
I got different results. My first is, with the language in englisg... There is no buy"" button.
Then I changed my Playbook language to Spanish, the button is there:
Changed to the french, with again the button:
German now... No button:
Italian, no button:
Spanish again and... any key now!
Then... Why is this happening? Users are not be able to buy app!.
For all customers affected by this problem, direct them to BlackBerry support to report the problem.
The following KB explains the process:
This should not be something sellers/devs have to manage since it relates to a bug in the BlackBerry World client.
-
No button back for Playbook and Z10
My request of WebWorks HTML5 for Playbook and Z10 occasionally open external web pages and at least in the Playbook there no back button during the display of the external web pages. How can I add a "back" button? I spent a few hours looking for solutions, without success. I looked at bbUI.js, but it seems not able to add a "back button" while looking at an external pages - unless I'm mistaken.
Any suggestions?
Bb10, your solution is childBrowser: https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/childBrowser
-
HTML buttons not senstive to the touch in Playbook
Hello
I have a Playbook WebWorks app with style with CSS buttons using images. I have a problem with the key sensitveness with these buttons. Navigation does not always work when a button is tapped. Everyone around here with similar problems? Please let me know. Also I would like to know if there is a solution to this.
Thanks in advance
Praveen
Finally found a solution for the issue.
Its better to use ontouchstart oronmousedown instead ofonclickto the button action.
-
Smartphones from blackBerry PlayBook: back button after download starts
I found something embarrassing in the App World App on the PlayBook: when you start to download an application, open the list of installed applications, but there is no back button to go back to the app I just downloaded (or to the category, the app was in). So now I must get back to the categories and go to the sub-category (if I remember) and scroll down to where I stopped.
Would be nice if the PlayBook AppWorld App Team could add a button like this
This problem has been fixed with OS 1.0.5.
-
PlayBook Simulator - menu button equivalent?
Hello
I am having trouble finding which is the equivalent to the key "Menu" Android, when using the Simulator. Anyone know?
Have you tried to top of screen 'low blow '? Android apps I've seen on playbook appear the menu to slide down from the event. Simulator too works the same.
Pei
-
not pulling - click event button position: fixed - 2.0 Playbook
I have a fixed position "back" button in my application that triggers not when scrolling to the bottom of the screen.
Here is the code for the button:
When I scroll the screen to the top, the button triggers without problem. However, if the screen scrolls down at all, the button's click event will not occur.
I've traced the events Web Inspector and a click event fires when I click the button. However, it does not actually draw the method that I've linked to the click event of the button. Once again, if I scroll the screen to the top, the button click fires very well.
I must emphasize that the button is displayed correctly at all times. He remains in a fixed position of 5px to the right side of the screen, even when scrolling of the window down. If the button is visible at any time. It's just that when I scroll nothing happens if I click on the button.
Looks like a bug with WebWorks. If anyone can confirm?
Thank you
Thanks for the suggestion ignites.
I found that this was due to my own bug. It was a problem with z-index. I increased the z-index of the button, and it solved the problem. The button must have been in conflict with lowest elements of the page, but it was very well at the top of the page.
Thank you
-
Cancel the PIP without the button "Cancel".
I'm open to suggestion here. I'm trying to change between two sources which are not synchronized, time sinks, to the other. The solution I came with is to overlay one source to another using PIP, match the shot, and then make the necessary changes. However, once I made the game, so I have to resize the source, so they all look like a single video. Is it possible to cancel the PIP effect on an individual clip without having to do it manually? I tried to delete the video effect - that didn't work all
Buddycat
Please come back on what I wrote... This will make two small adjusts scale and Position if you opt for the scale and move the position of the PiP.
Start by
Video on Video track 1, to stay as it is.
Video on Video 2 track, to be your PiP (picture in picture).
Highlight video 2 video tracks, go to its request under the relaxed applied effects tab panel leave the
Panel range/Motion applied effects extended open.
Debrief of the two values, 360.0 (side to side) and 240,0 position (up and down).
And you know that you start at 100% scale.
Drag the PiP 40% LR preset in the video 2 video tracks to get
Review the scale values and the Position in the expanded Motion Panel.
The two Position values have changed and are related to the current position of the PiP. You can move the PiP
around as much as you want, and whenever the Position of values will change accordingly. If you keep the 40%
Dimensioning of the screening, the scale will remain 40 whenever you move the PiP.
When you are ready to remove the PiP effect, turn to the Panel movement expanded and simply type in the 'before '.
Position (360.0, 240,0) values and scale of 100. You should not run in any jumps side effects.
What is the problem with that? There is no toggle on and off a preset PiP I've ever met.
RTA
-
Satellite P10, internal keyboard: the key of the pipe doesn't work anymore
Hello everyone!
I have a Satellite P10 with WinXP (SP1) for about 1 year.
Symptoms: it's the internal keyboard. I used the key pipe <|>indeed, not every day, but it worked. And suddenly, I see that it does no more: it is 'dead', while all other keys work correctly...My next steps:
(1) I uninstalled the driver of standard keyboard (101/102 keys) or Microsoft Natural Keyboard (PS/2) keyboard, and were found after Windows starts. There is no material conflict under the Device Manager or the information system, the driver runs correctly...(2) the keyboard layout is German. But I have already tested the English (United States) too: the result is the same.
Questions:
(1) is the key physically damaged?
(2) otherwise, what I can do to solve the problem? Where can I get a newer driver perhaps?Thanks in advance!
Post edited by: MischaG
Hello
As far as I know that it is not necessary to install a driver for keyboard. The driver is built into the OS. If the button is dead and doesn't work at all, it is probably defective.
Good bye
|> -
Developed a playbook app need advice now on the targeting of future devices.
Hello
I managed to develop a playbook using FB 4.7 and 4.6 Flex application (AIR 3.1). I use the latest version of the SDK which is 2.1.0. So my question is,
1-will my app do support version 2.1.0 + of the playbook? or lower versions too?
2 - this application even support other devices QNX? If so, what are these devices (I see 4-5 devices in the form of additional device) and how can I do same app also runs on these platforms.
3 - my app is an application of children where children will be able b create avatars, now the requirment of content generated by the user in the submission form has 4-5 questions and I don't know what to write here, please advice! as my application should not have any issue with "unethical content creation" because he welcome children, now I can't stop users to write something bad in hindi, validate the image...
Thank you
clozertou wrote:
Hello
I managed to develop a playbook using FB 4.7 and 4.6 Flex application (AIR 3.1). I use the latest version of the SDK which is 2.1.0. So my question is,
1-will my app do support version 2.1.0 + of the playbook? or lower versions too?
As long as you don't use any what 2.1.0 - specific API, it should work on 2.0.0. If she does well in the Office AIR runtime, it almost certainly works on the camera too. Note that most of the PlayBook users quickly improve their OS. There are very few people running older versions. See http://news.ebscer.com/2013/04/playbook-users-still-on-newest-os/
2 - this application even support other devices QNX? If so, what are these devices (I see 4-5 devices in the form of additional device) and how can I do same app also runs on these platforms.
You have to adapt your user interface, graphics, splash screens and icons to work on various resolutions and reports l / h. New appliances BB10 have 768 x 1280 and 720 x 720 pixels and a much higher density of pixel resolution. Buttons should be about twice the size (in pixels). Try to avoid the absolute positions coded hard & sizes and rely more on anchor and percentage sizes. More information can be found here.
To test, you can configure your AIR runtime desktop to emulate different resolutions, or use the simulators. Or better yet, try to get a real device.
The 'other' devices are the BlackBerry Z10, Q5, Q10 (consumer) and devices of Dev Alpha A/B/C (developer). The A10 of BlackBerry rumor may still have a different resolution.
3 - my app is an application of children where children will be able b create avatars, now the requirment of content generated by the user in the submission form has 4-5 questions and I don't know what to write here, please advice! as my application should not have any issue with "unethical content creation" because he welcome children, now I can't stop users to write something bad in hindi, validate the image...
Don't know about it. Perhaps ask this above in the forum of developers to the BB world.
-
Debugging of Playbook Beta 2.1 In App Purchase (IAP)
Hello
as already mentioned here already I repacked our Android app to use on the Playbook and basically all works. The only problem was that by hitting 'Buy' in our application, nothing happened.
Now I have successfully created an account AppWorld, added the app, added 2 properties and added a user of sandbox sandbox with my Blackberry ID. I managed to download the app on AppWorld using this 'tst' / deep link method. However if I press the button 'Buy' in our app, still nothing happens.
Also, I waited 24 hours now but the result is always the same. Is it possible to know what is happening?
Thank you!
Conny
Who would do it. The dev team is already working on a fix. If you want to connect a bug Issue Tracker (link in my signature) I can have it follow the internal progression so you get messages when set.
For now, you can test if you use landscape mode.
Thanks for your help to find this bug!
-
How to create the method own slot in QT for blackberry Playbook
Hi all
After two days of work-around, I can successfully develop the project of the QT in Qnx IDE for blackberry playbook 2.0.
But now I have a problem to create the method of the slot to call on the click event of the specific button,
Here is my code.
#include
#include
#include
#include
#includeslots machines
void clickedSlots();int main (int argc, char * argv []) {}
qputenv ("QT_QPA_FONTDIR", "/ usr/fonts/font_repository/monotype");
QCoreApplication::addLibraryPath ("app/native/lib");
QApplication app (argc, argv);QWidget window;
Window.Resize(1024, 600);
window.setWindowTitle (QString::fromUtf8 ('QPushbutton Background'));
one click = new QPushButton ("Click Me");
Click on-> setToolTip ("Thanks");
Click on-> setMaximumHeight (100);
Click on-> setGeometry (400, 100, 100, 40);
QObject::connect (click, SIGNAL (clicked ()), & app, SLOT (clickedSlots ()));QPalette * palette1 = new QPalette();
Palette1-> setColor (QPalette::Button, Qt::blue);
Click on-> setPalette(*palette1);QPushButton * leave = new QPushButton ("Quit");
QObject::connect (quit, SIGNAL (clicked ()), & app, SLOT (quit ()));QPalette * palette2 = new QPalette();
Palette2-> setColor (QPalette::Background, Qt::green);
Exit-> setPalette(*palette2);
Exit-> setGeometry (200, 100, 100, 40);
QVBoxLayout layout = new QVBoxLayout (& window);
layout-> setGeometry (QRect (0, 0, 1024, 600));
layout-> addWidget (click);
layout-> addWidget (quit);Window.Show ();
Return app.exec ();
}void clickedSlots() {}
QMessageBox msgBox.
msgBox.setWindowTitle ("Hello");
msgBox.setText ("You Clicked");
msgBox.show ();
msgBox.exec ();
}Please help me with this problem. I had started to develop in QT before 2 days only. I'm not familiar with the development of QT.
Thanks in advance.
bskania.
You have the chance, I'm feeling generous today.
I fixed your code. You should really read the Qt documentation, it's fantastic. Here, it's a good start for the signals and Slots.
http://Qt-project.org/doc/Qt-4.8/signalsandslots.html
Mark this message as the solution and give me one as you please.
main.cpp
#include
#include #include #include #include #include "myslots.h" int main(int argc, char *argv[]) { qputenv("QT_QPA_FONTDIR", "/usr/fonts/font_repository/monotype"); QCoreApplication::addLibraryPath("app/native/lib"); QApplication app(argc, argv); QWidget window; window.resize(1024, 600); window.setWindowTitle(QString::fromUtf8("QPushbutton Background")); QPushButton *click = new QPushButton("Click Me"); click->setToolTip("Thanks"); click->setMaximumHeight(100); click->setGeometry(400, 100, 100, 40); myslots a; QObject::connect(click, SIGNAL(clicked()), &a, SLOT(clickedSlot())); QPalette* palette1 = new QPalette(); palette1->setColor(QPalette::Button, Qt::blue); click->setPalette(*palette1); QPushButton *quit = new QPushButton("Quit"); QObject::connect(quit, SIGNAL(clicked()), &app, SLOT(quit())); QPalette* palette2 = new QPalette(); palette2->setColor(QPalette::Background, Qt::green); quit->setPalette(*palette2); quit->setGeometry(200, 100, 100, 40); QVBoxLayout* layout = new QVBoxLayout(&window); layout->setGeometry(QRect(0, 0, 1024, 600)); layout->addWidget(click); layout->addWidget(quit); window.show(); return app.exec(); } myslots.h
#include
#include #include class myslots : public QObject { Q_OBJECT public: myslots() { }; public slots: void clickedSlot() { QMessageBox* msgBox = new QMessageBox(); msgBox->setWindowTitle("Hello"); msgBox->setText("You Clicked " + ((QPushButton*) sender())->text()); msgBox->exec(); }; }; myslots. Pro
TARGET = myslots DEPENDPATH += . INCLUDEPATH += . HEADERS += myslots.h SOURCES += main.cpp
Put all these files in the same folder, run qmake in there, it will produce a Makefile. Run make and it comes out a binary executable called myslots. That and your code works.
I don't have a lot of changes, I'll let you step through the code yourself to find out what I did. Look at the documentation for help.
I have not tested this Momentics, nor Alpha PlayBook/Dev. But I'm 100% sure the code works, since I ran it myself.
-
When I tap on a text on a form input in my application I want to be able to disable the keyboard touch playbook of arise because I want to use my own buttons to input for this. I really hope it's possible...
Nick
Its possible. As you do this is
(1) create a false entry in the search box
(2) attach a click event
(3) on, click the slide to the top of your custom keyboard using something like webkit-transform
If you find that the keyboard is popping up, you can also turn it off by making a blur().
Hope that helps!
Maybe you are looking for
-
Satellite A200-1 has 9 (PSAE0): 3 yellow dots in the device under Win XP Manager
I can not use Vista, as most of my apps does not work. Back to XP Pro OK and added the drivers for Audio, Ethernet, video OK - only have 3 yellow dots in controller of N/W now - device mass storage, the Device Manager (although it works OK) and SM bu
-
How to convert my MS Money 2004 account on my old computer to Quickin on my new computer?
I have MS Money 2004 on my old computer and I want to put my stock MS Money 2004 data to my new computer with Quickin on it. Anyone know the best way to convert it to the new computer? Thanks, Eddie
-
where to find the switch for wireless connection on computer laptop esprimoV5535
get the message {connection Wi - Fi doesn't work}, but it is not no matter what visible switch on laptop so presumably its located via the keyboard
-
I was doing a reformat of the factory for windows vista on the laptop of my son (packard bell EasyNote LJ 65) when the battery is dead and the computer turned off. When I started it back up it gives the message: the computer restarted unexpectedly or
-
Master/slave server is not accessible
We have server standalone install, but then I go to system-> finder object and try to look for something: I got the following error: "Master/slave server is not accessible.