www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Style Question - OO or procedural

reply "Charles" <noone nowhere.com> writes:
In the examples for DWT there are a couple different ways for GUI startup ,
such as making a class inherit from Composite, and showing the GUI via a
static method showGUI()  ( dummyeclipse.d ) , and the other way of creating
the Shell in main () and passing it to your main GUI class.

Not having done any real SWT programming im wondering which method is
preferable ?
Feb 19 2006
parent reply "Shawn Liu" <shawn666.liu gmail.com> writes:
"Charles" <noone nowhere.com> says:dta2ut$2fih$1 digitaldaemon.com...
 In the examples for DWT there are a couple different ways for GUI startup 
 ,
 such as making a class inherit from Composite, and showing the GUI via a
 static method showGUI()  ( dummyeclipse.d ) , and the other way of 
 creating
 the Shell in main () and passing it to your main GUI class.

 Not having done any real SWT programming im wondering which method is
 preferable ?

Some example was ported from Java which was generated by GUI Builder. And it is always inherit from Composite or Shell or Dialog in order to parse the initGUI() or initComponents() method to show the GUI desinger. http://www.cloudgarden.com/jigloo/ http://www.swt-designer.com/
Feb 20 2006
parent reply "Charles" <noone nowhere.com> writes:
 And it is always inherit from Composite or Shell or Dialog in order to
 parse the initGUI() or initComponents() method to show the GUI desinger

Ahh that was my second question, what are all these **Auto Generated** comments. Do you think we shloud pressure swt-designer into creating code for DWT also -- or wait till DWT's a little more solid ? "Shawn Liu" <shawn666.liu gmail.com> wrote in message news:dtcjsv$1td7$1 digitaldaemon.com...
 "Charles" <noone nowhere.com> says:dta2ut$2fih$1 digitaldaemon.com...
 In the examples for DWT there are a couple different ways for GUI


 ,
 such as making a class inherit from Composite, and showing the GUI via a
 static method showGUI()  ( dummyeclipse.d ) , and the other way of
 creating
 the Shell in main () and passing it to your main GUI class.

 Not having done any real SWT programming im wondering which method is
 preferable ?

Some example was ported from Java which was generated by GUI Builder. And it is always inherit from Composite or Shell or Dialog in order to parse the initGUI() or initComponents() method to show the GUI desinger. http://www.cloudgarden.com/jigloo/ http://www.swt-designer.com/

Feb 20 2006
parent reply "Charles" <noone nowhere.com> writes:
Also not sure if you know this , but your email has 666 in it, which in the
christian faith is 'The Mark of the Beast', represents the devil.

Actually Ive heard lots of theories as to what this means but the most
popular is that the Roman Ruler at the time ( Nero Ceasar ), in its seven
letter hebrew name adds up to 666 ( 50+200+6+50+100+60+200 )  . All hebrew
letters have a numeric value.  Theres a whole jewish sub culture that tries
to find hidden meanings in words, called Gematria .  This was recently
popularized by the Darren Arronfsky's movie PI -- where the true name for
god lies in PI .


Anyway you might consider removing that or risk offending some one :).

Charlie



"Charles" <noone nowhere.com> wrote in message
news:dtcobj$229c$1 digitaldaemon.com...
 And it is always inherit from Composite or Shell or Dialog in order to
 parse the initGUI() or initComponents() method to show the GUI desinger

Ahh that was my second question, what are all these **Auto Generated** comments. Do you think we shloud pressure swt-designer into creating code for DWT also -- or wait till DWT's a little more solid ? "Shawn Liu" <shawn666.liu gmail.com> wrote in message news:dtcjsv$1td7$1 digitaldaemon.com...
 "Charles" <noone nowhere.com> says:dta2ut$2fih$1 digitaldaemon.com...
 In the examples for DWT there are a couple different ways for GUI


 ,
 such as making a class inherit from Composite, and showing the GUI via



 static method showGUI()  ( dummyeclipse.d ) , and the other way of
 creating
 the Shell in main () and passing it to your main GUI class.

 Not having done any real SWT programming im wondering which method is
 preferable ?

