desktop-application

Can I determine the order in which my units have been initialized?

杀马特。学长 韩版系。学妹 提交于 2019-11-27 03:55:20
问题 I am hunting a bug which might be connected to unit initialization order. Is there a way to see which initialization section was executed when? I need to know the order. This is during debugging, so I have the full power of the Delphi IDE, in my case Delphi 2009. I could set breakpoints, but this is rather tedious when having many units. Do you have any suggestions? 回答1: For units in the interface uses list, the initialization sections of the units used by a client are executed in the order

Java GUI Frameworks - which are out there? [closed]

孤人 提交于 2019-11-27 02:46:54
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I mainly developing Java EE and now I'm in a situation where I need to write a small native Java app. But tbh I'm a little bit lost, which frameworks (Swing, SWT, etc.) are out there? Is some rapid dev also possible with one of these? Maybe someone could provide me some links or share his experiences. 回答1: Swing

Resize display resolution using python with cross platform support

痴心易碎 提交于 2019-11-27 02:14:25
问题 Resize display resolution using a python function. It should be cross platform, ie support for windows, linux and mac (it is okay to have multiple cases depending on the operating system) I have code which I think works on linux (Ubuntu) I am looking for a solution for windows and mac (should support both 32 and 64 bit machines) def SetResolution(width, height): os.popen("xrandr -s "+str(width)+'x'+str(height)) I would also appreciate it if somebody could tell me how I could get the possible

Detect if user has any application running in fullscreen [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-11-27 01:57:16
问题 This question already has an answer here: Is there a way to check to see if another program is running full screen 2 answers I did a notifier app in C# that sits on the taskbar and display a balloon when I get something from it, similar to Google Talk when you receive a new email but at the momment it ignores if I am running an application on fullscreen or not and just do it is job. How can I detect and make sure an application is in fullscreen mode? I don't mean maximized (as an app could be

How do I launch application one from another in C#?

若如初见. 提交于 2019-11-27 01:33:26
问题 I have two desktop applications. After closing the first application, the first application will start the second application. How do I start the second application after finishing first application? My first application creates a separate desktop. 回答1: You can use .NET's Process Class to start a process as other people described. Then the question is when to call. In most cases, using either Form.Closing or Form.Closed event seems to be an easy choice. However, if someone else can handle the

Qt - top level widget with keyboard and mouse event transparency?

亡梦爱人 提交于 2019-11-27 00:41:52
问题 I want an app's main window to ignore mouse and keyboard events, passing them to applications underneath it in the window manager Z-order. I see how to make child widgets ignore keyboard or mouse events, but how about the main window? I'm trying to make a desktop widget that always sits just over the background and is totally invisible to keyboard and mouse events. (Pass through) Qt::X11BypassWindowManagerHint gets me keyboard pass through (although sadly X11 specific, but fine for now), so

How to save application options before exit?

三世轮回 提交于 2019-11-27 00:30:44
问题 I have made an application and i need to save some options before exit.(something like window dimension, ..., that will be written in a file.) The main frame has set this: frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); How can I save options that interests me?(before exiting of course) Thanks! 回答1: If you just want to do something when the application is shutting down, you can hook the shutdown using this code: Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { public

Self-destructing application

坚强是说给别人听的谎言 提交于 2019-11-26 23:27:15
问题 Along the lines of "This tape will self-destruct in five seconds. Good luck, Jim" ... Would it be possible for an application to delete itself (or it's executable wrapper form) once a preset time of use or other condition has been reached? Alternatively, what other approaches could be used to make the application useless? The aim here is to have a beta expire, inviting users to get a more up-to-date version. 回答1: It is possible. To get around the lock on the JAR file, your application may

How to remove window box from any java gui

眉间皱痕 提交于 2019-11-26 23:19:41
问题 How do i remove the window box from any java program. Because i want to make it look border-less. I know any jar files running on jre automatically gets a window like this. So i want to know if there is workaround about this. Thanks in advance here is a photo what i want to do exactly 回答1: See Frame#setUndecorated You could also use a JWindow which is undecorated by default. Check this and this for example uses Updated If you remove the border, you become responsible for moving and resizing

Windows 8 Desktop App: Open tabtip.exe to secondary keyboard (for numeric textbox)

谁说胖子不能爱 提交于 2019-11-26 22:59:18
问题 We're working on a desktop WPF app that runs on Windows 7 tablets and are adding some Surface Pro units with windows 8 to the mix. We noticed immediately that the little keyboard icon no longer displays when a TextBox receives focus. We solved it by running "tabtip.exe" on the MouseDown event for all TextBoxes. We have some numeric textboxes though (quantity for an item on an order), and want to open the on-screen keyboard for numeric entry, but it opens with qwerty keys by default. I have