How to programmatically adjust the screen size of an Eikon .NET application?
Hi,
When I launch my Eikon .NET application, it seems the initial screen size of my control is not what I've defined in the xaml file. How can I specify the window size of my application programmatically?
Thanks,
Piyasak
When I launch my Eikon .NET application, it seems the initial screen size of my control is not what I've defined in the xaml file. How can I specify the window size of my application programmatically?
Thanks,
Piyasak
Tagged:
0
Answers
-
Piyasak, this not yet available, but is planned as per
http://www.iajira.amers.ime.reuters.com/browse/APPS-640 .0 -
Thanks Denis0
-
Denis,
May I ask you more question? I saw that you have posted an intersting topic "Introduction to Ex Controls" in the hub. I've followed your instruction to get the control but it did not appear in the list shown under Eikon/Developer. I'm using the desktop version 4.0.27602.
Please advise.
Thanks,
Piyasak0 -
It appears the targeting of the Ex Gallery was not large enough. I've just updated it, you should now see it in Eikon, developer category. restarting Eikon is required.
Please note that Ex Library is in alpha stage, meaning quite unstable, and breaking changes are expected.0 -
Thank you very much, I now see it in my Eikon.0
-
I attempted to download the control as mentioned in the Ex screen (fork sources on GitHub!) but I got Page Not Found. Is there any alternate source where I can download it?0
-
Yes this link is here in anticipation of open-sourcing the code... we are not there yet. If you're ok to be a alpha tester of Ex Library (all kinds of early feedback are welcome), you can download add a reference to Ex Library through Nuget: 1. Configure your NuGet package manager as described in
https://thehub.thomsonreuters.com/docs/DOC-515153 2. In your project, add a nuget package reference to Ex Library, currently version 0.6.0-rc6. It will only appear when you select "include Prerelease" in NuGet Dialog.0 -
I've got the control installed successfully.
Many Thanks,
Piyasak0 -
Follow a possible solution:
[DllImport("user32.dll")]
static extern IntPtr GetForegroundWindow();
[DllImport("user32.dll")]
public static extern bool GetWindowRect(IntPtr hwnd, ref
Rect rectangle);[DllImport("user32.dll", SetLastError = true)]
static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int
nWidth, int nHeight, bool bRepaint);public struct Rect {
public
int Left { get; set; }public
int Top { get; set; }public
int Right { get; set; }public
int Bottom { get; set; }}
public MainControl()
{InitializeComponent();
IntPtr
h = GetForegroundWindow();Rect r
= new Rect();GetWindowRect(h,
ref r);MoveWindow(h,
r.Right, r.Left, 800, 600, true);...
}
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