Some example was ported from Java which was generated by GUI Builder. And it is always inherit from Composite or Shell or Dialog in order to parse the initGUI() or initComponents() method to show the GUI desinger. http://www.cloudgarden.com/jigloo/ http://www.swt-designer.com/


Feb 20 2006
parent reply "Shawn Liu" <shawn666.liu gmail.com> writes:
"Charles" <noone nowhere.com> says:dtctla$27hj$1 digitaldaemon.com...
 Also not sure if you know this , but your email has 666 in it, which in 
 the
 christian faith is 'The Mark of the Beast', represents the devil.

 Actually Ive heard lots of theories as to what this means but the most
 popular is that the Roman Ruler at the time ( Nero Ceasar ), in its seven
 letter hebrew name adds up to 666 ( 50+200+6+50+100+60+200 )  . All hebrew
 letters have a numeric value.  Theres a whole jewish sub culture that 
 tries
 to find hidden meanings in words, called Gematria .  This was recently
 popularized by the Darren Arronfsky's movie PI -- where the true name for
 god lies in PI .


 Anyway you might consider removing that or risk offending some one :).

 Charlie

I don't wanna offend anybody at all. 6,8,9 are lucky numbers in Chinese. 6 means able and successful. 8 means earning money and get rich. 9 means long time and long life. Some Chinese even spent much money to gain an auto license or mobile phone number which ends with 6,8 or 9. And more, the pronunciation of 6 in Chinese is the same as "liu". And the email address without numbers is occuppied by somebody else. That is why I choose this as my e-mail address.
Feb 27 2006
parent reply Charles <noone nowhere.com> writes:
 I don't wanna offend anybody at all.

Yes thats what i figured :). Just wanted to let you know.
 6,8,9 are lucky numbers in Chinese. 6 means able and successful.
 8 means earning money and get rich. 9 means long time and long life.
 Some Chinese even spent much money to gain an auto license or mobile
 phone number which ends with 6,8 or 9.

Cool, are there any 'unlucky' chinese numbers ? US has unlucky 13 -- alot of buildings wont even have a floor 13, they go straight to 14. Charlie Shawn Liu wrote:
 "Charles" <noone nowhere.com> says:dtctla$27hj$1 digitaldaemon.com...
 
Also not sure if you know this , but your email has 666 in it, which in 
the
christian faith is 'The Mark of the Beast', represents the devil.

Actually Ive heard lots of theories as to what this means but the most
popular is that the Roman Ruler at the time ( Nero Ceasar ), in its seven
letter hebrew name adds up to 666 ( 50+200+6+50+100+60+200 )  . All hebrew
letters have a numeric value.  Theres a whole jewish sub culture that 
tries
to find hidden meanings in words, called Gematria .  This was recently
popularized by the Darren Arronfsky's movie PI -- where the true name for
god lies in PI .


Anyway you might consider removing that or risk offending some one :).

Charlie

I don't wanna offend anybody at all. 6,8,9 are lucky numbers in Chinese. 6 means able and successful. 8 means earning money and get rich. 9 means long time and long life. Some Chinese even spent much money to gain an auto license or mobile phone number which ends with 6,8 or 9. And more, the pronunciation of 6 in Chinese is the same as "liu". And the email address without numbers is occuppied by somebody else. That is why I choose this as my e-mail address.

Feb 27 2006
parent pragma <pragma_member pathlink.com> writes:
In article <dtvvg2$2otu$1 digitaldaemon.com>, Charles says...
 I don't wanna offend anybody at all.

Yes thats what i figured :). Just wanted to let you know.
 6,8,9 are lucky numbers in Chinese. 6 means able and successful.
 8 means earning money and get rich. 9 means long time and long life.
 Some Chinese even spent much money to gain an auto license or mobile
 phone number which ends with 6,8 or 9.

Cool, are there any 'unlucky' chinese numbers ? US has unlucky 13 -- alot of buildings wont even have a floor 13, they go straight to 14. Charlie

Passenger seats on airplanes also tend to skip the 13th row, even if your ticket says "row 13"! Of course, for some planes, this is located next to the lavatory anyway, so I guess it really is unlucky. - EricAnderton at yahoo
Feb 28 2006