Re: Framework design, initialization and framework usage

2019-05-07 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 6 May 2019 at 16:50:14 UTC, Robert M. Münch wrote: I want to build a framework which gives some structure to the app using it. I'm curious. What's the ultimate aim of the framework you're working on? An aid to building web apps? Desktop apps? Or something more specific like 3D,

Re: Blog Post #0033 - Faking an ImageMenuItem with an AccelKey

2019-05-07 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 7 May 2019 at 11:46:01 UTC, number wrote: On Tuesday, 7 May 2019 at 09:39:55 UTC, Ron Tarrant wrote: the github link links to file .._16_.. from 0032 instead of .._17_.. some end block comments need update: class FileMenuHeader ... } // class FileMenu void reportStuff } //

Re: Blog Post #0032 - Menu Accelerator Keys

2019-05-07 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 7 May 2019 at 12:02:10 UTC, number wrote: On Friday, 3 May 2019 at 12:12:32 UTC, Ron Tarrant wrote: void doSomething(MenuItem mi) } // doSomethingNew() There is also 4 times a comment '// arg: ...' that doesn't make sense in that context. It always makes me happy when you

Re: Nothing at all compiles with -m64 on Windows

2019-05-07 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 7 May 2019 at 14:50:17 UTC, Anonymouse wrote: Obviously something is wrong with the environment/setup. What can I do? I've had this happen, too. I don't know for sure, but I think it may be because the installers aren't prepared to do updates, not on Windows, anyway. My best

Blog Post #0033 - Faking an ImageMenuItem with an AccelKey

2019-05-07 Thread Ron Tarrant via Digitalmars-d-learn
While browsing the GTK source, I came across a comment showing how to fake the deprecated ImageMenuItem and add an AccelKey. I'm not sure why this was considered useful enough to write about in the source comments, but it sounded like an interesting exercise. So I ported the code from C to D

Re: Can't use threads

2019-05-06 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 4 May 2019 at 22:29:26 UTC, Aldo wrote: i'm trying to run 3 threads with the following code : https://run.dlang.io/is/p4ThlD Works for me... Windows 10 Pro DMD 2.085.1 (-de -w -m64 switches) Note: I didn't use dub, so perhaps there's something going on there.

Blog Post #0032 - Menu Accelerator Keys

