I need a colour selector dialog for a WinC panel. Is it possible to create a ColorDialog class object at run time and attach to the panel? I know this is possible for a WPF panel but not sure about WinC.. If not, what are my options here?
Try using CommonDialog control.
Great... Thank You Ashfaq
Use Plex runtime see in plex help "ObControlAPI::SetProperty" You can use the special value *DIALOG
See StellaTools model: StellaTools.AutoTestBox.UI.Abstract._MaintainModelConfig
Thank You George. I will check that.. Say, I selected a colour for a record and stored that colour value to database against that record.
I want to display those records in a WinC grid and I want the selected colour to be displayed in the Grid in a particular column. Is it possible to change the background colour of a grid cell using runtimes? I can't use control states..
well from my screen shot that is exactly what I am doing but in a single instance. I allow the user to choose a colour and that colour is saved to the database, then the current colour is displayed in the REGION control. But grids you can't (see winwidgets help and there are no api to change colour of cells)...work around is to select the grid row and display the record in a single instance and copy my code.
okies .. May be I have to replace the Plex grid with a MSFlexGrid control ... then this is easy...thanks George.