[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KMessageBox question
From:       Martin Koller <m.koller () surfeu ! at>
Date:       2004-01-10 21:09:58
Message-ID: 200401102209.58819.m.koller () surfeu ! at
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 10 January 2004 21:27, Kevin Krammer wrote:
> On Saturday 10 January 2004 21:09, Martin Koller wrote:
> > Hi all,
> >
> > I'm currently continuing my work on the joystick KCM, and when the user
> > clicks on "Calibrate", I like to open a Message Box, which tells the user
> > to center the joystick ... and click on OK to continue (or Cancel to
> > abort).
> >
> > So this is not a question, therefore KMessageBox::questionYesNo() is not
> > appropriate.
> > It's also not a warning, therefore KMessageBox::warningContinueCancel()
> > is not appropriate.
> > KMessageBox::information() has only the OK button, and
> > trying to use KMessageBox::messageBox( ... Information ...) displays also
> > only the OK button.
>
> KMessageBox::messageBox() use KMessageBox::Information as the Dialog Type
> and KGuiItem::ok() as Yes Option and KGuiItem::cancel() as No Option

As I said, that does not work.
Looking in kmessagebox.cpp I see, that giving KMessageBox::Information calls 
internally 
        case Information:
00953             KMessageBox::informationWId( parent_id,
00954                                       text, caption, dontShow, 
options );
00955             return KMessageBox::Ok;

so this type does not allow 2 buttons.

- -- 
Best regards/Schöne Grüße

Martin
registered as user #332716 with the Linux Counter, http://counter.li.org

       Some operating systems are called 'user friendly',
             Linux however is 'expert friendly'.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFAAGomHmdPoI37D4YRAtsXAJkBlGRAVMTEMijGEiAYe2CGFQBiyQCgmlXF
w9EiigT1PNjoIv+DRnWoD24=
=RupY
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic