ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 03-15-2010
Alberto Serra Alberto Serra is offline
Flexsim User
 
Join Date: Oct 2009
Posts: 5
Downloads: 32
Uploads: 0
Thanks: 1
Thanked 2 Times in 2 Posts
Rep Power: 0
Alberto Serra is on a distinguished road
Question Locate objects from table

Hi everybody!

I need some help about GUIs.

How can I know what cell the user has selected from a table in my gui?
I need this information because for each cell of the table there is the name of an object in my model, and i want to zoom the view to the object as the user select a cell wich contains its name.

Is there a better solution to focus the view right to a selected object?

Thank you in advance

bye
  #2  
Old 03-15-2010
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

You can use the selectedobject() command to know which cell was clicked on in a table.

Attached is an example that shows how this can be done.
Attached Files
File Type: zip gui_tableclick.zip (19.1 KB, 173 views)
The Following 4 Users Say Thank You to Phil BoBo For This Useful Post:
Tom David (03-16-2010)

Tags
cell, guis, table, view, zoom


Thread Thread Starter Forum Replies Last Post
change the objects in self modeled objects Manuel Kraenzle Q&A 7 10-27-2008 02:29 PM
Can I make a column of a global table to type table? qin tian Q&A 0 10-01-2008 09:27 PM
Error: Cannot find the input table or query 'Objects'. AlanZhang Q&A 8 05-04-2008 07:06 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.