In my application I have a processing which produce a "freeze" feeling.
I can avoid this with a progressbar updated like this (freepascal code) :
while (g_main_context_iteration (NULL, FALSE)) do
Fraction := I / Number_of_Channels;
scan_label := PChar(' Capturing Channel #'+inttostr(I)+' ['+C_A[I]+']...');
gtk_statusbar_push (GTK_STATUSBAR (pStatusBar), 0, scan_label);
This works fine but now I'd like to add a CANCEL button to stop the processing if needed.
However I'm unable to keep any button reachable during the operation.
Does anyone know how to proceed please ?