I would like to change the layout, size and position of a window programaticaly. Is that possible?
The problem:
I use Chrome on a dual screen system in combination with chrome remote desktop (homeoffice). Chrome can't do a fullscreen mode on a dual screen. Always fullscreen's on the primary screen only. I'd like to code a little helper app that catches the windows handle of this chrome instance and sets size, position and removes the title and the control buttons. I'd like to mimic a full screen on the dual screen system. Any hints are appreciated.
TIA Ole
Related
The screenshot remove the mouse cursor, but I'll explain the situation.
I want to understand if this is normal behaviour, cause it feel very strange.
In the screenshot I took, the app with "Posts" is my app, I set it to be always top most window.
When it's not active ( 3 round controls are gray), The cursor changes to resize cursor when it on the border of the application that behind my app.
What I want :
the mouse cursor will act according to my app (which is set as always top most window) even if not active.
Again. screenshot is not showing the mouse cursor, but imagine it on my app but over the bottom app border, and it change to resize cursor according to the bottom app.
If my app is active the mouse cursor works O.K
UPDATE : I can't reproduce the bug. I love developing. to be continue.
UPDATE 2: I can reproduce the bug. the cursor is not always changing, but the scrollbar behind my app is highlighting. is that normal if my app is NOT active but TOP MOST WINDOW ?
UPDATE 3: I reproduce the bug and got video that I will upload soon.
IMPORTANT UPDATE 4 :
I think I finally understand why it was so hard to reproduce this bug. it's only happen with Opera browser. on Safari and Chrome (acting as behind app) the mouse cursor works ok.
What so special about Opera browser ? :)
Can anyone test this also, so we all know I'm not crazy ?
btw - on Safari the scrollbar is also highlight if the mouse cursor is on the scrollbar track (behind the top app). on chrome the scrollbar is work as expected. (the mouse cursor on the top app not effecting the scrollbar highlight on the behind app)
UPDATE 5:
Video Link :
https://streamable.com/n3odc3
Video Description :
behind my app there is Opera browser instance that is active that load web page.
you can see the mouse cursor change to -hand- cursor because of the banner, and then to resize cursor because of the app border. also the scrollbar highlights.
What I expect is the mouse cursor will not change at all and not confuse the user. (I think this is crazy)
btw - sorry for my crappy English.
Update 6 : (reply to Willeke question if this happen with Opera and Keyboard Viewer also)
comment :
"#Willeke. I test Opera and Keyboard viewer and it also happen. I notice another thing, the 3 control buttons (red, green, yellow) in Opera are not gray if other app is active, most of the time.."
So I have next problem:
I have two monitors and do video translation from web camera on one of them(secondary). I do it in full screen mode using
put_FullScreenMode().
It works fine but when I click any mouse button on area of primary monitor, window with video translation wrap into just window mode.
How can I save full screen mode working with primary monitor?
At the first, I move my video to the left (on secondary monito from primary) and use full screen mode.
if(monitors.GetCount() > 1)
gx.pVW->put_Left(primaryRect.right);
gx.pVW->put_FullScreenMode(OATRUE);
gx.pVW->put_Visible(OATRUE);
Thank you for your time.
[Much] older applications took advantage of FullScreenMode since API supplied a specific "full screen renderer" filter which efficiently took care of full screen presentation. Since then video adapters found their way into stretching of presented video and full screen mode become unnecessary. Windowed mode of video renderer (you are using) was also not a recommended mode compared to windowless any longer.
You would be better off using renderer in windowless mode right in your UI, in your window, form or dialog. Using borderless window hosting video renderer you can easily imitate full screen mode without actually change of display mode. Such window remains normal window and does not need to go back from full screen with another UI activity, e.g. such that happens on another monitor.
VMR filters themselves demonstrate the two ways of going fullscreen in their Filter Config property page:
Set Fullscreen does it the way you do and suffer from the mentioned issue. The other method does full screen mode using borderless window stretched to the extent of a monitor.
See also related discussion:
IVideoWindow::put_FullScreen returning only native video size
I have the task of testing a web application where it is given that this app should fit a screen with the resolution of 1280*1024.
My work monitor is, however, a 20 inch screen with resolution 1680*1050.
Will resizing the Firefox window to 1280*1024 meet the test criteria or should I always change the resolution of my monitor? (Obviously, the second option is not preferred).
And also: Is there a Firefox plugin which will help me to set the window size appropriately?
Sometimes asking the question out loud helps to realise what you really want :)
There is Firefox addon called More Display Resolutions which helps to show the page in given resolution, even in 1280*1024
After you install it, just go to Tools -> Web Developer- > Responsive Design View and here you can turn on the preffered resolution:
Ok, the above died. What now?
Since time of writing this answer I changed jobs and do not have to test specific resolutions. But I did quick google search and this site seems to be working: http://quirktools.com/screenfly/
Responsive Design Mode is a stock part of Firefox which is available from the Menu Bar: Tools -> Web Developer -> Responsive Design View in all Firefox versions (keyboard shortcut: Ctrl + Shift + M, (or Cmd + Opt + M on OS X)). No extension is needed to access this mode.
Within Responsive Design Mode, you can set the exact display area used for the webpage. There are several preset dimensions. Alternately, custom display dimensions can be used by either directly typing the dimensions in, or dragging the display to the size desired. What is being set is the pixel dimensions used for the area containing the display of the webpage.
These dimensions are not the same as setting the pixel dimensions used for the entire screen, which would include the Firefox user interface. If you set it to the dimensions of a specific physical display size it is the same as would be displayed using Full Screen mode (on desktop versions, keyboard shortcut F11). If you want to see what your page will look like including the Firefox user interface, you will need to determine how many pixels the user interface consumes at the screen resolution you are interested in and on the platform you are intending to use (e.g. desktop, Android, iOS). You will then need to use a custom display size. Note that the amount of room used for the Firefox user interface will depend on many factors which include—in addition to the OS and resolution of the physical display—any theme the user has installed, which toolbars the user has chosen to display, and, potentially, which add-ons the user has installed.
This is what Responsive Design Mode looks like:
I have my laptop default screen and second screen. How can I write RealBasic, VisualBasic (Java not possible) application which can allow me to paint on desktop (both screen)?
Most likely you won't be able to draw directly to the screen, but you could potentially grab screenshots of each screen and then draw onto those. Depending on what exactly you're trying to do with your application, it would almost definitely be a more realistic goal to grab a screenshot of each screen and then simply display the screenshots in standard windows that take up the entire screen, letting you then edit and "draw" onto the screen there.
Another option would be to create a transparent window, and then intercept mouse clicks and present information on that window.
If you're using RB on a Mac, you can use the Monkeybread Software Plugin to create a NSWindowMBS and modify the alpha value or an OverlayWindowMBS. It looks like you're trying to do this on Windows, though, so this won't work.
I have recently started on a project developing a window mobile/ce buisiness application. I have a ui design that uses a wizard to capture input data. To get the wizard started we open a windows form and maximize it. The form has one panel on it that is set to the size of the form. We pass a reference to the panel into the wizard controller as a container for the wizard user controls (each wizard step is a user control and the user control's size is set to that of the panel and thus the windows form. When viewed in a windows mobile emulator this works great the user control takes up the entire screen and the controls on the wizard step control are all visible on the screen with no vertical or horizontal scroll bars visible. When we load this onto one of the potential handheld devices the windows form doesn't fit exactly onto the screen as I would expect. There are both horizontal and vertical scroll bars and the controls aren't all visible. Does anyone have any hints and tips on getting around this problem? Is it possible to maximize a windows form in such a way that it exactly fills the screen on any mobile or ce device?
You need to check the screen resolution of your emulator and of your handheld device.
I suspect you are working on different screen resolutions.
If it's the case, then set the screen res for your emulator to match the screen res of your device. If for some reason this is not possible, just create your form to match the screen res of the device and try to fit all your UI in that limited space.
If you need to support many screen resolutions, you have 2 approaches:
1. Develop for the lowest res. This might look a bit ugly for higher res devices
2. Use anchors and control docking when defining your form layout.