So big messing for the messing box .. what best practies ?

So big messing for the messing box .. what best practies ?

Darkforce_the_ilogic_guy
Advisor Advisor
360 Views
3 Replies
Message 1 of 4

So big messing for the messing box .. what best practies ?

Darkforce_the_ilogic_guy
Advisor
Advisor

is there an good way to handle messing that are too big  to show all the messing on the screen at the same time ?

 

is it possible to make an scroll funktion ?  I am using ilogic

0 Likes
361 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor

I would suggest creating and displaying a text file (.txt), if that would work for your situation.  Other than that, I would suggest that your iLogic rule create its own Windows Form with TextBox control that incorporates a scroll bar.  Then put the contents of your message within that TextBox.  If you are not familiar with creating a Windows Form from an iLogic rule, here is a somewhat simple example I created that should help guide you to that goal.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click 'LIKE' 👍.

If you have time, please... Vote For My IDEAS 💡and Explore My CONTRIBUTIONS

Inventor 2021 Help | Inventor Forum | Inventor Customization Forum | Inventor Ideas Forum

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 4

WCrihfield
Mentor
Mentor

And since my example doesn't really use a scroll bar for its TextBox control, here is a link to Microsoft's official page for that Property of a TextBox object.  Just make sure you change the "C#" to "VB" in the drop-down menu on the web page near the top right corner.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click 'LIKE' 👍.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 4 of 4

Michael.Navara
Advisor
Advisor

IMHO user don't read long messages. (in standard workflow)

  1. For debugging you can use iLogic logger and his dockable window. (https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-BE996AA3-DE49-4765-86A7-129DD7B42A4A)
  2. For error messages you can use standard ErrorManager (https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-6EC047A4-8A10-4175-A247-C7B2699F2999)
  3. For complex result of task save result to text file and use some text editor installed on the PC to display this file.

 

Dim fileName As String = "C:\Some\path\File.txt"
Dim fileContent = "Some large content"
System.IO.File.WriteAllText(fileName, fileContent)
System.Diagnostics.Process.Start(fileName)

 

 

0 Likes