Re: How to find the right function in the Phobos library?

2024-08-18 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 17 August 2024 at 17:31:53 UTC, Steven Schveighoffer wrote: Go to dlang.org, select dicumentation, then library reference. Pick any module, click on it In the upper right, switch the docs from stable to ddox Now you can use the search bar and it is interactive. Typing in indexOf

Re: How to find the right function in the Phobos library?

2024-08-16 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 17 August 2024 at 05:28:37 UTC, Bruce wrote: Example. I want to find the index of an item in an array. ``` import std.stdio; import std.string; void main() { string text = "Hello, World!"; string searchSubstring = "World"; ptrdiff_t index = text.indexOf(searchSubstring);

Re: DlangUI Layout Justification

2023-03-09 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 9 March 2023 at 14:39:06 UTC, ryuukk_ wrote: On Thursday, 9 March 2023 at 10:11:04 UTC, Ron Tarrant wrote: Has anyone else been using D to develop for Android? If so, have you documented your process/GUI toolkit choices and would you be willing to share with me? Adam has somethi

Re: DlangUI Layout Justification

2023-03-09 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 9 March 2023 at 10:51:31 UTC, Ron Tarrant wrote: Another question... I found LinkButton in the API, but I don't see how/where to give it a URL to go to. Anyone know? Okay, so far I've got Platform.openURL(), but no idea how to use it. Pass it a string, yes, I got that part, but

Re: DlangUI Layout Justification

2023-03-09 Thread Ron Tarrant via Digitalmars-d-learn
Another question... I found LinkButton in the API, but I don't see how/where to give it a URL to go to. Anyone know?

Re: DlangUI Layout Justification

2023-03-09 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 9 March 2023 at 10:11:04 UTC, Ron Tarrant wrote: Is there a way to right-justify widgets in a DlangUI Layout? Found it! (In Example 1 [duh]). Still hoping to hear back from someone about the other question.

DlangUI Layout Justification

2023-03-09 Thread Ron Tarrant via Digitalmars-d-learn
Hi all, It's been a while since I've been on this forum. Hope everyone is doing well and have survived the pandemic. Anyway, a question... Is there a way to right-justify widgets in a DlangUI Layout? I'm asking because I've spent the last six months learning to build Android apps with the Go

Re: GtkD on macOS Monterey

2022-02-16 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 14 February 2022 at 00:39:30 UTC, Joel wrote: My GtkD programs compile and run (on Monterey - works on earlier versions), but not GUI displayed?! I asked on the GtkD forum, but they said about not having a mac or something. Check this out: https://gitlab.gnome.org/GNOME/gtk/-/issu

Re: Ali's Book - Programming in D

2021-09-11 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 10 September 2021 at 22:26:34 UTC, Ali Çehreli wrote: Not off the top of my head but by actual commits. :) https://bitbucket.org/acehreli/ddili/commits/ One major change that I can see is @property being discouraged. Good to know. Thanks, Ali.

Re: Ali's Book - Programming in D

2021-09-10 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 10 September 2021 at 14:21:12 UTC, Ali Çehreli wrote: tldr; Yes, it's print-on-demand and 2019 is correct for the current print edition. I would download the PDF version from ddili.org. D version: 2.094.2 Book revision: 2021-02-26 Off the top of your head, do you know how much d

Re: Ali's Book - Programming in D

2021-09-10 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 10 September 2021 at 10:59:10 UTC, bauss wrote: Publisher ‏ : ‎ CreateSpace Independent Publishing Platform; 1st edition (Aug. 19 2015) Yeah, I saw that, too. And if you do a "Look inside," the copyright date is 2019... thus my question. :)

Ali's Book - Programming in D

2021-09-10 Thread Ron Tarrant via Digitalmars-d-learn
I guess this is mainly a question for Ali, but if anyone else knows the answer, please jump in... If I were to buy a paperback copy of "Programming in D: Tutorial & Reference" from Amazon (this link: https://www.amazon.ca/Programming-Tutorial-Reference-Ali-Cehreli/dp/1515074609/ref=sr_1_1?dchi

Re: Introduction and request for help

2020-03-10 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 9 March 2020 at 22:48:35 UTC, Kendell wrote: Hey Everyone, I'm a new D developer and therefore new to Gtkd. So far I've had no problems building this project with DUB. However I want to move over to meson so that I can build it for flatpak. I am finding that I am unable to build

Just a Reminder...

2020-02-24 Thread Ron Tarrant via Digitalmars-d-learn
In case you thought the GtkDcoding blog announcements have stopped, I just want to let you know that starting with #0101, they'll be made in the Announce sub-forum from now on. This is where they were originally supposed to be made, but because I got the wrong end of the stick last year, I ende

Re: GtkD crash

2020-02-22 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 21 February 2020 at 13:36:58 UTC, mark wrote: I thought that onChangeState was never called before the Label was constructed That's one of the 'features' (wink wink) of GtkD. It's possible to call the function as a class function (uninstantiated, in other words) or as an object fu

Re: GtkD crash

2020-02-21 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 21 February 2020 at 08:55:43 UTC, mark wrote: statusLabel.setText(message); // BUG Where is statusLabel instantiated? Other than that, I see nothing wrong here.

Re: GtkD on Windows: notes + question

2020-02-11 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 9 February 2020 at 13:28:59 UTC, mark wrote: I found a much easier way to get GtkD working on windows than that described in https://gtkdcoding.com/2019/01/11/-introduction-to-gtkDcoding.html Just FYI... I don't use dub because I don't have time to understand its foibles well

Re: How to compile with GtkD

2020-02-09 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 9 February 2020 at 11:52:19 UTC, mark wrote: right now I want to start on Linux and I'm stuck. Maybe this will help... https://gtkdcoding.com/2019/03/31/x0002-gtkd-in-a-linux-environment.html

GtkDcoding Featured Coder Program

2020-02-01 Thread Ron Tarrant via Digitalmars-d-learn
Everybody knows what I’ve been doing with GtkD for the last year—writing blog posts. But what about all of you? What projects are you working on using GtkD? What finished applications do you have that use GtkD? Or maybe you’re still in the planning stages. I’d like to start a new series of pos

Re: books for learning D

2020-01-31 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 29 January 2020 at 11:57:14 UTC, Jan Hönig wrote: I am also curious. Where can i find the revised book. Sorry for the delay, guys. I thought I'd posted the link earlier. Here it is: http://ddili.org/ders/d.en/index.html

Blog Post #0100: SFX - Button Interactions II

2020-01-28 Thread Ron Tarrant via Digitalmars-d-learn
Today marks the 100th post on the GtkDcoding blog where we continue with Button interactions. You can find it here: https://gtkdcoding.com/2020/01/28/0100-sfx-button-interactions-ii-color-font-shape.html After today, I'll be on hiatus from the blog and posts may be sporadic.

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 23 January 2020 at 12:43:24 UTC, Antonio Corbi wrote: Yes, it uses 'sed' to get 'constants.d' from 'constants.d.in' at configuration time. So you can write your own 'constants.d' with the appropiate values for UIDIR and DATADIR and delete/comment the the preBuildCommands in dub.

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 23 January 2020 at 14:10:37 UTC, Ferhat Kurtulmuş wrote: Actually I have just tried this with gtkd and working: button1.bindProperty("sensitive", entry1, "sensitive", GBindingFlags.DEFAULT); That's pretty cool, Ferhat. I'll add this to the todo list.

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 23 January 2020 at 09:27:45 UTC, Ferhat Kurtulmuş wrote: I want this button disabled so that user cannot spawn another thread while the first one is on duty. This is actually the subject of an up-coming post which is scheduled to go live on Feb. 25, 2020. It uses setSensitive()

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 23 January 2020 at 08:33:39 UTC, Antonio Corbi wrote: https://gitlab.com/amcorbi/dmaurerrose I think this is somewhat related to what te OP was asking for. I'm confused. I was the OP, so I'm not sure who you're referring to. Assuming you are on GNU/Linux, a simple 'dub run' is

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 23 January 2020 at 08:33:39 UTC, Antonio Corbi wrote: https://gitlab.com/amcorbi/dmaurerrose I think this is somewhat related to what te OP was asking for. I'm confused. I was the OP, so I'm not sure who you're referring to. Assuming you are on GNU/Linux, a simple 'dub run' is

Re: Blog Post #0099: A Special Request

2020-01-22 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 22 January 2020 at 15:29:44 UTC, Jan Hönig wrote: Yes something in that manner. I am not familiar with GTK, i have done a few things in QT. I am mainly interested in the information passing. When i make some change to the input || hit enter || hit the button, the scene will change

Re: Blog Post #0099: A Special Request

2020-01-22 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 22 January 2020 at 09:18:51 UTC, Ferhat Kurtulmuş wrote: Another useful tutorial would be something using bindProperty and/or bindPropertyWithClosures. Once I used bindProperty with vala, but I think there is no any example to do it with gtkd. I found a bindProperty() function

Re: Blog Post #0099: A Special Request

2020-01-22 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 21 January 2020 at 22:12:10 UTC, Antonio Corbi wrote: On Tuesday, 21 January 2020 at 22:06:30 UTC, Ron Tarrant wrote: Do you still have the Maurer Rose example? I had to look this up. I'd never heard of it before. That being said... Do you think it could fit this kind of exam

Re: Blog Post #0099: A Special Request

2020-01-21 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 21 January 2020 at 18:57:47 UTC, Jan Hönig wrote: I would also like to request a future blog post about animation. I know you have done that in the past, but i am thinking of some animation triggered by user input (say a button, or some text field, which provides parameters for a c

Re: Blog Post #0099: A Special Request

2020-01-21 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 21 January 2020 at 18:57:47 UTC, Jan Hönig wrote: Hi Ron. Your blog is great. I have saved it for the future. (I know it from reddit). Glad you like it. I would also like to request a future blog post about animation. I know you have done that in the past, but i am thinking of som

Blog Post #0099: A Special Request

2020-01-21 Thread Ron Tarrant via Digitalmars-d-learn
Today's post was requested by Joel Christensen, how to have one button affect another. You can find it here: https://gtkdcoding.com/2020/01/21/0099-sfx-button-interactions-i-text-labels.html

Blog Post #0098: More HeaderBar Stuff

2020-01-14 Thread Ron Tarrant via Digitalmars-d-learn
Wanna know how to rearrange the contents of your HeaderBar? Or add extra widgets to that same HeaderBar? Then come on over to the GtkD Coding Blog and have a read: https://gtkdcoding.com/2020/01/14/0098-headerbar-more.html

Re: books for learning D

2020-01-13 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 13 January 2020 at 10:28:48 UTC, mark wrote: I'm just starting out learning D. Andrei Alexandrescu's "The D Programming Language" is 10 years old, so is it still worth getting? (I don't know how much D has changed in 10 years.) Actually, Andrei's book has been updated a few times

Blog Post #0097: The HeaderBar

2020-01-07 Thread Ron Tarrant via Digitalmars-d-learn
When is a Titlebar not a Titlebar? When it's a HeaderBar. Today's post starts an examination of the HeaderBar and it's capabilities. You can find it here: https://gtkdcoding.com/2020/01/07/0097-headerbar.html

Re: Project setup for DUB

2020-01-04 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 1 January 2020 at 13:19:20 UTC, Andre Pany wrote: In addition to that, there are different ways how you can contribute to Dub: - enhancing the dub help on code.dlang.org Does anyone know dub well enough to do this? :)

Re: How to use ResizerWidget in Dlangui app..?

2020-01-01 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 30 December 2019 at 23:32:37 UTC, ShadoLight wrote: dragging with the left mouse button does nothing. Window window = Platform.instance.createWindow("DlangUI example", null); I'm not familiar with this toolkit, but my guess is that you didn't pass in a `flags` value and there

Re: Blog Post #0096: Hardware III - Keyboard and Mouse

2020-01-01 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 1 January 2020 at 02:30:10 UTC, bauss wrote: Happy new year and thank you for your gtkd blogs :) Thanks, bauss. And you're welcome. :)

Blog Post #0096: Hardware III - Keyboard and Mouse

2019-12-31 Thread Ron Tarrant via Digitalmars-d-learn
This week's post wraps up the year by looking at how to access keyboard and mouse events through the hardware Seat. You'll find it here: https://gtkdcoding.com/2019/12/31/0096-hardware-iii-keyboard-pointer.html Have a happy New Year, everybody. May 2020 put things into perspective for us all.

Re: Finding position of a value in an array

2019-12-30 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 30 December 2019 at 19:39:04 UTC, mipri wrote: You can definitely do it: $ rdmd --eval 'int a, b, c; [&a, &b, &c].countUntil(&c).writeln' 2 But you need to have an array of pointers. Thanks, mipri. Got it sorted. Here's a working proof... ``` import std.stdio; import std.alg

