Dialog box with apply button 
Author Message
 Dialog box with apply button

Hi ,

is there a way to have an 'Apply' button   in a dialog box ( besides 'Ok' ) which does not close
the Dialog ?

Thanks Uwe

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Uwe Sauerbrei

Quote:
>>>"Runtime error in REALITY.SYS - Please reboot universe "<<<



Mon, 08 Jul 2002 03:00:00 GMT  
 Dialog box with apply button
Try this

my $dialog = $main->Dialog(-buttons => ['Apply']);
$button_pressed = $dialog->show();
if($button_pressed eq 'Apply')
{
   do_something();
   return;

Quote:
}



Quote:
> Hi ,

> is there a way to have an 'Apply' button   in a dialog box ( besides

'Ok' ) which does not close
Quote:
> the Dialog ?

> Thanks Uwe

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++

Quote:
> Uwe Sauerbrei
> >>>"Runtime error in REALITY.SYS - Please reboot universe "<<<

Sent via Deja.com http://www.deja.com/
Before you buy.


Tue, 09 Jul 2002 03:00:00 GMT  
 Dialog box with apply button

Quote:

> Try this

> my $dialog = $main->Dialog(-buttons => ['Apply']);
> $button_pressed = $dialog->show();
> if($button_pressed eq 'Apply')
> {
>    do_something();
>    return;
> }



> > Hi ,

> > is there a way to have an 'Apply' button   in a dialog box ( besides
> 'Ok' ) which does not close
> > the Dialog ?

> > Thanks Uwe

I tried it, but it didn't work . The  Dialogbox still disappears...

--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Uwe Sauerbrei / TE411
Alcatel Kommunikations-Elektronik GmbH
Wohlenbergstr. 3, 30179 Hannover
Phone: ++49 (0)511 6747-249

- Show quoted text -

Quote:
>>>"Runtime error in REALITY.SYS - Please reboot universe "<<<



Tue, 09 Jul 2002 03:00:00 GMT  
 Dialog box with apply button

Quote:

> Hi ,

> is there a way to have an 'Apply' button   in a dialog box ( besides 'Ok' ) which does not close
> the Dialog ?

You can construct own Dialogs using a Toplevel window, the grab()
method and waitVariable().

Regards,
        Slaven

--
use Tk;$c=tkinit->Canvas(-he,20)->grid;$x=5;map{s!\n!!g;map{create$c 'line'=>
map{$a=-43+ord;($x+($a>>3)*2=>5+($a&7)*2)}split''}split"!";$x+=12}split/_/=>'K
PI1_+09IPK_K;-OA1_+K!;A__1;Q!7G_1+QK_3CLPI90,_+K!;A_+1!KQ!.N_K+1Q!.F_1+KN.Q__1+
KN._K+1Q!.F_1+KN.Q_+1Q__+1!KQ!.N_1;Q!7G_K3,09Q_+1!K.Q_K+1Q!.F_1+KN.Q_';MainLoop



Tue, 09 Jul 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Getting around javascript dialog box confirm button

2. Sizing a dialog box button?

3. Creating dialog boxes with tkperl

4. Dialog box module for Win32?

5. Help: Dialog box in web browser

6. Changing the filename in the download dialog box

7. Win32 & OLE Dialog box in Word

8. CGI saving file dialog box

9. FTP/HTTP -- GUI/Dialog BOX

10. Windows NT Open file dialog boxes - How?

11. HELP: Problem w/Tk, Dialog Boxes

12. question: perl cgi/dbi script with javascript dialog box

 

 
Powered by phpBB® Forum Software