I want to quit the application from the Application page, on click of a button.
Please guide me to do so.
Thanks in advance.
You can't quit the application. That is controlled by the OS.
There is no way to close a Silverlight Application from code, but you will find a small loophole in this under the page i linked in.
Possibly you will find the answer here!
If it is an XNA then you can Call Game.Exit()
Related
How to avoid Electron app auto update?
My Electron application recently acts so weird. When I closed the application the icon on desktop disappear and few minutes later it show again but it becomes the electron-react-boilerplate template on my desktop. I figured out that my electron application auto updated and make my original application gone.
I google how do avoid auto update but nothing I can find either in electron official website or other website.
Does anyone know how to fix it?
If you open main.ts you can find AppUpdater and comment above it about auto-updates. But I don't think that is what happened to you.
I'm using the Chromium Embedded Framework in my Delphi XE7 application through the DCEF3 version.
Loading web pages through the TChromium object works fine. I also managed to get printing to work.
Problem: I don't seem to find how I can set the specific printing settings through the TCefPrintSettings in ceflib. The class is explained here, but I don't seem to be able to find out how to use it.
Anyone here that can point me in the right direction? That would be very much appreciated!
Thanks
CefPrintSettings is relevant in the context of CefPrintHandler which is only used when running on Linux. To my knowledge there is little control over print settings in CEF.
http://magpcss.org/ceforum/apidocs3/projects/%28default%29/CefPrintHandler.html
See a similar question here http://magpcss.org/ceforum/viewtopic.php?f=10&t=13036&p=26102
I need to create a firefox plugin that allows a user to take screenshots of any part of their desktop and have them uploaded to a server. There seems to be lots of plugins for screen capturing a webpage, but nothing for capturing anything outside of firefox. So after a little research I have not found much information on how this might be possible. I don't want to resort to a using a java applet but I will if that is my only option.
Does anyone have advice on how I might create such a feature?
Thanks
I don't think a Firefox addon is the most appropriate approach here. Maybe split the task into a Firefox addon to offer the "upload to a server" component and a native app to do the desktop screenshot (or just integrate with existing screenshot tools).
If you're worried about complicating the installation process for end users, you could look into bundling the addon component and native app into a single installer (e.g. MSI on Windows, RPM on Linux, etc.). You'll have to come up with different apps for each platform you want to support (and maybe even each version - e.g. Windows XP vs Windows 10).
Whatever you decide, you'll probably need to create a more specific question to get further help here (there's no simple Firefox.Addons.API.TakeScreenShot() answer I'm afraid).
Also make sure you're using the right terminology - a plugin is the deprecated NPAPI approach whereas addons are still supported.
I'm actually working on taking native desktop screenshots just in the last coupel of days. I'm using js-ctypes. My work goal is the same exact thing to, upload to server. If you would like to collaborate I am very open to it! We can chat about it on #jsctypes irc channel :) irc://moznet/jsctypes (Mibbit IRC WebApp) If you don't know js-ctypes thats ok i can handle that while you can handle uploading techniques, and an editor on canvas :) The editor is a huge part of it, you can see my ideas/plans here: https://github.com/Noitidart/NativeShot/wiki/NativeShot
I'm really really interested in a collab on this!
I'm still working on windows right now, the color is messed up: https://github.com/Noitidart/NativeShot/tree/digitanks-method
I was just about to start OSX work following this example here: https://developer.apple.com/library/mac/samplecode/SonOfGrab/Introduction/Intro.html and here: Take ScreenShot without Window
You can install the addon from that branch and click the icon that gets added to the toolbar, it will take a screenshot with 3sec delay and then append it to the body of the selected tab. (Windows only right now)
Doneskis baby check it out: https://addons.mozilla.org/en-US/firefox/addon/nativeshot/
Got some quirks. Released it as v1.0 though. I'm working on Android support, pretty close. I need to flesh out the editor tools. Please let me know if you're willing to collaborate.
I am attempting to create a simple terminal application that runs on a BB10 device/simulator. I have gone through all of the available demo/example applications:
http://developer.blackberry.com/native/
I can't seem to find a way to have an application run as a console/terminal/tty-interface on the BB10 device I'm developing for. I was hoping to port some simple console games (ie: maybe a simple thing like "Hunt the Wumpus", http://en.wikipedia.org/wiki/Hunt_the_Wumpus), and then maybe take a crack at a Rogue or Nethack port as well (hopefully without having to depend on the ncurses library (http://en.wikipedia.org/wiki/Ncurses), but it's OK if I have to rely on ncurses. It just saves me from having to write additional interfacing code).
Can someone please provide a short, simple example of what I would need to write in a basic BB10 application that opens a black-and-white terminal with color support? It can be short, and just something I have to paste into an empty project.
Thank you in advance!
Here you go:
https://github.com/blackberry/NDK-Samples/tree/master/HelloWorldDisplay
It's listed near the bottom.
I've set up trial Delphi 2010 for the testing. After some days it is started and freeze. I just can see web-page with "how-to-buy" and at the right side last edited project. But Delphi's window do not react on any mouse events.
I've tried to reinstal and repair it.
So... What I have to do?
May be that project have bad files or some settings of IDE is incorrect?
Do you have any ideas?
Locate the .DSK file for any project it is trying to load, or the default.dsk file and delete it. Often this fixes Delphi startup failures. This file contains the desktop layout and list of open files.
Did you uninstall and resointall?
Did you contact Embarcadero? At this point in any potential business transaction you are at your most powerful. You have not paid, but it looks like you might; surely they would want to help you?
So, why ask us, rather than the company that wants to sell it to you?
Coupled with that - if you ask now you might get a rough idea of how helpful they could potentialy be if you ever do spring US $1k+