Re: Finding position of a value in an array

2019-12-30 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 30 December 2019 at 19:46:50 UTC, Ron Tarrant wrote: Thanks, mipri. Got it sorted. Here's a working proof... Forgot to show the output: object: 17B0A831000, ID: 8 object: 17B0A831020, ID: 9 object: 17B0A831060, ID: 10 object: 17B0A831080, ID: 11 object: 17B0A8310A0, ID: 12 object:

Re: Finding position of a value in an array

2019-12-30 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 30 December 2019 at 19:08:27 UTC, Ron Tarrant wrote: I'm not trying to convert, just wade through an array of pointers to find a specific pointer using searchUntil(). ** that should read: countUntil(), not searchUntil() * Turns out I was getting too complicated. countUntil(

Re: Finding position of a value in an array

2019-12-30 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 30 December 2019 at 17:12:26 UTC, MoonlightSentinel wrote: D disallows implicit conversion from integers to pointers and hence they cannot be compared. You would need to explicitly cast your ulong to an appropriate pointer type I'm not trying to convert, just wade through an array

Re: Finding position of a value in an array

2019-12-30 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 30 December 2019 at 14:41:55 UTC, mipri wrote: What's your code? 'find_in_array_object.MyObject' doesn't look like a pointer. It's an array of objects... or, what it's trying to be, an array of object pointers.