2019-05-03 Thread Ron Tarrant via Digitalmars-d-learn
An accelerating post for a rainy Friday (well, it's raining here, at least) all about menu accelerator keys. Here's the link: http://gtkdcoding.com/2019/05/03/0032-accelerator_keys.html

Blog Post #0031 - An Image on a Menu

2019-04-30 Thread Ron Tarrant via Digitalmars-d-learn
Hi all, Time for another exciting adventure in GtkD-land. For your perusal: how to put images and icons in a menu. You'll find it right over here: http://gtkdcoding.com/2019/04/30/0031-imagemenuitem.html

Re: gtkDcoding Blog: Post #0030 - A More Practical RadioMenuItem Example

2019-04-27 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 27 April 2019 at 13:23:55 UTC, number wrote: There are links to the previous blog post and github code but there is no link to the github code for this one. It's probably this one:

Re: DMD different compiler behaviour on Linux and Windows

2019-04-26 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 25 April 2019 at 20:38:31 UTC, Mike Parker wrote: If you compile with -m32 on Windows the error goes away. Not trying to be a but it also works with -m64 on Windows.

Re: GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-26 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 26 April 2019 at 09:36:04 UTC, Russel Winder wrote: If I remember correctly, you have to set up the volume button, set the initial volume, then set up and add the adjustment, and then reset the initial value via the adjustment to get the icon correct. Memory on this is hazy...

gtkDcoding Blog: Post #0030 - A More Practical RadioMenuItem Example

2019-04-26 Thread Ron Tarrant via Digitalmars-d-learn
Once again it's Friday and a new blog post is up. And just a room at the Hotel California (any time of year) you can find it here: http://gtkdcoding.com/2019/04/26/0030-radiomenuitem-practical.html

Re: GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-25 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 25 April 2019 at 17:57:25 UTC, Mike Wey wrote: On 25-04-2019 15:19, Ron Tarrant wrote: This looks like an issue with GTK, the icon is not updated when changing the Adjustment, only when the value changes. So, it should be reported directly to the GTK people rather than...

Re: Retrieving Column Data from a ListStore?

2019-04-25 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 25 April 2019 at 11:29:04 UTC, number wrote: I'm trying to do it with multi-selection. It works now but I wonder if it's right to just create a dummy TreeModelIF to call getSelectedRows()? Same question for creating a TreeIter to call getIter()? Whatever works, I guess. Just

Re: GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-25 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 25 April 2019 at 12:40:00 UTC, number wrote: On Thursday, 25 April 2019 at 11:36:26 UTC, Ron Tarrant wrote: When running this example of a VolumeButton, ... When using `setValue(initialValue)` after `setAdjustment()` the scale seems have the correct value. If in addition the

GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-25 Thread Ron Tarrant via Digitalmars-d-learn
I've scoured the docs, the wrapper code, the Internet, but can't come up with an explanation... When running this example of a VolumeButton, no matter what the initial value of the slider, the icon showing is audio-volume-muted. I wrote up a second test using the parent, a ScaleButton,

Re: SpinButton Signal Oddness...

2019-04-24 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 24 April 2019 at 14:18:00 UTC, Ron Tarrant wrote: I posted this over on the gtkD forum, but thought I'd post here, too, to get a wider pool of expertise: This issue has been resolved over here: https://forum.gtkd.org/groups/GtkD/thread/982/

Re: Retrieving Column Data from a ListStore?

2019-04-24 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 24 April 2019 at 15:13:29 UTC, Mike Wey wrote: The ListStore/TreeModel provides functions to retrieve the data, `gtk.TreeModelIF.TreeModelIF.getValue`. A TreeIter indicates the row these kind of function apply to. Well, this is embarrassing. I tried that earlier and it didn't

Retrieving Column Data from a ListStore?

2019-04-24 Thread Ron Tarrant via Digitalmars-d-learn
Another thing I've been struggling with is fetching data from a TreeIter. Getting the iter itself is no problem, but when it comes to getting the contents of a specific column within the iter, none of the methods I've tried have worked. In fact, it almost seems like none of them are

SpinButton Signal Oddness...

2019-04-24 Thread Ron Tarrant via Digitalmars-d-learn
I posted this over on the gtkD forum, but thought I'd post here, too, to get a wider pool of expertise: I hooked up some signals to a few SpinButtons and I'm getting double-firings, but not all the time. The buttons are as follows: - double, - float with no extra precision, and - float with

Re: gtkDcoding Blog Post # 29 - RadioMenuItems

2019-04-24 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 24 April 2019 at 11:41:12 UTC, number wrote: Are your original php gtk tutorials still available somewhere? I found this (https://php.gtk.general.narkive.com/G1Fuuk38/php-gtk-treeview-toggle) but http://www.writingup.com/ does not respond. I still have the entire set of blog

Re: gtkDcoding Blog Post # 29 - RadioMenuItems

2019-04-23 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 23 April 2019 at 12:21:37 UTC, number wrote: Hi, thanks! little typo: RadioMeniItem How about that? The typo was in the article, not the code. Makes for a change. :) Thanks for catching, number.

gtkDcoding Blog Post # 29 - RadioMenuItems

2019-04-23 Thread Ron Tarrant via Digitalmars-d-learn
Now that we've got Easter out of the way, it's time for another gtkDcoding blog post: http://gtkdcoding.com/2019/04/23/0029-radiomenuitem.html

Re: gtkDcoding Blog Post # 28 - Menu II - CheckMenuItem

2019-04-19 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 19 April 2019 at 17:36:34 UTC, number wrote: The function's closing comments (first code example) need some maintenance, 'exit' also in the code on the page itself: ``` } // exit() ... } // keep() ... } // toss() ``` :) Thanks, as always,

gtkDcoding Blog Post # 28 - Menu II - CheckMenuItem

2019-04-19 Thread Ron Tarrant via Digitalmars-d-learn
Even though it's Good Friday, there's still a new blog post. As the thread title says, it's about using the CheckMenuItem, two examples this time. You can find it here: http://gtkdcoding.com/2019/04/19/0028-checkmenuitems.html Have a great long weekend, everyone!

Re: Instantiating an Object with the Same Object as an Argument?

2019-04-17 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 17 April 2019 at 15:05:22 UTC, Adam D. Ruppe wrote: On Wednesday, 17 April 2019 at 14:49:33 UTC, Ron Tarrant wrote: For instance, one of the Adjustment constructors looks like this: public this(GtkAdjustment* gtkAdjustment, bool ownedRef Those aren't the same thing!

Instantiating an Object with the Same Object as an Argument?

2019-04-17 Thread Ron Tarrant via Digitalmars-d-learn
I've come across this a few times in the wrapper code for GtkD where one of the constructors for an object takes an argument of the same type the constructor produces. For instance, one of the Adjustment constructors looks like this: public this(GtkAdjustment* gtkAdjustment, bool

Re: gtkDcoding Blog Post # 26 - Menu Basics

2019-04-16 Thread Ron Tarrant via Digitalmars-d-learn
It being Tuesday, it's time for another gtkDcoding Blog Post. Today, we continue our exploration of menu topics by looking at mnemonics and separators. You can find it here: http://gtkdcoding.com/2019/04/16/0027-mnemonic-shortcut-key.html

Re: I really don't understand DUB

2019-04-15 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 14 April 2019 at 20:51:10 UTC, Andre Pany wrote: To solve your specify the targetType explicitly in your dub.sdl file. https://dub.pm/package-format-json.html#target-types Kind regards Andre Thanks, Andre. Yeah, I did sort that out. My dilemma ATM is why I'm (seemingly

Re: I really don't understand DUB

2019-04-14 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 8 April 2019 at 19:54:28 UTC, WhatMeWorry wrote: I've been trying to troubleshoot a DUB issue for two days now and I've come to the conclusion, I don't really understand DUB and I'm tired of muddling through. Just so you know who I am and what my experience is: I've only been

Re: gtkDcoding Blog Post # 26 - Menu Basics

2019-04-13 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 13 April 2019 at 09:49:47 UTC, number wrote: On Saturday, 13 April 2019 at 00:25:21 UTC, Ron Tarrant wrote: I'm asking because ... the messagebox sized itself to the shorter text in the content area. They said it's an OS limitation (meaning gtk standard dialogs). Because the

Re: What Does @ Mean?

2019-04-12 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 12 April 2019 at 10:01:40 UTC, wjoe wrote: It's not entirely related but another use of the underscore is to make integers more readable. E.g.: int x = 1_000_000_000_000; And, I suspect, to make numbers easier to translate between English Canadian and French Canadian:

Re: gtkDcoding Blog Post # 26 - Menu Basics

2019-04-12 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 12 April 2019 at 13:56:51 UTC, number wrote: Thanks, I'm still a reader! Excellent. Thanks for letting me know. Are you planning to cover messagebox-like stuff (i.e. gtkdialog.. i guess?) Yes. Right after this series on menus, I start on Dialogs. The first couple of those are

gtkDcoding Blog Post # 26 - Menu Basics

2019-04-12 Thread Ron Tarrant via Digitalmars-d-learn
Today starts a series on GtkD menus. Over the next four weeks, we'll cover enough ground to get you up-n-running with most menu-related topics. And it all starts right here: http://gtkdcoding.com/2019/04/12/0026-menu-basics.html

Re: Templates - What's Up with the template keyword?

2019-04-10 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 10 April 2019 at 00:42:11 UTC, Ali Çehreli wrote: Your code did not work because Point is not a type but a type template. (On the other hand, Point!double is a type). The whole program: Thanks very much, Ali! Obviously, I've got some studying ahead of me.

Re: Templates - What's Up with the template keyword?

2019-04-10 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 10 April 2019 at 00:22:47 UTC, Ali Çehreli wrote: On 04/08/2019 05:23 AM, Ron Tarrant wrote: > But in "Programming in D," (self, 2009-2018) by Ali Çehreli, there's no > mention of the 'template' keyword in any of his examples. 'template' keyword is introduced here:

Re: Templates - What's Up with the template keyword?

2019-04-10 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 9 April 2019 at 20:48:45 UTC, Steven Schveighoffer wrote: The thing that made it click for me is that a template is very akin to a macro substitution -- where you just copy and paste the given parameter wherever its substitute is found. Nicely put. Thanks, Steve. I at least get

Re: Templates - What's Up with the template keyword?

2019-04-09 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 9 April 2019 at 14:41:30 UTC, Alex wrote: Your confusion arises in your understanding of meta programming and templates. Templates are compile time expressions that use parameters. This sounds like another 'no.' :) Thanks for all the info, Alex.

Re: Templates - What's Up with the template keyword?

2019-04-09 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 9 April 2019 at 14:25:18 UTC, Mike Parker wrote: Off the top of my head, to get a Singleton template, you could implement all of your singleton plumbing (thread safety if you need it, etc) in the template and add a `static _instance` member just as you would for any non-templated

Re: Templates - What's Up with the template keyword?

2019-04-09 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 8 April 2019 at 14:56:46 UTC, Mike Parker wrote: In the subsequent sections, I show both long and short (eponymous) forms of enum and function templates. In your book, Mike, you stated: Remember, a template is only instantiated once for each set of arguments and the same

gtkDcoding Blog Post #0025 - LinkButtons

2019-04-09 Thread Ron Tarrant via Digitalmars-d-learn
Good morning! A new post is up on the gtkDcoding blog. It's all about the LinkButton and you can find it here: http://gtkdcoding.com/2019/04/09/0025-creating-and-using-a-linkButton.html

Re: Templates - What's Up with the template keyword?

2019-04-08 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 8 April 2019 at 14:56:46 UTC, Mike Parker wrote: In the subsequent sections, I show both long and short (eponymous) forms of enum and function templates. Forgot to say... I'm typing in the examples as I go and so far I haven't been lost. Even when you don't come right out and say

Re: Templates - What's Up with the template keyword?

2019-04-08 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 8 April 2019 at 14:56:46 UTC, Mike Parker wrote: You should have read further along in that chapter :-) LOL! Actually, after reading Adam's reply, I dug back into your book and I'm starting to get a reasonable handle on this. I must say, I like the slow-but-steady intro you

