Working with an existing project, my rc file's regenerating the flags on every dialog I modify, then loading up. The previous flags were:
DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
and after the regen, it turns into:
DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
This translates to "Dialog Frame" in the designer, when the original intent was that the window should be resizable (WS_THICKFRAME). It seems fine just to set it to "Resizable", but that gives me:
DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
Note the lack of "DS_MODALFRAME" in the above.
Is there a reason that no VS2010 setting will get me both of these, and what effect will the lack of DS_MODALFRAME have on the dialog?
Alternatively, which cunningly hidden VS toggle do I have to switch to stop DS_MODALFRAME being removed?
Related
some UI list like this have some button or check box in treeview
| | GroupBox - '' (L807, T366, R1257, B746)
| | ['GroupBox']
| |
| | TreeView - '' (L815, T382, R1249, B732)
| | ['TreeView']
| | child_window(auto_id="1176", control_type="Tree")
| | |
| | | CheckBox - 'Intrusion Prevention' (L839, T384, R957, B402)
| | | ['CheckBox', 'Intrusion PreventionCheckBox', 'Intrusion Prevention', 'CheckBox0', 'CheckBox1']
| | | child_window(title="Intrusion Prevention", control_type="CheckBox")
| | |
| | | CheckBox - 'USB Malware Protection' (L874, T402, R1010, B420)
| | | ['USB Malware ProtectionCheckBox', 'CheckBox2', 'USB Malware Protection']
| | | child_window(title="USB Malware Protection", control_type="CheckBox")
| | |
| | | TreeItem - 'Network Virus Protection' (L858, T420, R996, B438)
| | | ['Network Virus Protection', 'Network Virus ProtectionTreeItem', 'TreeItem', 'TreeItem0', 'TreeItem1']
| | | child_window(title="Network Virus Protection", control_type="TreeItem")
I can use TreeView to see Treeitems like this
dlg = app.top_window()
a = dlg.TreeView
b = a.print_items()
i can see b have tree item (ex:Network Virus Protection) but no checkbox (ex:Intrusion Prevention) so how can i get checkbox ele from treeview?
i know can use child_window("title") to get check box , but i need get this ele and check it text, so use title are not better
you can try this extension,
https://marketplace.visualstudio.com/items?itemName=ClickCorp.clicknium
it includes one automation library, and can recorde the checkbox and do check or uncheck operation:
ui(locator.notepad.checkbox).check()
I'm working on a project which has seen a lot of different Visual Studio versions over the years.
For some installations, currently with VS2022, V 17.1.3 (but also before with VS2019) whenever i edit resources and save them, some of the constants of dialog resources are replaced with numbers in the .rc file:
F.e. ES_AUTOHSCROLL is replaced by 0x80
CONTROL "",IDC_TXT,"RichEdit20W",ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP,96,115,38,12
CONTROL "",IDC_TXT,"RichEdit20W",WS_BORDER | WS_TABSTOP | 0x80,96,115,38,12
and ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN is replaced by 0x10c4
CONTROL "",IDC_COMMENT,"RichEdit20W",ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN | WS_BORDER | WS_TABSTOP,95,204,219,30
CONTROL "",IDC_COMMENT,"RichEdit20W",WS_BORDER | WS_TABSTOP | 0x10c4,95,204,219,30
A seemingly arbitrary define from Resource.h is replaced in DLGINIT from
IDC_SOME, 0x403, 9, 0
to
1838, 0x403, 9, 0
even though it is defined in Resource.h as
#define IDC_SOME 1838
and no others are replaced.
Also a line is inserted between all bitmap and cursor resources so that
IDR_MAINFRAME BITMAP "res\\Toolbar.bmp"
IDB_TREEITEM BITMAP "res\\treeitem.bmp"
and
IDC_TRACKBALL CURSOR "res\\track.cur"
IDC_ZOOMWINDOW CURSOR "res\\zoom1.cur"
become
IDR_MAINFRAME BITMAP "res\\Toolbar.bmp"
IDB_TREEITEM BITMAP "res\\treeitem.bmp"
and
IDC_TRACKBALL CURSOR "res\\track.cur"
IDC_ZOOMWINDOW CURSOR "res\\zoom1.cur"
Is this a bug or is there a setting or property which can be used to stop this?
I'd like to be able to find the fonts which will have the best coverage in (Windows) Emacs for those UTF-8 chars:
| 0x0000B7 | MIDDLE DOT |
| 0x00229E | SQUARED PLUS |
| 0x00229F | SQUARED MINUS |
| 0x0022A0 | SQUARED TIMES |
| 0x0022A1 | SQUARED DOT OPERATOR |
| 0x002423 | OPEN BOX (wider in Consolas!) |
| 0x002502 | BOX DRAWINGS LIGHT VERTICAL |
| 0x00250C | BOX DRAWINGS LIGHT DOWN AND RIGHT |
| 0x002514 | BOX DRAWINGS LIGHT UP AND RIGHT |
| 0x0025A0 | BLACK SQUARE |
| 0x0025A1 | WHITE SQUARE |
| 0x0025AA | BLACK SMALL SQUARE |
| 0x0025AB | WHITE SMALL SQUARE |
| 0x0025B8 | BLACK RIGHT-POINTING SMALL TRIANGLE |
| 0x0025B9 | WHITE RIGHT POINTING SMALL TRIANGLE |
| 0x0025BA | BLACK RIGHT-POINTING POINTER |
| 0x0025BB | WHITE RIGHT POINTING POINTER |
| 0x0025BC | BLACK DOWN-POINTING TRIANGLE |
| 0x0025BE | BLACK DOWN POINTING SMALL TRIANGLE |
| 0x0025BF | WHITE DOWN-POINTING SMALL TRIANGLE |
| 0x0025CB | WHITE CIRCLE |
| 0x0025CC | DOTTED CIRCLE |
| 0x0025CF | BLACK CIRCLE |
| 0x0025E7 | SQUARE WITH LEFT HALF BLACK |
| 0x0025E8 | SQUARE WITH RIGHT HALF BLACK |
| 0x0025E9 | SQUARE WITH UPPER LEFT DIAGONAL HALF BLACK |
| 0x0025EA | SQUARE WITH LOWER RIGHT DIAGONAL HALF BLACK |
| 0x0025EB | WHITE SQUARE WITH VERTICAL BISECTING LINE |
| 0x002702 | BLACK SCISSORS |
| 0x002704 | WHITE SCISSORS |
| 0x002691 | BLACK FLAG |
| 0x002690 | WHITE FLAG |
| 0x002709 | ENVELOPE |
| 0x002717 | BALLOT X |
| 0x002713 | CHECK MARK |
| 0x002620 | SKULL AND CROSSBONES |
| 0x002197 | NORTH EAST ARROW |
| 0x002191 | UPWARDS ARROW |
| 0x002193 | DOWNWARDS ARROW |
| 0x0021BA | ANTICLOCKWISE OPEN CIRCLE ARROW |
| 0x0021AA | RIGHTWARDS ARROW WITH HOOK |
| 0x00260D | OPPOSITION |
| 0x002729 | STRESS OUTLINED WHITE STAR |
| 0x002605 | BLACK STAR |
| 0x002699 | GEAR |
| 0x00267B | BLACK UNIVERSAL RECYCLING SYMBOL |
(These are signs which could typically be used for Org-mode or Gnus marks, among others).
How can I do that without testing fonts one by one?
Is there a way, as well, to ensure that those fonts are non-proportional?
Step one: don't tie this question to emacs; as a question about "which fonts do I have with maximum coverage", your want a utility that tells you about coverage.
With that covered: be less specific in the coverage you need. Instead of saying "I need these glyphs", look at what that means in terms of "these are the Unicode Blocks I need". Then you can use something like babelmap to see which fonts you have installed with support for specific Unicode blocks by opening it, navigating to the block(s) you need, and hitting F7 to see the list of fonts you have installed that support it.
My current visual studio panel layout looks similar to the drawing below:
-----------------
| | | |
| | | |
| | | |
| | |--|
| | | |
| |---------| |
| | | |
-----------------
I really don't need the full height of the screen for the toolbox or server explorer and was wondering if there was a way to change the layout so that the bottom section extended all the way to the left edge of the screen like in this drawing:
-----------------
| | | |
| | | |
| | | |
| | |--|
| | | |
|------------| |
| | |
-----------------
I am space constrained on the right side, so a symetric layout with the bottom section running full width wouldn't be acceptable. I've tried dragging stuff around but haven't had any luck in getting VS to position the panels as I want. Is my desired layout not possible or am I missing the right way to coax the layout into fitting?
Yes, you can do this. When you are dragging the toolbox, note the little "targets" in the center of the screen. Drop the toolbox onto the target that corresponds with the area where you want it docked.
See here for more detail and pics.
Drag the bottom panel off and make sure to mouse over the icon that appears all the way at the bottom center of the screen, although this will cause it to take up the whole bottom portion of the IDE,
That's an easy process.
Drag the window docked in the bottom to middle of the VS window so that it floats in the middle.
Now when you drag it, a helper would apper to doc it.
You'll have some dynamic docking helpers like below.
↑
↑
← ← → →
↓
↓
if you chose the downarrow in the dock helper in the middle, you'll get the layout like this.
| | | |
| | | |
| | | |
| | |--|
| | | |
| |---------| |
| | | |
-----------------
If you chose the downarrow all the way at the bottom, you'll get the layout like this.
| | | |
| | | |
| | | |
| | |--|
| | | |
|---------------|
| |
-----------------
In Autohotkey,
I want to position my Gui window to right bottom of the screen but how?
For illustrate,
+--------------------------------------+
| Desktop (screen) |
| |
| |
| +----------+ |
| | Gui | |
| | window | |
| | | |
| | | |
| +----------+ |
+--------------------------------------+
You'll need to use the pre-defined width and height of the GUI with the internal variables A_ScreenWidth and A_ScreenHeight and force Param2 of Gui, Show as an expression to make it work. For example if the width of the GUI is 900 and the height is 550:
Gui, Show, % "x" A_ScreenWidth - 900 " y" A_ScreenHeight - 550 " w" 900 " h" 550, The GUI
You can easily do this using a tool build itself using the autohotkey.
This tool has a drag and drop support for positioning your controls according to your own liking.
Give it a try. You won't regret it. :)
No installation required, just run the file.
SmartGui