How to add fields to a Dialog - blackberry

Iam new in BlackBerry programming. I want to make a Dialog with 2 inputtext, 2 labels and OK and Cancel button something like this:
|PIN|:|inputtext|
|Bumber|:|inputtext|
|Button(OK)||Button(Cancell)|

Your requirement is nothing but "Custom Popup"
For this the below link will help you:
CustomPopupScreen#WordPress
or
CustomPopupScreen#BlogSpot
Check this and change according to your requirement.

Related

iOS error message tooltip

I need to show error message as a tooltip in iOS 8 but i don't know how to do it. What I want is something similar to the one shown in below image (I'm referring to the tooltip with messages Select and Select All):
There is a great collection of libraries which already target your problem.
For example have a look at: AMPopTip.
Then you could show the popover like:
self.popTip = [AMPopTip popTip];
[self.popTip showText:errorMessage direction:AMPopTipDirectionUp maxWidth:200 inView:self.view fromFrame:textField.frame];
and hide it:
[self.popTip hide];
Have a look at the github repo there are more examples for customizing this control.
You can find more which might suit your needs better here: cocoacontrols.com
I had a similar problem and wrote my own custom tooltip.
You can init with your custom view (i assume you write some delegations to detect actions within.) and present from anywhere.
Maybe not the best replacement of UIPopoverController but still works great. And a lifesaver for iPhone. Also highly customisable.
https://github.com/akeara/AKETooltip
Hope this helps.

firefox addon sdk override link preview text

I'm new to developing firefox addons and was wondering if there is a way to override/modify the link preview text that appears at the bottom of the browser when you hover over a link.
I've looked briefly and wasn't able to find any reference describing this.
Thanks for any thoughts.
You can set the status text like this:
aDOMWindow.XULBrowserWindow.setOverLink('blah')
Where aDOMWindow is a window like that returned from for example Services.wm.getMostRecentWindow('navigator:browser').
So like do link.addEventListener('onmouseenter'.... a function that does setOverLink
and to make it go away set it to blank string. So just window.XULBrowserWindow.setOverLink('')
But you are doing this on mouse enter of a link and by default mouse out of links will blank it so you may not neede to handle blanking it.
edit:
you asked about add-sdk, so the Services.wm.getMostRecentWindow might not make sense, so here's a quick test you can try in sdk:
const { getMostRecentBrowserWindow } = require('sdk/window/utils');
getMostRecentBrowserWindow().XULBrowserWindow.setOverLink('hiiiiiii!!!')

New way to change button label in jquery mobile 1.4

Before, it was done this way
$("label[for='buttonid'] .ui-btn-text").html('newtext');
What is the new way? Button comments here http://jquerymobile.com/upgrade-guide/1.4/ do not seem to cover this issue.
Try this:
$('#buttonID').find(".ui-btn").text("newText");

PhoneGap-iOS, how to show dialog with red button?

I am working with Phonegap on iOS, and here is the codes to show the dialog:
navigator.notification.confirm(
'Which color do you like most?'
, confirmCB
, 'Title | Confirm'
, 'Green,Red'
);
I want to show a confirmation dialog with red cancel button but I don't know how. Please helps.
That is not possible with phonegap.
navigator.notification.confirm uses the native UIAlertView, and the UIAlertView buttons are blue/gray, and the cancel button darker blue/gray
You can try to create a plugin with this library BlockAlerts And ActionSheets
Or use a javascript/css alert replacements

How to add a simple button actionscript

I am using Adobe Flash CS4. I don't know why I do the sample actionscript code here.
on (release) {
gotoAndPlay(1);
}
And now I'm dealing with a button function. I already created a box then press "F8" and choose button. Now I click on the button box, and press "F9" for the actionscript.
It said that "Current selection cannot have actions applied to it"
Then choose "ActionScript 1.0 & 2.0"
Global Function > Movie Clip Control > On
** but "On" is disabled, how to solve this problem of mine to put this simple code.
Thank you.
Have you changed your publish settings? Open: File -> Publish Settings, the in the Flash tab change Script to ActionScript 2.0

Resources