Re: Finding position of a value in an array

2019-12-30 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 29 December 2019 at 09:44:18 UTC, MoonlightSentinel wrote: int i = a.countUntil(55); I was trying to do this with an array of pointers, but I get an error (which suggests to me that I don't know what data type a pointer is): find_in_array_object.d(25): Error: cannot cast expre

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-30 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 29 December 2019 at 21:25:44 UTC, Adam D. Ruppe wrote: My experience is IDEs are just different, not necessarily better or worse. Just different enough that people used to one find the others difficult to learn. Amen, hear-hear, and all that. I thought it was just me.

Re: Finding position of a value in an array

2019-12-29 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 29 December 2019 at 09:44:18 UTC, MoonlightSentinel wrote: On Sunday, 29 December 2019 at 08:31:13 UTC, mipri wrote: On Sunday, 29 December 2019 at 08:26:58 UTC, Daren Scot Wilson wrote: int i = a.countUntil!(v => v == 55); assert(i == 2); A predicate isn’t required, countUntil a

Re: [OT] What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-28 Thread Ron Tarrant via Digitalmars-d-learn
On Tue, Dec 24, 2019 at 10:18:49AM +, Russel Winder via Surely a hardcore retro guy would be using vi not vim? On Tuesday, 24 December 2019 at 17:52:20 UTC, H. S. Teoh wrote: Haha, well, a *real* hardcore retro guy would be using a magnet, a pin, and a *really* steady hand, to flip individ

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-26 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 26 December 2019 at 10:32:10 UTC, Andre Pany wrote: I am not sure wheter you talk about the same issue but the explorer view was also the only reason VSC was totally unusable for me. The lack of file/folder icons really questionable. Recently I found out that it is possible to con

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-26 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 25 December 2019 at 13:32:45 UTC, Mike Parker wrote: For a while, typing in VS Code was clunky compared to Sublime. I gave it a spin every couple of months to see how it was shaping up and eventually I stopped noticing the difference. Ah! Good to know. Thanks, Mike. Once they ad

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-25 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote: What kind of editor/IDE are you using and which one do you like the most? I was using PSPad up until a few months ago when I realized Notepad++ (finally) has a 64-bit version of the Explorer plugin. With custom GtkD syntax highlighting

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-25 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 16:43:06 UTC, Mike Parker wrote: But now that VS Code's performance is within my tolerance range Just curious what you mean by this, Mike.

Re: Blog Post #0095: Hardware II - Full Monitor Report

2019-12-24 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 10:23:34 UTC, Russel Winder wrote: You have to love GTK+, GtkD, and D. :-) Too true, Russell. :) Happy Winter Solstice (*). (*) Or whatever winter solstice related holiday works for you. :-) Right back at ya, sir.

