What controls which screen a form will pop up on?

What controls which screen a form will pop up on?

steveh5
Advisor Advisor
1,118 Views
3 Replies
Message 1 of 4

What controls which screen a form will pop up on?

steveh5
Advisor
Advisor

Gang...

 

How do you control what monitor a form pops up on when using ilogic. 

 

I have two monitors and the form pops up on top of the monitor that has Inventor which is my secondary monitor. This is as I want it.

 

If I go to another workstation.... Inventor is on a secondary monitor as mine...but the form pops up on the primary monitor away from the screen where Inventor is running.

 

What controls where the form pops up?

 

Thanks in advanced,

 

Steve H.

Steve Hilvers
Inventor Certified User / Vault Professional Influencer
0 Likes
Accepted solutions (2)
1,119 Views
3 Replies
Replies (3)
Message 2 of 4

ekinsb
Alumni
Alumni

iLogic is just displaying the form and Windows is deciding where to display it.  I don't know how Windows determines where to display dialogs.  It can get fairly complicated because the user can configure two monitors to be two screens or to behave as one large single screen.  Unless there's a general way to control this for Windows I don't of a solution.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 4

MechMachineMan
Advisor
Advisor
Accepted solution

If you create a custom form using Visual Studio, within the options isn't there the capability to set it there; ie centering it over the application window?


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 4 of 4

ekinsb
Alumni
Alumni
Accepted solution

You're right that you have some coarse control when a new dialog is created about where it will be displayed.  If you want more control then you have to add some code to handle it at runtime.  For example, it can look to see how many screens there are and determine what to do.  But as I said, it can still be weird depending on how the machine is configured because you can have two monitors that appear as two screens or a single screen.

 

As far as iLogic I did a quick search through the source code and for a couple of it's list and radio button dialogs it's setting them to be centered on the parent.  I didn't find anywhere else where this was being specified so I assume for a user-defined Form it's using the default setting.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes