How to edit UIAlertAction text font size and color

You can update text color using UIAlertAction *myGoalAction = [UIAlertAction actionWithTitle:NSLocalizedString(@”My Title”, @”My Title”) style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) { }]; [myGoalAction setValue:[UIColor greenColor] forKey:@”titleTextColor”]; There is no efficient way to update font size.I will suggest you to use standard font size. UIAlertAction title label is private variable and not accessible directly. Label comes inside 3 level … Read more

chrome Pop-up blocker when to re-check after allowing page

Do you know how its possible to the company to add this privacy settings ( i’ve addtional for my company entries domain pattern…), how this is possible? Policies can be set which override user Preferences set at Settings. See Documentation for Administrators, follow links at Windows Quick Start, Mac Quick Start, or Linux Quick Start. … Read more

html Modal popup

Here’s a plain-JavaScript example: var modal = document.getElementById(‘modal’); var shade = document.getElementById(‘shade’); document.getElementById(‘start’).onclick = function() { modal.style.display = shade.style.display = ‘block’; }; document.getElementById(‘close’).onclick = function() { modal.style.display = shade.style.display = ‘none’; }; // This code is a workaround for IE6’s lack of support for the // position: fixed style. // if (!(‘maxHeight’ in document.body.style)) { … Read more

Using javascript to print images

Another great solution!! All credit goes to Codescratcher <script> function ImagetoPrint(source) { return “<html><head><scri”+”pt>function step1(){\n” + “setTimeout(‘step2()’, 10);}\n” + “function step2(){window.print();window.close()}\n” + “</scri” + “pt></head><body onload=’step1()’>\n” + “<img src=”” + source + “” /></body></html>”; } function PrintImage(source) { var Pagelink = “about:blank”; var pwa = window.open(Pagelink, “_new”); pwa.document.open(); pwa.document.write(ImagetoPrint(source)); pwa.document.close(); } </script> <a href=”#” onclick=”PrintImage(‘YOUR_IMAGE_PATH_HERE.JPG’); … Read more

How to make PopUp window in java

The same answer : JOptionpane with an example 🙂 package experiments; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; public class CreateDialogFromOptionPane { public static void main(final String[] args) { final JFrame parent = new JFrame(); JButton button = new JButton(); button.setText(“Click me to show dialog!”); parent.add(button); parent.pack(); parent.setVisible(true); button.addActionListener(new java.awt.event.ActionListener() { @Override public void actionPerformed(java.awt.event.ActionEvent evt) … Read more

How to create a completely custom Dialogue/Popup in Android (change overlay colour and dialogue window layout)

I’ve solved this problem and created my own custom popup overlay with a custom coloured semi-transparent overlay background using the following steps: 1 – Create a new xml file in your res/values/ folder and name it styles.xml 2 – Here is where you will define your dialog properties. Here is what mine looks like. If … Read more