Blog Post #0095: Hardware II - Full Monitor Report

2019-12-24 Thread Ron Tarrant via Digitalmars-d-learn
If you liked last week's post, this one will knock your socks off. Wanna know (programmatically) which monitor your application window is on? Here's how to find out: https://gtkdcoding.com/2019/12/24/0095-hardware-ii-full-monitor-report.html

Blog Post #0094: Addressing Hardware

2019-12-17 Thread Ron Tarrant via Digitalmars-d-learn
Today's post starts a new series (note the nifty Airport icon) on hardware. We start with an overview, and then look at monitors. You can find it right here: https://gtkdcoding.com/2019/12/17/0094-hardware-i-monitors.html

Blog Post #93: Window Stats - An Alternate Way to Gather Info

2019-12-10 Thread Ron Tarrant via Digitalmars-d-learn
Today's post takes a different approach to gathering the same info we've been working with over the last two posts. It's right here: https://gtkdcoding.com/2019/12/10/0093-window-stats-iii-alt.html

Blog Post #92: Window Stats - Size and Maximize

2019-12-03 Thread Ron Tarrant via Digitalmars-d-learn
Today, we carry on looking at Window stats and how we can prepare to preserve them. You'll find it here: https://gtkdcoding.com/2019/12/03/0092-window-stats-ii-size.html

