Re: gtkD GUI design

2013-01-31 Thread Johannes Pfau
Am Thu, 31 Jan 2013 12:38:41 +0100 schrieb "SaltySugar" : > I want to do a GUI like this: > http://www.part.lt/img/f44e209eb2ccbc9dda2e6b11fa5c6317747.jpg > > But I've got the following result: > http://www.part.lt/img/f4a238595048be7c23655b02477aabd8447.jpg > > > Thanks. I'd recommend using g

Re: gtkD GUI design

2013-01-31 Thread FG
On 2013-01-31 14:33, SaltySugar wrote: I have two more questions; First, how to remove an arrow on the window's bottom? By making the window fixed-size, not scalable? Second, when I run my program it runs together with console. I want to run only window of application. How to do it? This ha

Re: gtkD GUI design

2013-01-31 Thread FG
On 2013-01-31 13:35, SaltySugar wrote: Thanks, setBorderWidth() is working but button's size isn't changing. I don't have a working gtk environment to test it, but try this: (maybe hBox2 isn't even needed and you could vBox.add(algn1);) import gtk.MainWindow; import gtk.Label; imp

Re: gtkD GUI design

2013-01-31 Thread SaltySugar
On Thursday, 31 January 2013 at 12:35:44 UTC, SaltySugar wrote: On Thursday, 31 January 2013 at 12:21:55 UTC, FG wrote: On 2013-01-31 12:38, SaltySugar wrote: HBox hBox = new HBox(false, 3); HBox hBox1 = new HBox(false, 3); VBox vBox = new VBox(false, 5); Button bt

Re: gtkD GUI design

2013-01-31 Thread SaltySugar
On Thursday, 31 January 2013 at 12:21:55 UTC, FG wrote: On 2013-01-31 12:38, SaltySugar wrote: HBox hBox = new HBox(false, 3); HBox hBox1 = new HBox(false, 3); VBox vBox = new VBox(false, 5); Button btnLog = new Button("LOGIN --->"); Label lblNick = new

Re: gtkD GUI design

2013-01-31 Thread FG
On 2013-01-31 12:38, SaltySugar wrote: HBox hBox = new HBox(false, 3); HBox hBox1 = new HBox(false, 3); VBox vBox = new VBox(false, 5); Button btnLog = new Button("LOGIN --->"); Label lblNick = new Label("User: "); Entry txtNick = new Entry(

Re: gtkD GUI design

2013-01-31 Thread SaltySugar
On Thursday, 31 January 2013 at 11:43:14 UTC, SaltySugar wrote: On Thursday, 31 January 2013 at 11:41:52 UTC, SaltySugar wrote: On Thursday, 31 January 2013 at 11:38:42 UTC, SaltySugar wrote: I want to do a GUI like this: http://www.part.lt/img/f44e209eb2ccbc9dda2e6b11fa5c6317747.jpg But I've

Re: gtkD GUI design

2013-01-31 Thread SaltySugar
On Thursday, 31 January 2013 at 11:38:42 UTC, SaltySugar wrote: I want to do a GUI like this: http://www.part.lt/img/f44e209eb2ccbc9dda2e6b11fa5c6317747.jpg But I've got the following result: http://www.part.lt/img/f4a238595048be7c23655b02477aabd8447.jpg My Code: import gtk.MainWindow; import

Re: gtkD GUI design

2013-01-31 Thread SaltySugar
On Thursday, 31 January 2013 at 11:41:52 UTC, SaltySugar wrote: On Thursday, 31 January 2013 at 11:38:42 UTC, SaltySugar wrote: I want to do a GUI like this: http://www.part.lt/img/f44e209eb2ccbc9dda2e6b11fa5c6317747.jpg But I've got the following result: http://www.part.lt/img/f4a238595048be7c

gtkD GUI design

2013-01-31 Thread SaltySugar
I want to do a GUI like this: http://www.part.lt/img/f44e209eb2ccbc9dda2e6b11fa5c6317747.jpg But I've got the following result: http://www.part.lt/img/f4a238595048be7c23655b02477aabd8447.jpg My Code: import gtk.MainWindow; import gtk.Label; import gtk.Button; import gtk.VBox; import gtk.HBox;