Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Intermediate
Date of registration: Jan 1st 2009
Location: Hanover, Germany
Occupation: Software Engineer
Hobbies: Hilbert Curves
Source code |
|
1 |
d << ~*(button("&Chicken", qdYes) | button("&Egg", qdNo) | button("&Don't Care", qdCancel)) |
Intermediate
Date of registration: Jan 1st 2009
Location: Hanover, Germany
Occupation: Software Engineer
Hobbies: Hilbert Curves
Jabaco Source |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Dim d as new QDialog d.title("My second dialog") d.image(myIconResource) d.columnbreak() d.spacer(20) d.message("Which came first, the chicken or the egg?") d.sectionbreak() d.spacer() d.buttons(d.button("&Chicken", qdYes), d.button("&Egg", qdNo), d.button("&Don't Care", qdCancel)) d.spacer() d.checkBox("Don't ask again", check) ' not quite sure about the purpose of the "check" variable if d.show() = qdYes then ' ..... end if |
This post has been edited 1 times, last edit by "A1880" (May 15th 2011, 10:07am)
Jabaco Source |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
public class Simple { public static void main(String[] args) { QDialog d = new QDialog(); d.title("My second dialog"); d.image("ChickenEgg.png"); d.message("Which came first, the chicken or the egg?"); d.buttons(d.button("&Chicken"), d.button("&Egg"), d.button("&Don't Care")); d.checkBox("Don't ask again"); d.shows(); } } |