Search found 25 matches

by empty
Tue May 05, 2020 1:29 pm
Forum: Coding Questions
Topic: DLL Importer howto?
Replies: 7
Views: 2816

Re: DLL Importer howto?

I will take a look, but we use it in the build server to create all the imports so it should still work somehow..
Any news on that? While the importer says it created files in PureLibraries\Windows and PureLibraries\Windows\Libraries no such files are there to be found.
The .def file gets written ...
by empty
Wed Oct 08, 2014 4:57 pm
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Re: Make a ListIcon column editable

True, that's cleaner. I'll adapt it in my example.
by empty
Tue Oct 07, 2014 10:51 pm
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Re: Make a ListIcon column editable

Nice addition. Thank you! :)
by empty
Tue Oct 07, 2014 2:39 pm
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Re: Make a ListIcon column editable

Thanks for your response :)

No worries, that way we have tested it on an even wider range of systems :)
Glad it works for you now
by empty
Sun Oct 05, 2014 1:23 am
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Re: Make a ListIcon column editable

Thanks for testing! :)

Yeah PB has its fair share of issues with GTK3...
by empty
Sat Oct 04, 2014 2:19 am
Forum: Mac OSX
Topic: [PB Cocoa] Methods, Tips & Tricks
Replies: 228
Views: 530432

Re: [PB Cocoa] Methods, Tips & Tricks

Menu manipulation routines.
Functions to add MenuItems or SubMenus to given MenuTitles (by index) and to remove MenuItems (by handle). Useful for "Recent Files" and correct implementation of the "Window" menu. It's a bit more elegant than deleting and rebuilding the entire menu over and over again ...
by empty
Fri Oct 03, 2014 3:13 pm
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Re: Make a ListIcon column editable

And another update.
- Replaced gtk_tree_view_column_get_cell_renderers()
- now frees the allocated list
- since Imports seem to be unavoidable, all string related functions are imported manually, thus we can get rid of the UTF8 conversion function
- while I was at it, fixed a bug in the wstring ...
by empty
Fri Oct 03, 2014 11:01 am
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Re: Make a ListIcon column editable


I have tested your updated code example on Ubuntu 14.04 x64 with KDE and on pressing <Enter> or <Tab> the new text is not written into the cell of the selected row...

When you start typing even on an unmodifed listicongadget, you're invoking the infamous search feature of gtk treeviews. ;)
You ...
by empty
Fri Oct 03, 2014 1:11 am
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Re: Make a ListIcon column editable

Updated the above code to work on 32 bit and KDE distros as well.


Video (Ubuntu 32bit)
by empty
Thu Oct 02, 2014 8:47 pm
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Re: Make a ListIcon column editable

Are you using the gtk3 sublibrary by any chance? That's when I got the warnings on g_object_set_() too (the reason is the missing termination, and so it's trying to set whatever string fragment it finds on the stack). Despite the warnings it still works here, but it surely won't under many other ...
by empty
Thu Oct 02, 2014 12:10 pm
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Re: Make a ListIcon column editable

Hm. Interesting. I need to install a 32 bit distro at some point.
by empty
Thu Oct 02, 2014 11:32 am
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Re: Make a ListIcon column editable

True it should be ProcedureC

I know about the pseudotypes, but I tried to avoid imports for this example.

Have only tried it with 64bit distributions (among them Ubuntu 14.04) and it worked perfectly there in ASCII and Unicode.
Something to investigate.

Have you tried to import g_object_set?
g ...
by empty
Thu Oct 02, 2014 1:46 am
Forum: Linux
Topic: Make a ListIcon column editable
Replies: 31
Views: 18202

Make a ListIcon column editable

This example demonstrates how to make a given column in a ListIconGadget editable


EnableExplicit


ImportC "-gtk"
g_object_set(object, property.p-UTF8, value, v=0)
gtk_cell_layout_get_cells(col)
g_signal_connect(instance, signal.p-ascii, callback, vdata, destroy=0, flags=0) As "g_signal ...
by empty
Wed Oct 01, 2014 6:28 pm
Forum: Mac OSX
Topic: How to avoid Cocoa "error beep" when pressing a key ?
Replies: 3
Views: 3252

Re: How to avoid Cocoa "error beep" when pressing a key ?

You need to override performKeyEquivalent and return 1 to avoid the message sound.
Be aware though that this overridden method applies to ALL windows you create in the application, unless you subclass a specific window during runtime. See my post in the tips and tricks thread. The function ...