Re: What Does @ Mean?

2019-04-08 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 8 April 2019 at 14:27:11 UTC, JN wrote: Java uses @ for annotations too. Pascal uses @ for "address of", like & in D. Just one of the many reasons I balked at Java... many MANY reasons. Thanks, JN.

Re: What Does @ Mean?

2019-04-08 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 8 April 2019 at 14:19:04 UTC, XavierAP wrote: On Monday, 8 April 2019 at 11:58:49 UTC, Ron Tarrant wrote: And while I'm asking, does an underscore have special meaning when used either at the beginning or end of a variable name? In D, @ is used as Adam has explained as a prefix

Re: Templates - What's Up with the template keyword?

2019-04-08 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 8 April 2019 at 12:40:10 UTC, Adam D. Ruppe wrote: You don't need template keyword for the majority of cases because the compiler lets you do shortcuts. Thanks, Adam. Good to know. (maybe I am looking at the wrong part of the book, it is hard to find the right section/page number

Re: What Does @ Mean?

2019-04-08 Thread Ron Tarrant via Digitalmars-d-learn
Well, that was quick! Thanks Adam, Kagamin, and Alex.

Templates - What's Up with the template keyword?

2019-04-08 Thread Ron Tarrant via Digitalmars-d-learn
I'm digging into templates in an attempt to understand the signals-n-slots replacement for the observer pattern, but I've got a question I can't seem to find an answer for and an example for which I'm unable to solve the error. First, the question... In Michael Parker's book, "Learning D,"