Blog Post #91: Where's My Window?

2019-11-26 Thread Ron Tarrant via Digitalmars-d-learn
Today's post was inspired by a reader request, even though it wasn't specifically requested. It's about finding a Window's position and can be found here: https://gtkdcoding.com/2019/11/26/0091-window-stats-i-position.html I'd also like to take this opportunity to announce that my posting sch

Blog Post #90: Reader Requests

2019-11-22 Thread Ron Tarrant via Digitalmars-d-learn
Readers Peter Pinkness (over on the GtkD Forum) and GreatSam4Sure (the D Forum) requested coverage of some techniques for centering a GTK Window and decorating a Window with a custom icon. That's what today's post is about: https://gtkdcoding.com/2019/11/22/0090-titlebar-icons.html Also, I ma

Blog Post #89: Nodes-n-noodles, Part VIII - It's Alive! (2)

2019-11-19 Thread Ron Tarrant via Digitalmars-d-learn
And finally, you get to see a moveable node in action... right here: https://gtkdcoding.com/2019/11/19/0089-nodes-viii-its-alive-2.html Not that this is the end of the Nodes-n-noodles series. Not by a long shot. We'll be back a few weeks from now with noodles connecting nodes and all that jaz

Blog Post #88: Nodes-n-noodles, Part VII - It's Alive! (1)

2019-11-15 Thread Ron Tarrant via Digitalmars-d-learn
Okay, time to prepare for moving that node... and it all starts with this: https://gtkdcoding.com/2019/11/15/0088-nodes-vii-its-alive.html

Blog Post #87: Nodes-n-noodles, Part VI - Defining Hot Spots

2019-11-12 Thread Ron Tarrant via Digitalmars-d-learn
Sorry I'm late today... Carrying on with the Nodes-n-noodles series, today we define the hot spots for the drag bar and the in/out terminals. You can find it here: https://gtkdcoding.com/2019/11/12/0087-nodes-vi-hotspots.html

Blog Post #86: Nodes-n-noodles, Part V - The Drawing Routines

