All pastes #79175 Raw Edit

Stuff

public text v1 · immutable
·published 2006-07-05 01:05 UTC
rendered paste body
I have 3 classes that need to interact with eachother. One is called "fsActions" the other is "fsCodeEditor", and the final one is "fsMainUI". In my main source file (which is not a class), I have defined fsCodeEditor as "ce" which created a new instance of the StyledTextCtrl. In "fsActions" I have functions such as "fsActions.Cut()", "fsActions.Copy()", etc. I need to call them from the fsMainUI which controls the menubar and toolbar. However, the functions need to know which instance of fsCodeEditor to apply the Cut, Copy, Paste, etc functions to. So I have to tell fsActions to use the "ce" instance from my main source file. But I have no idea how. That's as clear as I can make it. :(