Hi,
In my application I have a processing which produce a "freeze" feeling.
I can avoid this with a progressbar updated like this (freepascal code) :
Code:
while (g_main_context_iteration (NULL, FALSE)) do
begin
Fraction := I / Number_of_Channels;
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(pProgressBarScan), Fraction);
scan_label := PChar(' Capturing Channel #'+inttostr(I)+' ['+C_A[I]+']...');
gtk_statusbar_push (GTK_STATUSBAR (pStatusBar), 0, scan_label);
gtk_main_iteration;
end;
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 ?
Thx.
T6