Author |
Message |
25/04/2008 15:22:05
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi Björn,
we would like to have an enhanced Yes-No-Popup with three answers Yes-No-Cancel.
Don't you think that would be a true enrichment to your features?
Thanks for thinking it over ....
Frauke
|
|
|
25/04/2008 15:37:54
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5519
Offline
|
Hi Frauke,
yes... (see Screenshot) - is part of next update.
Code:
YESNOPopup ynp = YESNOPopup.createInstance
(
"Please read",
"This is the content of the popup. Please either select YES or NO - or leave the popup by clicking the corner-close button.",
new IYesNoListener()
{
public void reactOnNo()
{
Statusbar.outputMessage("No was pressed inside the popup.");
}
public void reactOnYes()
{
Statusbar.outputMessage("Yes was pressed inside the popup.");
}
}
);
ynp.setShowCancel(true);
Björn
|
Filename |
yesnopopup.jpg |
Download
|
Description |
|
Filesize |
13 Kbytes
|
Downloaded: |
448 time(s) |
|
Björn Müller, CaptainCasa GmbH |
|
|
25/04/2008 15:41:56
|
hilka
Power User
Joined: 23/11/2007 09:00:08
Messages: 191
Offline
|
Great!
Tobias
|
|
|
28/04/2008 11:15:24
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi Björn,
it works,
but I don't like the look of it.
See screenshot immediatly after the dialog was opened.
Frauke
Filename |
YesNoCancel.JPG |
Download
|
Description |
|
Filesize |
15 Kbytes
|
Downloaded: |
502 time(s) |
|
|
|
28/04/2008 11:19:41
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5519
Offline
|
...this should have to do with "your" style management: I believe any button has the minimum width of 100 pixels in your style...
Could you check?
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
28/04/2008 11:22:46
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Yes, you are right, its even "120+"
|
|
|
29/04/2008 16:41:09
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi Björn,
could you reset the showCancel property to false as default in YesNoPoup.createInstance? Now the cancel button appears in any YesNoPopup after it has been set once.
Anything we could do about the sizing problem (see previous posts)?
Can I define a YesNoPopup style with a smaller button size?
I am not permitted to change our global default button style!
Thanks,
Frauke
|
|
|
13/05/2008 14:00:37
|
hilka
Power User
Joined: 23/11/2007 09:00:08
Messages: 191
Offline
|
Hi Captain,
what about providing a separate style definition for every control provided by the framework. In this case: some style definition like "buttonInYesNoPopup".
We faced this issue already with your image capture control which also uses the default styles and not a separate definition.
And with this: some possibility for defining variables?
Tobias
|
|
|
02/06/2008 14:05:10
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi Björn,
please remember the button sizing problem.
I got some feedback concerning the scrollbar in the popup from "outside".
All I can do is pass the ball on to you....
Please consider Tobi's idea about the popup style.
Thanks
Frauke
|
|
|
04/06/2008 07:22:16
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5519
Offline
|
The size of the buttons in the popup is now defined by "CaptainCasa". Basta!
Thanks for reminding...
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
10/06/2008 08:53:51
|
wocher
Power User
Joined: 14/04/2008 13:10:19
Messages: 49
Location: Ravensburg
Offline
|
Hi Björn,
in which lib is the IYesNoListener i can not find this.
Greet Wocher
[edit] ok resolved i write the import self, then its work.
the combination strg + shift + o failed :/
|
„Ein Haus ohne Bücher ist arm, auch wenn schöne Teppiche seinen Boden und kostbare Tapeten und Bilder die Wände bedecken.“
Hermann Hesse, Dichter, Schriftsteller und Maler * 02. 07. 1877 - Calw † 09. 08. 1962 - Montagnola, Schweiz
Rainer Wocher Quentia Development GmbH (Sotware Developer) |
|
|
10/06/2008 14:28:04
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5519
Offline
|
..it's an inner interface of YesNoPopup.
Code:
public class YESNOPopup
implements Serializable, IModalPopupListener
{
// ------------------------------------------------------------------------
// inner classes
// ------------------------------------------------------------------------
public static interface IYesNoListener
{
public void reactOnYes();
public void reactOnNo();
}
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|