Detect when button/control is focused in Inno Setup - inno-setup

I need to fire an event (for example updating a label) when a control (button) is focused.
Is there any trick doing this in Inno Setup?

This is difficult to implement due to a lack of OnEnter event in Inno Setup API (there are 3rd party Inno Setup clones that do have this functionality, not that I recommend using them).
The only solution, I know, is to periodically monitor the active control. For an example, see:
Prevent button from receiving focus in Inno Setup

Related

Embeddable Web UI Designer

Is there are web framework that allows creating of custom Web UI designers that can be embedded into a webpage/webapp?
What I am looking for is to create a web UI that allows users to edit the UI in a drag and drop style editor. It should be possible to select some widgets (like these: http://scaffy.railsware.com/futurico/#pagination) and to select a data source (will be provided by back-end, nodejs).
Background: I am not a web designer and have no previous web experience. I just want to know if it possible to create what I am looking for and how much effort it would be. My background is in embedded Linux development and I would like to create an easy way for people to create machines with single board computers. The embedded stuff is pretty much complete and I am exploring ways to create nice and user editable user interfaces.
I think what you want is possible.
However... as far I know nothing exists which will do exactly what you require.
There are thousands of UI widgets on the Web to choose from but you would need a custom built backend cms developed especially for your needs
There plenty of Web agencies who could provide a bespoke solution. They could also assist with updates and adding new widgets.
So it can be done (and may encounter some browser incompatability issues), but you'll just have to be prepared to spend money.

How to hook the 'send' button in lotus notes client

Due to some reasons, I'm not allowed to touch Domino server but would like to make my plugin be able to modify email content right before it's being sent in client side. All comes up in my mind is to add a listener or somehow to hook the 'send' button of a message, which holds on when being clicked and runs my codes, and then sends the message. Is there anyone knowing about this trick, or any other way to meet the same purpose? Thanks.
BTW: I'm using Lotus Toolkit in Java.
Update:
I found a very similar question here:Lotus Notes - Java UI - Eclipse plugin
But I found Querysend only exists in NotesUIDocument of LotusScript but not Java. Strange.
You have two choices: install a DLL built using the Notes C API on every Notes client computer, or make modifications to the mail template. In the latter case, though, rather than implementing your code in the QuerySend event it probably makes more sense to implement to implement your code directly in the click event of the shared Send action - and that is just Lotus' formula language, so neither LotusScript nor Java is needed.

How to properly use CDialog::Create for Modalless dialogs MFC

I am trying to create a Modalless dialog in my exsisting project. CDialog::Create cause debug assertion. I tried a new Dialog based application and followed the same steps, the dialog gets created without any error.
Also in my exsisiting project I am using MFC as static Library, can this affect the functionality?
really looking forward for any helpful replies
Best Regards
Well this is just a stab in the dark given the vagueness and lack of information in the question, but have you created the dialog as a WS_CHILD and not WS_POPUP?

Qt 4.8.4 QWS Server Programmatically Set Focus With Multiple Client Apps

I understand ( How does windowing work in qt embedded? ) that you should run one Application as the QWS Server to provide window management facilities, but that you can run other Apps with graphical interfaces as well in Qt Embedded for Linux.
I want to programmatically switch focus between windows without requiring mouse / keyboard interaction to achieve focus. I've searched the following docs but am not seeing any way to make a different window 'active':
http://qt-project.org/doc/qt-4.8/qwsserver.html
http://qt-project.org/doc/qt-4.8/qapplication.html
http://qt-project.org/doc/qt-4.8/qsessionmanager.html#details
http://qt-project.org/doc/qt-4.8/qwswindow.html
QWSServer has a method:
const QList<QWSWindow *> & QWSServer::clientWindows ()
Which returns a list of QWSWindows, but I don't see how I can make one of those windows the currently active window. How can I do this? Thanks -
The accepted answer is false in some sense. I think solution is to find needed window by clientWindows, then call QWSWindow::setActiveWindow() and then QWSWindow::raise().
QWSWindow provides the undocumented raise() method. See: qwindowsystem_qws.h definition of QWSWindow. You need this type of functionality if you want to make any sort of window manager.
Undocumented can beat impossible in some situations.
It is even more complex and difficult, if you wish to let non-Qt applications have focus, etc.
If you are trying to do it using QWSServer::clientWindows (), then forget about it. QWSWindow and QWSClient are just providing interfaces to get information about client windows. You can not control them from the server application.
There are two ways to do what you want :
do it from the application creating the window
embed the client windows using QWSEmbedWidget, and then you get some kind of control

Implementing dialogs from resource

I'm currently trying to port an application from owl to vcl.
In my old projekt-file I was able to load dialogs with something like
TBatchAcDialog(TWindow* parent) : TAPDialog(parent, BATCH_DIALOG)
However, using TTaskDialog instead it doesn't support the second argument.
I have found an explanation for the user interface designer that when rightclicking on a menu you can load the first declared menu from a rc-file.
However, I don't really know how to load those dialogs as dialogs in this IDE and linking them to my classes again.
Does anyone of you know about this or could link me to an article about a similar problem? I seem to have failed finding a proper solution although implementing rc-dialogs seems to be a common problem to me.
I'm currently trying to port an application from owl to vcl.
What is your exact goal? To be able to build the application with C++ Builder, or to use VCL instead of OWL?
If you want to use VCL for the dialogs, then you cannot port them, you need to rewrite all the UI from scratch, as VCL is very different from the standard Windows dialogs.
If you want just to build the application with C++ Builder, then you can do so by upgrading to OWLNext - it is an open-source upgrade for the OWL framework and works with the modern compilers like C++ Builder and Visual C++.
You can also use OWLNext for a gradual migration to VCL - as VCL and OWL can co-exist in the same application, so you can migrate your old OWL application to C++ Builder, write any new UI in VCL, and gradually rewrite the old UI in VCL - it might be easier and safer than rewriting the whole application with VCL.
C++Builder does not have any native functionality that wraps resource dialogs in classes. You have to set that up manually in your own code if you need it. Otherwise, just use Win32 API functions like CreateDialog() when working with resource dialogs, or else redesign your UI to make use of VCL TForm windows instead of resource dialogs.
TTaskDialog is not what you think it is. It is just a wrapper for the Win32 API TaskDialogIndirect() function (Vista and later only), which is not related to what you are attempting to accomplish.

Resources