What Does @ Mean?

2019-04-08 Thread Ron Tarrant via Digitalmars-d-learn
This is frustrating and makes me feel like a complete newb. Worse, it's impossible to search for. Ever try Googling a single character? The D documentation also doesn't seem to explain the meaning of this or any other token. Sure, most of them are obvious, but this one eludes me. All I can

Re: gtkDcoding Blog: Post #0024 - Switch and LightSwitch

2019-04-05 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 5 April 2019 at 14:05:55 UTC, Russel Winder wrote: I get the feeling this blog is going to become an important tutorial resource for people wanting to do GtkD stuff with D. Given D and GtkD is currently the best way of writing Gtk+ applications, this blog is a great resource.

Re: gtkDcoding Blog: Post #0024 - Switch and LightSwitch

2019-04-05 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 5 April 2019 at 13:44:35 UTC, Ron Tarrant wrote: Since the forum seems to have trouble with replies to existing posts, for now I'll be doing a separate post for each. Hope that doesn't get anyone's nose out of joint. Anyway... Today we explore the GTK Switch widget with two

gtkDcoding Blog: Post #0024 - Switch and LightSwitch

2019-04-05 Thread Ron Tarrant via Digitalmars-d-learn
Since the forum seems to have trouble with replies to existing posts, for now I'll be doing a separate post for each. Hope that doesn't get anyone's nose out of joint. Anyway... Today we explore the GTK Switch widget with two examples, a simple one and a complex one. Enjoy.

Re: gtkDcoding Blog Post for 2019-03-29 - Grid

2019-04-03 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 2 April 2019 at 18:27:10 UTC, Mike Wey wrote: While that would be true for things that live on the stack, this is not the case for RGBA. The C version of getRgba uses the "out" parameter so you can pass in a existing GdkRgba, even tough that would make it more like ref. This

Re: gtkDcoding Blog Post for 2019-03-29 - Grid

2019-04-02 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 2 April 2019 at 14:13:09 UTC, number wrote: Thank you! You're welcome. :) The function ignores its argument and always uses member variable button2 instead. Changing the parameter type to MyRadioButton and using 'button' instead of 'button2' in the body works, so you could pass

Re: gtkDcoding Blog Post for 2019-03-29 - Grid

2019-04-02 Thread Ron Tarrant via Digitalmars-d-learn
Today's the day for (yet) another blog post over on gtkDcoding.com and the subjects are: - the RadioButton, and - the ColorButton. You can find it here: http://gtkdcoding.com/2019/04/02/0023-radio-and-color-buttons.html

gtkDcoding Blog Extra: Installation and Usage of D Development Environment - Linux

2019-03-31 Thread Ron Tarrant via Digitalmars-d-learn
Last Sunday, I posted this blog extra, but two of our compatriots here on the D forum pointed out a host of errors and typos. So, after a rewrite and a technical review by none other than Mike Wey, I believe this is now about as accurate as it can be. You can find it here:

Re: gtkDcoding Blog Post for 2019-03-29 - Grid

2019-03-30 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 30 March 2019 at 10:19:15 UTC, number wrote: The first link in the blog post to '..the last blog post' links to the 0022 article itself, not to a previous one. Corrected. BTW, it compiles fine without 'import gtk.c.types', too. Main.d (and maybe others) contains a 'public

Re: gtkDcoding Blog Post for 2019-03-29 - Grid

2019-03-29 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 29 March 2019 at 20:34:32 UTC, Michelle Long wrote: I really wish you would start taking screenshots! It is not hard! You still think this is about me not knowing how to take a screenshot? :) I guess you didn't read my reply to your last request.

Re: gtkDcoding Blog Post for 2019-03-29 - Grid

2019-03-29 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 29 March 2019 at 16:21:59 UTC, aberba wrote: Have shared gtkdcoding.com with some folks and they like it, keep it coming!! Cool. Thanks, aberba.

gtkDcoding Blog Post for 2019-03-29 - Grid

2019-03-29 Thread Ron Tarrant via Digitalmars-d-learn
I'm having trouble replying to the thread I usually use, so... There's a new tutorial for using a GTK Grid. You can find it here: http://gtkdcoding.com/2019/03/29/0022-grids.html

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-26 Thread Ron Tarrant via Digitalmars-d-learn
Tuesday, March 26, 2019 And today's blog post covers creating a Label with a non-default background colour. You can find it here: http://gtkdcoding.com/2019/03/26/0021-labels-with-background-colors-markup.html

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-24 Thread Ron Tarrant via Digitalmars-d-learn
Sunday Blog eXtra: Installing and Using a Linux Build Environment URL: http://gtkdcoding.com/2019/03/24/x0002-gtkd-in-a-linux-environment.html

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-24 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 23 March 2019 at 07:18:02 UTC, number wrote: The first one :), now there's still the other one "Here’s a second code file for you." Done. Thanks, eh.

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 22 March 2019 at 16:40:31 UTC, number wrote: writeln("The text entry box holds: ", fontButton.getFontName()); Again, thank you for catching typos.

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 22 March 2019 at 13:58:48 UTC, number wrote: I think it works in this scenario because private in D works on the module/file level. By gar, you're right. I hadn't even looked into this because I assumed it was the same as PHP and C++. Thanks for pointing this out.

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 22 March 2019 at 13:17:23 UTC, number wrote: Not sure about .md or file version, but there are no links in the actual blog post: http://gtkdcoding.com/2019/02/15/0010-checkbutton.html It's fixed now. and apparently also not in in this .md file:

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
Also forgot... It's Friday again and time for another gtkDcoding blog post. In today's episode, we slap an image onto a Timmy the Button's face, then do a switch up to keep poor Timmy off balance. You can tune in here: http://gtkdcoding.com/2019/03/22/0020-image-buttons.html

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 21 March 2019 at 21:34:26 UTC, Michelle Long wrote: I'd suggest adding pictures! Oops! Forgot to say... I get why you want images. You were asking about animation the other day, so obviously you're a visual artist. So am I and I know how drawn I am to imagery and I imagine

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 21 March 2019 at 21:34:26 UTC, Michelle Long wrote: I'd suggest adding pictures! It's very easy to take a screen shot and not much harder to link them and they offer far more interest. You're the second person to suggest this, so I'll explain my reasoning. I assure you, it's

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 22 March 2019 at 10:02:24 UTC, number wrote: On Tuesday, 12 March 2019 at 14:44:59 UTC, Ron Tarrant wrote: another post on the gtkDcoding blog. 0013 says ... with *setTooltipText()*. Maybe a formatting error? Yup, it was. I'm still trying to break the habit of putting optional

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-22 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 21 March 2019 at 20:49:07 UTC, number wrote: On Tuesday, 12 March 2019 at 14:44:59 UTC, Ron Tarrant wrote: another post on the gtkDcoding blog. 0010 says Here’s the code file. Here’s a second code file for you. but no links. I guess it's

Re: gtkD: How to paint to screen for animation

2019-03-19 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 19 March 2019 at 00:54:34 UTC, Michelle Long wrote: I've added a function to addOnDraw for a DrawingArea and it paints using the code I have when I resize. I added a queueDraw in threadsAddIdle and it seems to draws the screen immediately but it does not seem to be called again.

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-19 Thread Ron Tarrant via Digitalmars-d-learn
Tuesday again. This blog post is about invisible Entry widgets and the FontButton. Really stimulating stuff and you'll find it at: http://gtkdcoding.com/2019/03/19/0019-disappearing-text-entry.html

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-15 Thread Ron Tarrant via Digitalmars-d-learn
It's Friday and time for another post on the GtkDcoding blog. This time around, it's about text Entry widgets, both editable and non-editable.

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-15 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 15 March 2019 at 09:21:28 UTC, Ron Tarrant wrote: It's Friday and time for another post on the GtkDcoding blog. This time around, it's about text Entry widgets, both editable and non-editable. Oops! Here's the link:

Re: Setting the GtkD Include Path in dexed?

2019-03-14 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 14 March 2019 at 16:02:01 UTC, Basile B. wrote: You must register put the static library file, not the object I thing, anyway, i just made you a video showing exactly what to do since finally the linker error is gone (yay !), also launch one of the demo file as a "runnable

Re: Setting the GtkD Include Path in dexed?

2019-03-14 Thread Ron Tarrant via Digitalmars-d-learn
Thanks for replying, Basile. It's always nice to get info straight from the original code author. :) On Wednesday, 13 March 2019 at 11:59:11 UTC, Basile B. wrote: 1. "Compile File and Run" It's for the scripts-like program, i.e single module. For this, the dependencies must be registered in

Re: Setting the GtkD Include Path in dexed?

2019-03-13 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 12 March 2019 at 21:54:36 UTC, JN wrote: How about Project -> Project editor -> Categories -> Other -> dmdOtherOptions ? I take it this starts in the Project menu? I found Project Editor in the Project menu, but the rest eludes me. Can't find it.

Re: Setting the GtkD Include Path in dexed?

2019-03-12 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 12 March 2019 at 21:54:36 UTC, JN wrote: On Tuesday, 12 March 2019 at 17:39:06 UTC, Ron Tarrant wrote: Another way of asking this, I suppose, would be: How do I pass command line arguments to dmd from within dexed? How about Project -> Project editor -> Categories -> Other ->

Re: Setting the GtkD Include Path in dexed?

2019-03-12 Thread Ron Tarrant via Digitalmars-d-learn
Another way of asking this, I suppose, would be: How do I pass command line arguments to dmd from within dexed?

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-12 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 12 March 2019 at 16:08:46 UTC, jmh530 wrote: Tricky. My thinking exactly. (I would have replied with a simple, "Yup," but I did that once before and the forum software made me do a Capcha.)

Setting the GtkD Include Path in dexed?

2019-03-12 Thread Ron Tarrant via Digitalmars-d-learn
I managed to get dexed to compile a single-file dub project, but for completeness sake, I'm also trying to configure it to use dmd (non-dub) to compile GtkD projects using Compilation (menu) > Compile File and Run. To that end, I have two questions... Should I be supplying dexed with the

Re: Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-12 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 12 March 2019 at 15:15:00 UTC, jmh530 wrote: I thought the suggestion was one thread in the Announce forum, rather than multiple threads in the Announce forum...rather than one thread in the Learn forum. It's a learning resource, so wouldn't that go here? Or am I misinterpreting

Another Tuesday (Friday?), Another GtkDcoding Blog Post

2019-03-12 Thread Ron Tarrant via Digitalmars-d-learn
It was suggested that I do all these posts in one thread, so this is the thread where that'll happen. With that said... It's Tuesday! (and that used to be a Theatresports game when Keith Johnstone still ran things) OR... It's Friday! And that (the Tuesday OR Friday part) means it's time

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 16 February 2019 at 19:11:03 UTC, Antonio Corbi wrote: /+ dub.sdl: name "gtkhello" dflags "-dip25" "-dip1000" dependency "gtk-d:gtkd" version="~>3.8.0" +/ /* dub run --single gtkhello.d dub build --single gtkhello.d. dub gtkhello.d . */ This is

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 18 February 2019 at 10:38:10 UTC, Peter Jacobs wrote: Being an old linux user, I prefer make to dub, however, I do use dub to build GtkD and then I just use dmd to build my application program. This appeals to me, too. dub clean dub build Got this bit working after generating

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 18 February 2019 at 06:29:54 UTC, Russel Winder wrote: Hopefully the above has helped, do feel free to ask further questions. I am a day-in, day-out Debian Sid user and so may still be making assumptions tht aren't working for you… I really appreciate all the time and effort you

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 18 February 2019 at 13:55:41 UTC, Ron Tarrant wrote: But some day I shall reclaim my Super Cow Powers. :) Oh, I guess I misspelled 'seardh.' That may explain why my attempt to run aptitude was 'put out to pasture.'

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 18 February 2019 at 13:34:22 UTC, Ron Tarrant wrote: You've saved me a ton of time and effort. This can be interpreted as: flailing about, bashing my shell against the terminal.

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 17 February 2019 at 14:19:35 UTC, Jordi Sayol wrote: To add this repository to your Linux Mint just run this two lines from command line: Jordi Thanks, Jordi. This is going straight into my notes. You've saved me a ton of time and effort.

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 16 February 2019 at 19:11:03 UTC, Antonio Corbi wrote: For one-file programs, dub usage is very easy. Placing a minimal comment-header between /+ +/ symbol comments, gets your job done like in this example ( I think the gtkd code is from one of your examples in the blog):