2019-11-08 Thread Ron Tarrant via Digitalmars-d-learn
Today's post doesn't just continue our look at Nodes-n-noodles (here's the link: https://gtkdcoding.com/2019/11/08/0086-nodes-v-node-drawing-routines.html) it's also a milestone for the GtkDcoding Blog... I've been accepted into the GitHub Sponsors program which means readers can now show their a

Re: Blog Post #74: Cairo IX - Doodle a Noodle

2019-11-06 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 27 September 2019 at 13:44:54 UTC, Ron Tarrant wrote: You can find part one here: https://gtkdcoding.com/2019/09/27/0074-cairo-doodle-a-noodle.html Due to code reorganization, the above link is now: https://gtkdcoding.com/2019/09/27/0074-nodes-i-doodle-a-noodle.html

Re: Blog Post #75: Cairo X - Noodling with the Mouse

2019-11-06 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 1 October 2019 at 09:58:42 UTC, Ron Tarrant wrote: Here's the second installment of the Nodes-n-noodles coverage in which we get the mouse involved: https://gtkdcoding.com/2019/10/01/0075-cairo-x-mouse-noodle.html Because of code reorganization, the above link is now: https://gtkd

Re: Blog Post #76: Nodes and Noodles, Part II

2019-11-06 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 6 October 2019 at 23:15:43 UTC, Ron Tarrant wrote: On Sunday, 6 October 2019 at 23:00:51 UTC, Zekereth wrote: Here's the correct URL https://gtkdcoding.com/2019/10/04/0076-app-01-iii-noodles-and-mouse-clicks.html Great tutorial(s)! Thanks! LOL! Thanks, Zekereth. Because of code

Blog Post #85: Nodes-n-noodles, Part IV - A Node from a DrawingArea

2019-11-06 Thread Ron Tarrant via Digitalmars-d-learn
A day late, but here we are... Diving back into the Nodes-n-noodles series, we look at how to build a moveable node from a DrawingArea. You can find it here: https://gtkdcoding.com/2019/11/05/0085-nodes-iv-node-drawing.html

Re: GtkDcoding Blog Interruption

2019-11-05 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 5 November 2019 at 12:31:04 UTC, Ron Tarrant wrote: Until I can resolve this, please bear with me. I'll keep you all updated of any progress. I've been in touch with GitHub support and they're in a yellow alert situation, meaning (I assume) that service for all sites hosted on Gi

GtkDcoding Blog Interruption

2019-11-05 Thread Ron Tarrant via Digitalmars-d-learn
My apologies. I'm experiencing a technical problem with the GtkD Coding Blog site. Today's post has been uploaded, but the site isn't being updated properly, so the new page isn't available. Everything works fine locally, so for the moment, I'm stumped. Until I can resolve this, please bear wi

Blog Post #84: Notebook, Part VIII - Child Widgets

2019-11-01 Thread Ron Tarrant via Digitalmars-d-learn
For the final instalment in the Notebook series, we take a look at accessing the contents of child widgets: https://gtkdcoding.com/2019/11/01/0084-notebook-viii-child-widgets.html

Re: Gtkd and libgtksourceview

2019-10-31 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 31 October 2019 at 11:47:41 UTC, Mike Wey wrote: girtod can be found here: https://github.com/gtkd-developers/gir-to-d It's a tool that generates a D Binding from GObject Introspection files, if you use the GTK installer from the gtkd website or msys2 the needed introspection (.

Re: Gtkd and libgtksourceview

2019-10-31 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 30 October 2019 at 22:26:41 UTC, Mike Wey wrote: --- girtod -i src --use-runtime-linker --use-bind-dir --- Hmmm... I'll need more information, I'm afraid. I Googled, but I'm not finding any instructions for building these DLLs.

Re: Gtkd and libgtksourceview

2019-10-30 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 30 October 2019 at 18:00:24 UTC, Mike Wey wrote: GtkSourceview was updated to 4.x in GtkD version 3.9.0, so any older version should work with GtkSourceview 3. Welcome back, Mike... The latest Windows runtime available on the GtkD downloads page installs libgtksourceview-3.0-1.

Re: Gtkd and libgtksourceview

2019-10-30 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 30 October 2019 at 14:48:23 UTC, bioinfornatics wrote: so which version should I used to be compatible with libgtksourceview-3 (I use centos 7) When Mike Wey gets back in town (any day now) he should be able to provide a solution that's less of a kludge.

Re: Gtkd and libgtksourceview

2019-10-30 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 30 October 2019 at 14:48:23 UTC, bioinfornatics wrote: I tried the latest gtkd release and it try to open dynamically libgtksourceview-4.so.0 however I have only libgtksourceview-3.so.1 On Windows, I had to change a line in C:\D\dmd2\src\sourceview\gsv\c\functions.d from:

Blog Post #83: Notebook, Part VII - All Signals

2019-10-29 Thread Ron Tarrant via Digitalmars-d-learn
This post looks at a handful of Notebook signals, how they're triggered, and what they can be used for. We also go over the keyboard shortcuts used by the GTK Notebook. You'll find it all here: https://gtkdcoding.com/2019/10/29/0083-notebook-vii-notebook-all-signals.html

Blog Post #82: Notebook, Part VI - Add and Remove Tabs

2019-10-25 Thread Ron Tarrant via Digitalmars-d-learn
More fun with Notebooks, adding and removing tabs willy-nilly: https://gtkdcoding.com/2019/10/25/0082-notebook-vi-add-remove-tabs.html

Blog Post #81: Notebook, Part V - Customized Tabs, Part III

2019-10-22 Thread Ron Tarrant via Digitalmars-d-learn
Today we wrap up the customized tabs discussion as we look at the drawing routines. It's here: https://gtkdcoding.com/2019/10/22/0081-notebook-v-custom-tabs-iii.html

Re: Meta question - what about moving the D - Learn Forum to a seperate StackExchange platform?

2019-10-18 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 18 October 2019 at 07:35:21 UTC, Martin Tschierschke wrote: I very often end with a solution found on one of the StackExchange forums like > StackOverflow or AskUbuntu etc. I have found that StackExchange does often have answers, but I can't say I like asking questions on there, esp

Blog Post #80: Notebook, Part IV - Customized Tabs, Part II

2019-10-18 Thread Ron Tarrant via Digitalmars-d-learn
Here's the second instalment of the customized tabs discussion. May it bring you peace and joy. https://gtkdcoding.com/2019/10/18/0080-notebook-iv-custom-tabs-ii.html

Re: several types in one Array ?

2019-10-17 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 17 October 2019 at 14:45:24 UTC, Mil58 wrote: Hi all... Does exist (or not?) a way to create array with several types (as in Python) You actually have at least three options for handling mixed data: ``` // Three ways to handle mixed data import std.stdio; import std.typecons; im

Re: Blog Post #79: Notebook, Part III - Customized Tabs, Part I

2019-10-16 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 16 October 2019 at 07:46:42 UTC, Antonio Corbi wrote: Hope this helps. Thanks, Antonio. I'll check this out. I'll work up a demo based on this stuff and put it in the gtkdcoding queue.

Re: Blog Post #79: Notebook, Part III - Customized Tabs, Part I

2019-10-15 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 15 October 2019 at 14:00:32 UTC, WebFreak001 wrote: thank you so much for these tutorials! I love how they are progressing. Thanks, WebFreak001. Small, simple and concise topics with good images, nice drawings, and most importantly, paragraphs explaining the logic along with the

Re: Permission to Use Comments?

2019-10-15 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 14 October 2019 at 15:36:44 UTC, Jesse Phillips wrote: Pretty sure since this is a public forum, legally you just need to reference your sources (if even that). Asking permission is just polite. Well, yes and no. According to the FTC (U.S.) and the Federal Competition Bureau (Cana

Re: Permission to Use Comments?

2019-10-15 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 15 October 2019 at 14:33:27 UTC, Russel Winder wrote: Not I. I am happy for comments I make regarding GtkDCoding on this email list to be used above my name on the GtkDCoding website. Thanks, Russel.

Re: Blog Post #77: Notebook, Part I

2019-10-15 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 03:13:48 UTC, GreatSam4sure wrote: Is there any way to detect the size of my screen using gtkd? So that incan calculate the size of my screen and center my window on the screen using move(x, y). I was distracted last time I replied to this thread and so overlo

Blog Post #79: Notebook, Part III - Customized Tabs, Part I

2019-10-15 Thread Ron Tarrant via Digitalmars-d-learn
Well, if that title isn't confusing, I'm not doing my job right. Today's post starts a three-part mini-series within the Notebook series on building customized tabs in a DrawingArea. There's a ton of stuff to go over; that's why it's in three parts. Anyway, the fun begins right here: https:/

Permission to Use Comments?

2019-10-14 Thread Ron Tarrant via Digitalmars-d-learn
Hi all, I've been thinking about how to take GtkDcoding to the next level and one idea is to use (favourable) comments made here on the forum to help promote the blog. So, since I'm not clear on copyright law and how it affects forum posts, I decided to ask... 1) Does anyone know how copyr

Re: Blog Post #0043 - File Dialog IX - Custom Dialogs (2 of 3)

2019-10-13 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 17 June 2019 at 07:09:33 UTC, BoQsc wrote: Aw man, your content have. "© Copyright 2019 Ron Tarrant" I just noticed this response, otherwise I would have responded sooner. The copyright only covers the text, not the code. I'll see about getting a lack-of-copyright notice togethe

Re: Blog Post #77: Notebook, Part I

2019-10-12 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 12 October 2019 at 16:34:01 UTC, Carsten Schlote wrote: Nice work, Ron! Thanks, Carsten. I'm just converted some of you examples into dub based projects, and compiled and run them a normal intel PC and a Raspberry. As a prerequisite I had to install the following on a Raspian

Re: GtkD ListG Howto?

2019-10-11 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 11 October 2019 at 20:40:25 UTC, mipri wrote: I get the segfault to go away with ListG list = new ListG(null); which is usage you can find in APILookupGLib.txt Ah! Thanks, mipri. I didn't think to read through the unit tests.

GtkD ListG Howto?

2019-10-11 Thread Ron Tarrant via Digitalmars-d-learn
Hi all, I'm trying to add an icon list to a GTK Window using setIconList(), but what the function expects is a ListG of Pixbufs. The way I understand it, I have to instantiate the Pixbufs, build a ListG of void pointers to the Pixbufs, and pass that to setIconList(). Here is how I assume

Blog Post #78: Notebook, Part II

2019-10-11 Thread Ron Tarrant via Digitalmars-d-learn
Continuing the series on the GTK Notebook, we look at multiple tabs, reordering tabs, and stuffing images into tabs. Exciting stuff, no? Here it is: https://gtkdcoding.com/2019/10/11/0078-notebook-ii-multiple-tabs.html

Re: Blog Post #77: Notebook, Part I

2019-10-09 Thread Ron Tarrant via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 03:13:48 UTC, GreatSam4sure wrote: Good works Thanks, GreatSam4sure. Is there any way to detect the size of my screen using gtkd? So that incan calculate the size of my screen and center my window on the screen using move(x, y). I had a quick look into this

Blog Post #77: Notebook, Part I

2019-10-08 Thread Ron Tarrant via Digitalmars-d-learn
Today starts a new series on the Notebook widget. Over the next few weeks, we'll dig in deep, looking at single-tab and multiple-tab demos, customizing the look of the actual tabs, adding and removing tabs... a whole ton of stuff. Sounds like fun, right? Come on over and check it out: https:

Re: Blog Post #76: Nodes and Noodles, Part II

2019-10-06 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 6 October 2019 at 23:00:51 UTC, Zekereth wrote: Here's the correct URL https://gtkdcoding.com/2019/10/04/0076-app-01-iii-noodles-and-mouse-clicks.html Great tutorial(s)! Thanks! LOL! Thanks, Zekereth.

Re: Blog Post #75: Cairo X - Noodling with the Mouse

2019-10-05 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 4 October 2019 at 20:56:31 UTC, Greatsam4sure wrote: Pls sir can you make a pdf of the tutorials. that can be easily downloaded once and for all. So that I need to be online. Not everybody have cheap internet. That's an interesting idea, but it would mean a lot of extra time and e

Re: Blog Post #76: Nodes and Noodles, Part II

2019-10-04 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 4 October 2019 at 11:36:52 UTC, Ron Tarrant wrote: Here's the second instalment of the Nodes-n-noodles series wherein noodle drawing on a DrawingArea is now complete. You can find it here: http://localhost:4000/2019/10/04/0076-cairo-xi-noodles-and-mouse-clicks.html Beg pardon. That

Blog Post #76: Nodes and Noodles, Part II

2019-10-04 Thread Ron Tarrant via Digitalmars-d-learn
Here's the second instalment of the Nodes-n-noodles series wherein noodle drawing on a DrawingArea is now complete. You can find it here: http://localhost:4000/2019/10/04/0076-cairo-xi-noodles-and-mouse-clicks.html

Blog Post #75: Cairo X - Noodling with the Mouse

2019-10-01 Thread Ron Tarrant via Digitalmars-d-learn
Here's the second installment of the Nodes-n-noodles coverage in which we get the mouse involved: https://gtkdcoding.com/2019/10/01/0075-cairo-x-mouse-noodle.html

  1   2   3   4   >