« Back

SET_ICON_VISIBLE function

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
SET_ICON_VISIBLE function
community documentation configuration functionality
Answer
4/23/14 7:04 AM
I want to hide some icons located in the quickaccessbar. I've added the next line in the event handler for the event AppInitialize, but the icons still appear:
 CC "Application" SET_ICON_VISIBLE component: "simulation" name: "Path analysis" visible: 0

Which is the correct way to write this condition and which is the mistake I'm making?

RE: SET_ICON_VISIBLE function
Answer
4/23/14 7:05 AM as a reply to Karen Poch.
In order to hide icons, you need to use the name ID of the icon. For a list of all available icons, please refer to the list below. The captial name represents the one to be used in the command.
The example below shows the use of the command  SET_ICON_VISIBLE in the event handler of the event "AppInitialized":

1ON_EVENT "AppInitialized"
2{
3  CC "Application" SET_ICON_VISIBLE component: "simulation" name: "PATH" visible: 0
4}

List with the icon identifiers for all predefined ADOxx icons:

Icon IDIcon Description
BACKNavigate back
FWDNavigate forward
LISTWindow list
EXCELAcquisition tables
NEWNew model
MLOADOpen model
SAVESave model
MPRINTPrint model
APLOADApplication models
UNDOUndo
CUTCut
COPYCopy
PASTEPaste
VGRAPHView graphics
VTABLEView table
ZOOMZoom
ONEONEScale 1:1
ALLMake all visible
RAACTSnap grid active
RAVISSnap grid visible
FINDFind
CHNGGlobal change
HORIAlign horizontally
VERTAlign vertically
AREADrawing area size
MGGENGraphics generation
COSTTime and costs
QUERIQueries/Reports
USQUERIPredefined queries
RELTABSRelation tables
ANALYCalculation
PATHPath analysis
WORKLCapacity analysis
VOLWorkload analysis (steady-state)
VOLDYNWorkload analysis (fixed time period)
AGENTAgents
OFFLINEOffline animation
DELSIMDelete simulation results
DELCACHEFree simulation cache
SLOADOpen model (simulation comp)
SPRINTPrint model (simulation comp)
SGGENGraphics generation (simulation comp)
FLOWFlowMark audit trail evaluation
RESCMPComparison of results
USEVALPredefined queries
CCC_ISTActual-process cost analysus
CCC_PLANPlan-process cost analysis
ADLIMADL import
ADLEXADL export
HTMLHTML export
DOCURTF export
EXCUSTDocumentation options

RE: SET_ICON_VISIBLE function
Answer
4/29/14 12:23 PM as a reply to Sabin Popescu.
Thank you very much. That was very helpful.
And if I want to hide one of the next icons: "Modelling", "Analysis", "Simulation", "Evaluation", "Import/Export", which are their ID's?

RE: SET_ICON_VISIBLE function
component application enable_comp disable_comp
Answer
4/30/14 11:29 AM as a reply to Karen Poch.
Dear Karen,

the icons you are refering to ("Modelling", "Analysis", "Simulation", "Evaluation", "Import/Export") are not menu icons, but icons for changing the ADOxx component, so they are handled differently by ADOxx.

It would be possible to hide some of these icons, but only as part of the product build process. When requesting to build an ADOxx-based Modelling Toolkit, the developer may request to include only some of the ADOxx components, not all of them, and the licence code for that specific Toolkit would be generated according to this request.

Disabling one particular component would result in the corresponding icon appearing grayed. For this, you would have to use the command call DISABLE_COMP of the message port "Application" .  Enabling a prefiously disabled componend can be done with the command call ENABLE_COMP.

The syntax of the command calls is:
1CC "Application" DISABLE_COMP { Component }
2CC "Application" ENABLE_COMP  { Component }

where "Component" may have one of the following values :
1all, acquisition, modeling, analysis, simulation, evaluation, importexport

Below are some examples:
1CC "Application" DISABLE_COMP modeling
2CC "AdoScript" INFOBOX "Modeling has been disabled"
3CC "Application" DISABLE_COMP all
4CC "AdoScript" INFOBOX "All components have been disabled"
5CC "Application" ENABLE_COMP modeling
6CC "AdoScript" INFOBOX "Modeling has been enabled again"
7CC "Application" ENABLE_COMP all
8CC "AdoScript" INFOBOX "All components have been enabled"


The attached file "DISABLED_COMP.png" shows the appearance of the icons for disabled components, where as "ENABLED_COMP.png" displays the icons for enabled components.
Attachment

Attachment

Attachments: DISABLE_COMP.png (2.1k), ENABLE_COMP.png (2.8k)