ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
||||
|
||||
Set Window position and size
Hi,I want the Output console to appear when I start my model run.
This can be done by : mainmenucommand("View|Output Console"); Now I want to position this window and set the size with something like: treenode HWND=windowfromnode(obj viewnode); windowmove(HWND window, num x, num y, num sx, num sy, num refresh); But don´t really know where to find the treenode for the handle?
__________________
kind regards Nico. |
#2
|
|||
|
|||
Just use something like this :
Code:
windowmove(systemwindow(1),800,70,400,700,1); |
The Following 4 Users Say Thank You to Jason Lightfoot For This Useful Post: | ||
Tyson Nordgren (09-03-2008) |
#4
|
||||
|
||||
Just as an information:
In all my sample models is the code for open, size and place the output console in the UserEventInit. It is only a comment if I do not use the console in the model.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions." |
The Following User Says Thank You to Tom David For This Useful Post: | ||
Nico Zahn (09-04-2008) |
#5
|
||||
|
||||
Can anyone tell me what are other system window types (compile, system etc.) or point me to a documentation? Thanks!
__________________
Best, Alan |
#6
|
||||
|
||||
From the command documentation:
systemwindow(num windowtype)Description: For developer use. Get HWND handle to a system window: 1-Output 2-Compiler 3-Trace 4-System 5-Commands 6-Attributes 7-Completions 8-app 9-appsb 10-Output Edit 11-Compiler Edit 12-Trace Edit 13-System Edit |
The Following 2 Users Say Thank You to Phil BoBo For This Useful Post: | ||
Tyson Nordgren (09-03-2008) |
Thread | Thread Starter | Forum | Replies | Last Post |
Image Swap Based on Position Logic | William Clausen | Q&A | 8 | 08-06-2008 11:42 AM |
size of arrays in Flexscript | Steven Hamoen | Q&A | 13 | 06-23-2008 01:04 PM |
optimal size of a 3DS file | David Chan | Q&A | 4 | 04-28-2008 08:05 AM |
about "no select" and "show parameter window from side bar" | qin tian | Gripes and Goodies | 3 | 03-21-2008 08:10 AM |
Set reset position | Martijn van Oostenbrugge | Q&A | 1 | 02-25-2008 11:48 AM |