The web Dialog on XOJO web application does not close - xojo

In my web application I have opened a web dialog, which has 2 canvas. On this canvas I have drawn a eyeglass lens. The canvas opens properly and the lens is also drawn properly on it, but after that when i try to close the web dialog, it is not closing.
I think it web dialog hangs after opening and painting on canvas.
Also when I deploy it on XOJO cloud, the application does not open that dialog at all.

I was using canvas and one property of canvas that is "Diff Engine" was disabled, which i have to enable to speed up the process of drawing.

Related

Layout of Microsoft OAuth login wrong

I'm opening the Microsoft OAuth login page inside a FMX TWebBrowser component and the layout of the page is wrong. Components are not aligned correctly and buttons are not shown in full. I'm doing this on a HDPI screen.
After setting mode to 11011 the windows opens as follows:
Using 11011 for emulation mode

Windows Ribbon Framework: Does not highlight on hover

I am building an application which has Windows Ribbon at the top a panel with embedded 3rd party application at the bottom. As soon as embedded app loads, the main application form becomes inactive (title text becomes gray). This is expected behavior, however my problem is - unlike all other controls on the inactive main form, Ribbon tabs and the components they contain become unresponsive to mouse movements, i.e. do not highlight buttons on mouse over, do not show hints, etc. The only part of the Ribbon that works correctly on inactive form is Quick Access Toolbar. As the result, after interacting with embedded app user needs to click twice on the ribbon control to trigger an action.
The sample apps provided with Ribbon Framework do the same when they become inactive, so the issue is definitely not with my code.
I wonder if anyone else had similar experience and can suggest a workaround or a solution.
Thanks.
Just discovered that Microsoft Outlook and Excel behave exactly the same. Delphi-Ribbon-Framework uses native Windows API for creating ribbon, so this is not an issue with Delphi Ribbon Framework, or my code, but the way Microsoft implemented it.
Thanks.

Electron BrowserWindow shows taskbar when focused

My application is an overlay (alwaysOnTop) for a full screen game and when the user clicks on my overlay it takes focus and shows the taskbar on top of their game as well. Taking focus is fine, but I can't have the taskbar show.
It says in the BrowserWindow docs:
not a toolbox window which can not be focused on
Implying that it is possible to create a window which cannot be focused on.
Does anyone know how to create a toolbox window, or to simply avoid having the taskbar showing when clicking on the electron window?
I should mention I've tried setAlwaysOnTop and skipTaskbar. I also have transparent: true and frame: false.
The overlay I've created is the "Safelane, Midlane, Offlane" buttons. When I run the application it shows on top of the full screen app (Dota 2) like this:
After clicking on the interface the taskbar appears. It would be fine that the full screen app (Dota) loses focus, the task bar appears on top which breaks the continuity of the experience:
I would like the experience to stay like the first image--when the user clicks on anything in my overlay, the taskbar should not show.
Electron GitHub Issue
Additional Solution Info -- After using Gaafar's solution below
Setting kiosk: true in the setup does not seem to allow it to render transparent. Using setKiosk(true) within a setTimeout after the window has been opened seemed to work.
I also found that any windows using kiosk or fullscreen with transparency had rendering issue. It would render multiple times on top of itself and could not unrender items (display: none in css would do nothing). The way I fixed this was by using Electron Window Manager creating a single kiosk window with nothing in it and creating other non-kiosk windows with the HTML / CSS interfaces. The result:
All of the interfaces can be interacted with, mouse and keyboard.
Rendering happens as it does regularly in electron.
The fullscreen application below receives input through any transparent areas.
Taskbar never shows up on any input.
skipTaskbar: true is to prevent showing your app in the taskbar.
To hide the taskbar altogether use fullscreen or kiosk mode instead
fullscreen: true
or
kiosk: true
EDIT:
There are some issues open where fullscreen or kiosk modes prevent the transparency of the window.
A solution that works for me is to run with these flags --enable-transparent-visuals --disable-gpu
issue & solution: https://github.com/electron/electron/issues/2170#issuecomment-145942717
showInActive();
set your BrowserWindows, focusable: false
Im gonna post a solution some might be facing with full screening, I was facing this issue and wandering here and there, this StackOverflow post kept coming up.
So Im posting it here so people getting similar problems can get help.
When fullscreening taskbar getting in way.
When you fullscreen using mainWindow.setFullScreen(true) taskbar will get in way when you are on home (all windows minimized) in windows.
Here is the solution:
ipcMain.on("fullscreenon",()=>{
mainWindow.setAlwaysOnTop(true, 'screen-saver');
mainWindow.setFullScreen(true);
})
//The order of the commands is important below
//don't setAlwaysOnTop() before getting out of fullscreen.
ipcMain.on("fullscreenoff",()=>{
mainWindow.setFullScreen(false);
mainWindow.setAlwaysOnTop(true, 'floating')
})
Basically, by default setFullscreen uses the level: "floating". We need a higher level, "screen-saver" is the highest level I think.

How to integrate a cv.NamedWindow in a wxpython panel or frame?

I'm trying to display a continuous feed of cv images in wxpython using cv.NamedWindow and cv.ShowImage methods. However, this opens the NamedWindow as a separate window.
Is there a way to integrate this named window in a wxpython panel or a frame? My requirement is that the NamedWindow should be part of a GUI and not a standalone window.

Cascade Multiple windows using Jquery Window plugin

I am using Jquery Window plugin v5.03 for my web application. I have to open the multiple windows on screen. But when I call the function to create a window they all open up in the center of the screen and overlap on one another such that previously opened screens are not visible.
I want the windows to open in such a way that at least the title bar and the cross icon is visible on top of the previously opened window. So that the user can know that another window is opened and previous windows are cascaded at the back and are slightly visible.
Please help.

Resources