Re: Linux & DMD & GtkD

2019-02-16 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 16 February 2019 at 14:29:56 UTC, Russel Winder wrote: Pass, sorry. Thanks for the replies, guys... I quoted the above line because it's just about the only thing I understood. Let me explain... It's been almost 20 years since I used Linux and my notes are long gone. A ton

Linux & DMD & GtkD

2019-02-16 Thread Ron Tarrant via Digitalmars-d-learn
Hi guys, I finally got a Linux Mint installation happening (very impressed, BTW) and did the usual HelloWorld.d compile with dmd, but I'm having trouble working out how to link to GtkD. dmd -de -w -m64 -L+gtkd hello_gtkd_world.d says it can't find MainWindow which tells me the gtkd

Re: Submenu Not Responding Until Second Click

2019-02-08 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 7 February 2019 at 08:41:29 UTC, Antonio Corbi wrote: Hi Ron, xrandr (and gui interfaces for it like arandr) are your friends here. xrandr -q -> shows your card outputs and then you can use xrandr + options to configure monitors. Or you can use arandr that will do that for

Re: Singleton in Action?

2019-02-06 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 4 February 2019 at 19:23:26 UTC, Jacob Carlborg wrote: You can call it with or without parentheses. It applies to all functions that don't take any arguments or functions taking a single argument and are called using UFCS [1]. [1] https://dlang.org/spec/function.html#pseudo-member

Re: Submenu Not Responding Until Second Click

2019-02-06 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 5 February 2019 at 09:41:06 UTC, Antonio Corbi wrote: It could be so, I'm not using gnome so I can't say. By the way, I'm using gtk3 3.24.5. Yeah, I updated from 3.22 to 3.24, but it made no difference on Windows 10. Still that delay with submenus. I'd rather be running

Re: Submenu Not Responding Until Second Click

2019-02-05 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 5 February 2019 at 08:51:49 UTC, Antonio Corbi wrote: Have you tweaked your gtk theme? If so, could you try with the default (Adwaita) gtk theme? This is a Linux/Gnome thing, I'm assuming? Still, I'll look into other configuration stuff and see where it leads. Thanks, Antonio.

Re: Submenu Not Responding Until Second Click

2019-02-05 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 5 February 2019 at 08:43:21 UTC, WebFreak001 wrote: works fine here, can't reproduce with your example code. Maybe some GTK configuration of your system? From the questions you guys asked, I just realized I should have said I'm running on Windows 10.

Submenu Not Responding Until Second Click

2019-02-04 Thread Ron Tarrant via Digitalmars-d-learn
I posted about this over on the GtkD site, but I suspect no one's home until later in the day. I've been writing up examples for menus and found some odd behaviour. Now I'm wondering if I've missed something. The code compiles without error and runs. But after the window opens, first click

Re: Singleton in Action?

2019-02-04 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 3 February 2019 at 22:25:18 UTC, Dejan Lekic wrote: I strongly suggest you find the thread started by Andrej Mitrovic many years ago. He compared several implementations of (thread-safe) singletons. I it an extremely helpful stuff, IMHO. Thanks. I'll see if I can find it.

<    1   2   3   4   >