Access 2013 maximized form - forms

I have a problem in an Access app. I open a form and its On Open event sets it to maximized. All good. From this form I click a button that opens another form who's On Open event opens it as maximized, over top of the original form. All good. When I close the second form, the original form is no longer maximized, it is now in a window. Not good.
I can't figure out why this is or how to prevent/resolve this. What event do I need to monitor and method to call to set the original form back to maximized. I tried playing with the On Close event of the second form but couldn't find the code to alter the (already open) original form. I tried a bunch of things but no luck. Any ideas?

Set the property of both forms to pop-up,modular and you should be fine

I assume you have a DoCmd.Maximize in the Open event of the first form?
Then somewhere in the Close or Unload event of the second form (or somewhere else), there must be a DoCmd.Restore.
Is any of the forms Popup or Modal?

OK, bit of a breakthrough. What fixed it was to place DoCmd.Maximize inside the On Activate event of the first form. When the 2nd form is closed the 1st form is automatically activated and the On Activate event fires, which maximizes the form again (I'm still not really sure why this is necessary). The key was figuring our what event to base the maximize method on.
Many thanks to everyone who posted.

With your database open in Access 2007, click on the "Office Button" (that's the round button in the upper left hand corner of the Acces window).
Click on the "Access Options" at the botton right.
In the "Access Options" dialog box, click on the "Current Database" option from the list on the left.
In the "Application Options" group, locate the "Document Window options". There are two options and an check box. Select the "Operlapping Windows" option. (The "Tabbed Documents" option is the default for all Access 2007 files. For more information about this, you may want to click on the "Guide to Access 2007 User Interface" link located on the "Getting Statred with Microsoft Office Access" screen that appears when you open Access 2007 from a short cut on your desktop or from the Startup menu.)
After making the selecltion of the "Overlapping Windows" option and closisng the diaplog box, you will be prompted that you have to close the current database and reopen it for your changes to take effect. Selecting the "Overlapping Windows" option will cause Access to use the interface that you are more used to.

Related

Should a focus trap prevent a user from reaching the context UI like e.g. the browser?

When we trap the focus inside a modal, should the focus cycle within the modal or should a user be able to reach the outside, like let's say the browser UI?
It's not clear from the official specifications for the web: https://www.w3.org/TR/wai-aria-practices-1.1/#dialog_modal
At least in an example provided by said specifications, it's actually like so, that you are not able to reach anything but focusable elements in the modal: https://www.w3.org/TR/wai-aria-practices-1.1/examples/dialog-modal/dialog.html
This comes with side-effects like breaking the developer tools:
Here's a video for further clarification: https://streamable.com/i4zcsp
Excellent question! My short answer is: It should not allow to tab outside the modal.
Long answer:
Like non-modal dialogs, modal dialogs contain their tab sequence. That is, Tab and Shift + Tab do not move focus outside the dialog. However, unlike most non-modal dialogs, modal dialogs do not provide means for moving keyboard focus outside the dialog window without closing the dialog.
This leads to two things:
Tab and Shift + Tab are trapped. Reaching the last (first) element will move the focus to the other end.
You have „means for moving keyboard focus outside the dialog”. But then, you must close the dialog.
So when you register a key event listener (and handle Esc to close the dialog and restore focus), you should also handle the mentioned Ctrl+L for reaching the URL bar (resp. Awesome Bar) and perhaps Ctrl+K for the search bar.
Find more keyboard shortcuts for
Firefox
Chrome
Chromium
Edge
Opera
Safari
Given the variety, you might want to dismiss the modal on everything that was not handled inside. User tests would give you a hint on what people expect.
Regarding the developer tools: Opening them in another window might do the trick.
You are only responsible for trapping the focus within the content. That is, anything that is HTML. You don't have to worry about the user moving the focus to other interactive elements that are part of the browser itself.
I often have several tabs open in my browser, looking at different websites. If one of those pages happened to have a dialog open that was trapping the keyboard focus, I would not want my focus to be trapped such that I couldn't get my focus on the browser's tab panel and switch to another tab. Nor would I want the focus trapped so that I couldn't get to the browser's main menu (File, Edit, View, etc). Nor would I want the focus trapped so that I couldn't get to the browser's address bar (alt+D or cmd+L).
One minor nuance in your OP. You mentioned the "official spec" for dialogs. There really isn't an "official" spec with regards to a normative language for a dialog. The "WAI-ARIA Authoring Practices" that you refer to is a fantastic resource and should be followed as much as possible, but not following it does not mean you aren't WCAG conformant. Notice in section "1. Introduction", the first thing it says is:
This section is informative.
You can see definitions of informative and normative. In particular:
Content identified as "informative" or "non-normative" is never required for conformance.

Bookmark element in Chrome devtools

I am debugging a big DOM with devtools:
I would like to "boomark" this div, so I can jump to it again easily.
It would be great if this bookmark would survive a page reload.
Is there a way to do this?
I'm not sure it qualifies as "Bookmark", but you can use the "Break on" mark, which survives reload and guides you to the right line, even when the elements are folded.
Break on mark
Break on DOM changes from google
With Bookmark no until and unless there is an href to your selector(which is not there in your case).
If you can add then this link can help you How to scroll an HTML page to a given anchor
If you can not use href then though scripting in your dev tools you can do everytime you want to scroll like below
document.querySelector('.panel-heading').scrollIntoView();
The other answers here as I write this will work. Yet another option (sorry the screenshots are so large):
Right click the element in the Elements panel
Select "Store as global variable"
The console will slide open, revealing the automatic name assigned to the element (temp1, temp2, etc)
Whenever you want, you may now type that variable name into the console to have it log the element
Right click the logged element, and click "Reveal in Elements Panel" to have the elements pane open with that element selected

how do I get DBeaver to show a Save button?

I want a save button that I can click with the mouse, but when I focus on a SQL editor page and file and do >Window >Customise Perspective >Edit actions, it's greyed out and says "Save (Ctrl+S' command cannot be made visible in this dialog.
DBeaver Community v6.0.5.2019... Windows 10 Enterprise 2016
It's just a simple thing so I don't have to keep switching between keyboard and mouse.
This is some months old so it may not be relevant for you, but this may help others (I was brought here as the lone google search result and had to keep poking around until I found it)
anyway, in DBeaver menu select Window>Preferences>DBeaver>Editors there should be a checkbox for 'Show Edit toolbar'. Check that and apply and close. Exit and restart DBeaver and it should have buttons for save/undo/etc. If it still does not, go to Window>Customize Perspective and the 'Edit actions' toolbar items should no longer be unselectable so you should be able to add them to the toolbar from there.

How to make GraphicalEditorWithFlyoutPalette's PaletteView visible on first start

My GEF editor (extending GraphicalEditorWithFlyoutPalette) always opens the editor with the palette hidden on first start of the application / first opening of the editor (after a build for example).
As this will potentially bewilder users who'll need to go in search of the flyout icon first, I'd like to have the palette view shown whenever the editor is opened. The user can then choose to close it on his/her preferences.
How can I achieve this? The API doesn't seem to give any clues, or I'm unable to find them...
The state of the palette defines if it is open or closed. This state is accessible using the getPalettePreferences().setPaletteState() method that is accessible in the GraphicalEditorWithFlyoutPalette. To open the palette, you must set it to the FlyoutPaletteComposite.STATE_PINNED_OPEN, like this:
getPalettePreferences().setPaletteState(FlyoutPaletteComposite.STATE_PINNED_OPEN);
If you want to ALWAYS override the state so that the palette is always opened with the editor, you have to add the line to the constructor of your editor. If you only want to do this once, and then leave the state as it was last selected by the user... No idea how to do this :-(

Change checkbox(Activex control) in word 2007

In word 2007, I'm trying to use the default activex control as check box. I would like the color of text changed after some one check the box it.
I know how to get it done with VBA and checkbox formfield, but how can this be done with checkbox(active control)?
Shortly, is there any way I can retrieve the properties or other object information of ActiveX control check box?
I think this answer is too late for the questioner, how ever i am sending it for those who will face this problem later on.
IF you know how to change check box color in VBA then you can do it in word as well. All you have to do is to insert a check box that you can code your self. to do so.
Generate Developor's Tab in MS Word by clicking word button at the top left of MS WORD 07 Window; Select Advanced; Select Popular; then in the pan opened, check the check box that contains Developor's tab.
Now Click the Developer's Tab, Locate the Control Group and from their, click on legacy tools pull down menu.Click on more controls option at the lowest left of the legacy tools pull down menu. A new Window will open.
Scroll down to find the option Micrsoft Forms 2.0checkbox.
Click to select it, and you are done. You will receive a check box at the place where your cursor was blinking before you startated this process.
This Checkbox is very similar to the Check box from VB. Now if you know the VBA Codes and want to change the properties of check box like color etc. Look at the Control Group in Developer's Tab. Click Design Mode. Now DOUBLE CLICK THE CHECK BOX AND VB CODING FORM OPENS WHERE YOU CAN CODE.
In case you do not know how to code in VB, You can still make some useful changes in check box. Single click on the check box and Then Click Properties Immediately below the Design Mode in the devloper's Tab.
Here you can make changes in properties.