altex Posted September 29, 2014 Share Posted September 29, 2014 (edited) Hello, A new question just came across. How to intercept an action when program is running? To be more specific, for example, I have several GUI Menu items on the main GUI window and a progress bar. During the progress bar is running, I'd like to browse the menu as normal and click on sub-item, which will pop up a new GUI window(e.g. "Settings" window). Most importantly, the ongoing program on the old background window is not interrupted, in this case, the progress bar is still going. Does anyone have idea how to implement this? Thanks Edited September 29, 2014 by altex Link to comment Share on other sites More sharing options...
Radiance Posted September 30, 2014 Share Posted September 30, 2014 Hey, when running the GUIOnEventMode option, polling the GUI while doing other stuff shouldn't be a problem. As for not interrupting the main GUI, the only solution I ever found was to start a different .exe which creates your new GUI. (or running the same .exe with command line switches) You can still set the second GUI as a child window to the first one, even if it isn't running in the same process. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 30, 2014 Moderators Share Posted September 30, 2014 altex,Take a look at the Interrupting a running function tutorial in the Wiki - that may well be what you need. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Radiance Posted September 30, 2014 Share Posted September 30, 2014 Take a look at the Interrupting a running function tutorial in the Wiki - that may well be what you need. As far as I understood he wants to keep his progress bar in the main GUI loading while being in different function, this could be a pain to implement with the link you provided depending on how much the GUI should still be accessible. Then again I don't know where you get your progress data from. Maybe you should also take a look at the AdLibRegister function. Link to comment Share on other sites More sharing options...
altex Posted September 30, 2014 Author Share Posted September 30, 2014 Hi M23, Based on my understanding, "Interrupt" means terminating an ongoing function by executing a new function. In my case, the ongoing function is drawing progress bar and new function would be showing a new window after clicking sub-item on the menu bar, (for example, the "settings" window.). Radiance he got the point of my question that I want the progress bar still going even after the new "Setting" window is opened. In other words, this case is not exactly "interrupting a running function" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now