Search the Community
Showing results for tags 'components'.
Found 3 results
ApFlanagan posted a topic in Screen Components and User InterfaceHello, I have a test file that I've been using to experiment with different UI components. For example, I use user interaction to show/hide various parts of the interface and display differently depending on the state of different variables. This has led to a large amount of named components along with a lot of buttons that have quick sequences as part of their actions. I'd like to incorporate this page into an existing DaqFactory file without having to redo either all of the existing pages on my new file or all of my UI work on the old file. Is there a way to copy the entire contents of a page between DaqFactory files.
Hi, I've written an application which attempts to build a page of user components to based upon a selection of channels by the user. A component group is comprised of a circular gauge, text box and variable value and each group has an enumerated name. To begin with the 15 components are moved out of the window view by '.MoveTo(1400,0)', then each according to the users pre-selected list of channels, each component in turn is positioned using '.MoveTo(x,y)' where x and y are incremented according by the width and height of the component in a left to right, top to bottom fashion. Well that's the plan however something odd is occurring... when the page has been built the groups appear to be inter-spaced by blank areas equal to whole multiples of the groups. However in 'Edit' mode it seems that whilst the groups frame is in correct position the contents of that frame are indeed offset from the group - how odd? After a little probing about I discovered that by selecting any one of a group's components from within any group's sub tree in the workspace view and then, by highlighting any group again, all frames promptly align themselves with their displaced components (all of which are positioned together properly as intended but offset as mentioned). If the page is then redrawn following the above action when the frames become aligned to their contents (not an entirely expected occurrence) then everything pops into position as intended in the first place. No matter how this strange this to me it gives me confidence that my code is in principle correct, I'm guessing this behaviour is a facet of threading ...... Incidentally this behaviour only seems to apply as far as I can tell to groups and I can perform the a similar page building exercise using variable values for example and this works without a hitch. Any ideas please as this issue is causing me a deployment headache. Best wishes, Simon
I was trying to use the OnLButtonUp event with a slider component but found it did not fire (5.87c/2050). Some other events, like OnLButtonDblClk and OnPaint, seem to work as expected. Are some of the mouse events currently unsupported by certain components? If so, I can use another approach. Thanks.