On Monday, 24 December 2018 at 10:08:25 UTC, Dmitriy wrote:
Hello.
I'm using https://github.com/Jebbs/DSFML library
...
The problem when I build my project using these libraries. The
problem in linking:
Did you look at http://dsfml.com/docs/firstprogram.html ?
I remember having to link a
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
https://github.com/rontarrant/gtkDcoding/blob/master/003_box/box_003_03_checkbutton.d
and
https://g
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?
Thanks again for the Blog.
FYI: I also had dropped a note in some of the previous gtkdcoding
forum threads
On Friday, 22 March 2019 at 11:19:56 UTC, Ron Tarrant wrote:
Hmm... I'm not sure why the links didn't show up for you. I
just double-checked and they're in the .md file and version of
the file has been in place for at least 10 days.
Still, no harm in having them on this forum as well.
Thanks
On Tuesday, 12 March 2019 at 14:44:59 UTC, Ron Tarrant wrote:
As a side note, in 0004 you say:
We can still call the constructor, even though strictly
speaking it’s private, because by using ‘new MyButton()’ the
constructor isn’t being called directly, but as part of a
lower-level process f
On Tuesday, 19 March 2019 at 12:33:08 UTC, Ron Tarrant wrote:
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
A little copy/paste glitch..
code
On Friday, 22 March 2019 at 23:34:08 UTC, Ron Tarrant wrote:
It's fixed now.
The first one :), now there's still the other one "Here’s a
second code file for you."
I have a design question about (i guess) object interdependence
using gtkd.
There is an application class which sets its property mAppWin.
The app is passed as an argument to the window constructor.
During the window constructor a scale (trackbar) is created which
also receives and stores an
On Sunday, 24 March 2019 at 19:20:47 UTC, Ron Tarrant wrote:
Sunday Blog eXtra: Installing and Using a Linux Build
Environment
URL:
http://gtkdcoding.com/2019/03/24/x0002-gtkd-in-a-linux-environment.html
Thanks for the new posts.
Link dead? It's also not listed on the blog post list. But I
On Friday, 29 March 2019 at 14:25:16 UTC, Ron Tarrant wrote:
There's a new tutorial for using a GTK Grid. You can find it
here: http://gtkdcoding.com/2019/03/29/0022-grids.html
Thanks!
The first link in the blog post to '..the last blog post' links
to the 0022 article itself, not to a previou
On Tuesday, 2 April 2019 at 11:31:39 UTC, Ron Tarrant wrote:
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
Thank you
On Friday, 12 April 2019 at 09:05:11 UTC, Ron Tarrant wrote:
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
Tha
On Saturday, 13 April 2019 at 00:25:21 UTC, Ron Tarrant wrote:
On Friday, 12 April 2019 at 13:56:51 UTC, number wrote:
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 already
On Saturday, 13 April 2019 at 12:42:36 UTC, Ron Tarrant wrote:
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 O
On Friday, 19 April 2019 at 12:12:28 UTC, Ron Tarrant wrote:
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
Hav
On Tuesday, 23 April 2019 at 09:44:12 UTC, Ron Tarrant wrote:
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
Hi, thanks!
little typo: RadioMeniItem
On Tuesday, 23 April 2019 at 20:40:45 UTC, Ron Tarrant wrote:
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.
Are your original p
On Wednesday, 24 April 2019 at 18:56:50 UTC, Ron Tarrant wrote:
For anyone else who comes along looking for the same answer,
here's what I did:
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()? S
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 Adjustment
is created with an initial value different from the
On Thursday, 25 April 2019 at 15:16:03 UTC, Ron Tarrant wrote:
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
On Friday, 26 April 2019 at 11:14:23 UTC, Ron Tarrant wrote:
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
There are links to the previous bl
How to call srand() with time()?
```
void main()
{
import core.stdc.stdlib : rand, srand;
import core.stdc.time : time;
srand(time(null));
}
```
Error: function core.stdc.stdlib.srand(uint seed) is not callable
using argument types (long)
cannot pass argument time(null) of type long
On Monday, 29 April 2019 at 14:39:29 UTC, rikki cattermole wrote:
float f = uniform01();
Its already initialized on module load.
If you do want to custom seed it, you'll probably want to cast
the seed to uint instead and have your own instance of the
random number generator.
On Monday, 29 A
On Tuesday, 7 May 2019 at 09:39:55 UTC, Ron Tarrant wrote:
But the result is today's post: how to produce a MenuItem with
an image AND and AccelKey.
Here's the link:
http://gtkdcoding.com/2019/05/07/0033-fake_image_menu_and_accel.html
Thanks!
the github link links to file .._16_.. from 0032
On Friday, 3 May 2019 at 12:12:32 UTC, Ron Tarrant wrote:
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
some end block comments need update:
class File
On Tuesday, 7 May 2019 at 17:41:42 UTC, Ron Tarrant wrote:
It always makes me happy when you point out the small stuff. It
means I got the big stuff right. :)
I do feel a bit pedantic about it too :), on the other hand wrong
comments are worse than no comments.
I guess you've been away a whi
https://dlang.org/phobos/std_file.html#dirEntries
The name of each iterated directory entry contains the
absolute path.
it seems to be absolute only if the specified path is absolute,
or always relative to the parent dir of the specified path.
import std.stdio;import std.stdio;
void main()
I get dmd ouput:
"unable to fork: Cannot allocate memory"
when compiling the following code:
import std.stdio;
import gio.Application : GioApplication = Application;
import gtk.Application;
import gtk.ApplicationWindow;
import gtk.Widget;
import gdk.Keysyms;
int main(string[] args)
{
On Sunday, 11 February 2018 at 13:17:13 UTC, number wrote:
unable to fork: Cannot allocate memory
if i comment-out the line..
writeln(GdkKeysyms.GDK_Escape);
then it compiles/links/runs fine.
[...]
I actually want to close the application if escape key is
pressed with
if (eventKey.keyval ==
On Sunday, 11 February 2018 at 15:05:26 UTC, number wrote:
On Sunday, 11 February 2018 at 13:17:13 UTC, number wrote:
unable to fork: Cannot allocate memory
if i comment-out the line..
writeln(GdkKeysyms.GDK_Escape);
then it compiles/links/runs fine.
I just tried again.
compiling the follo
On Tuesday, 13 February 2018 at 12:32:58 UTC, Stefan Koch wrote:
On Tuesday, 13 February 2018 at 12:17:31 UTC, number wrote:
I just tried again.
compiling the following code eats up my 4GB of RAM and fails.
Please copy the enumeration
from:
https://github.com/gtkd-developers/GtkD/blob/master
On Tuesday, 13 February 2018 at 21:46:31 UTC, Stefan Koch wrote:
On Tuesday, 13 February 2018 at 14:10:44 UTC, number wrote:
Ok, thanks for the info. I guess I'll just use printf then for
larger enums.
To get the same convince you can use.
the enumToString from:
https://forum.dlang.org/post/p
On Wednesday, 24 December 2014 at 11:56:40 UTC, Suliman wrote:
Could anybody provide any simple examples of usage DerelictPQ.
I do not have experience of C, and I can't understand how to
use this driver.
I need just basics like connect, select and insert.
http://code.dlang.org/packages/dereli
Is there a way to get the classname without specifying the class
in the first place as required by classinfo and
fullyQualifiedName? extracting it from __FUNCTION__ wouldn't work
outside a function, i.e. for a classfield, and 'this' doesn't
work in static members.
It's just about simple debug
On Wednesday, 28 March 2018 at 10:10:19 UTC, Simen Kjærås wrote:
So to get the class name you'd generally use
typeof(this).stringof.
...
And could somebody explain to me why 'typeid(this).stringof'
is returning 'typeid(this)'?
Because that's what you're asking for. :p
typeid returns the ru
the write() shows a 'null' if the struct has a function/method.
why is that?
```
import std.stdio;
void main()
{
struct S
{
int i;
}
S s;
writeln(s);// S(0)
writeln(typeid(s).sizeof); // 8
struct S2
On Sunday, 8 April 2018 at 15:51:05 UTC, Paul Backus wrote:
On Sunday, 8 April 2018 at 15:04:49 UTC, number wrote:
writeln(s2);// S2(0, null)
S2 is a nested struct [1], which means it has a hidden pointer
field that's used to access its enclosing scope. If you change
37 matches
Mail list logo