Sign in to follow this  
Followers 0
altex

How to intercept an action when program is running?

5 posts in this topic

#1 ·  Posted (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 by altex

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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"

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0