I'm and old time gui writer for this project and I haven't written
diddlly in pascal with LCNC so take my thoughts fo what yoou think they
are worth.  On multi tabbed notebooks it is important to remember that
every vaariable in lCNC has a working state like; on, off, value.  And
I've known seveeral folk who had GUI failures during a auto program run
.  I try to make every page in the gui reflect the current working
state of necessary elements when the page pops up.  Machine working
state may not be dependent on the existence of the element referring to
it on a page but you may change machine state from a widget on the page
but the widget is not responsible for maintaining the variable.  Stuff
like buttons text and color should be derived from the current value of
a variable rather than set up by the widget itself.  HTH  Ray        

On Thu, 2024-07-11 at 17:20 -0400, Ted wrote:
> Greets - I'm building a from-scratch standalong gui with small 
> real-estate (800x480 5" touchscreen). Obviously I won't be able to have 
> the traditional "full featured" elements like SilverDragon, but that's 
> ok. What I do have is a tab-widget with 5 tabs that hold all of my 
> workflows, but there are a couple buttons that need to be on multiple 
> tabs, such as CycleStart, FeedHold, Lubrication Enabled, etc. The "easy" 
> way of solving this would be to have them on a section of the 
> MainWindow, outside of the tab-widget, however there are tabs where I do 
> *not* want those buttons, so this isn't a preference. I would like to 
> have for example a "Lubrication Enabled" button on tabs 1 and 3, and if 
> I click it on tab 1, its actions, including status are mirrored to the 
> same button on tab 3, and vice versa. The buttons I want to use in this 
> case are indicating buttons, since it lets me quite easily add nice 
> graphic icons for the applicable button states. HAL signals would of 
> course be what trigger the hardware.
> 
> What is the recommended way of slaving multiple buttons together? Just 
> HAL or just signals, or both?
> 
> Thanks,
> 
> TH.
> 
> 



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to