Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Orangeatang

Member Since 05 Oct 2004
Offline Last Active Today, 09:12 AM

Posts I've Made

In Topic: Audio API

Yesterday, 04:35 AM


but AFAIK you can write plugins to actually generate or process audio samples/streams yourself.

Yeah Wwise definitely supports low level audio processing plugins (I just finished building a simple delay). It also gives you all sorts of interesting callbacks for messing around with speaker/channel volumes.


In Topic: Audio API

22 November 2014 - 01:35 AM

Yeah AFAIK, OpenAL Soft is the successor.

FMOD is an extremely popular choice, or Wwise if you have money wink.png

Wwise has a free license for non-commercial use (you also get the SDK source code), and it's a damn fine sound engine :)


In Topic: Updating a WPF ListBox SelectedIndex

06 November 2014 - 09:14 AM

The selection in WPF list boxes when the list box doesn't have focus is (by default) a light grey which is difficult to see. If you want, re-style the control to change the color of the non-focused selection box to something that is more visible (or the same color as the one when it has focus)

Yeah, I had a look at overriding the default style for a ListBox.

 

Using the SystemColors.ControlBrushKey I was able to set the un-focused highlight to grey with a 0.5 opacity, and that seems to do the trick :)

 

Cheers!


In Topic: Updating a WPF ListBox SelectedIndex

06 November 2014 - 07:48 AM

IIRC selection highlights are only displayed when the listbox itself has focus.I might be wrong though.

That's interesting, thanks!

 

After calling 'Focus' on the post update of the listbox the selection highlight appeared. That's somewhat annoying, I might have a look at the extended wpf toolkit and see if they have a nicer implementation.

 

Cheers!


In Topic: Updating a WPF ListBox SelectedIndex

06 November 2014 - 06:09 AM

I haven't used WPF in a while, so this may not be correct, but the docs provide:

 

ListBox.SetSelected(int index, bool value)

 

where value = true selects the specified item.

 

Doesn't seem to have a SetSelected method; using .NET 4.0 and the WPF ListBox implementation (http://msdn.microsoft.com/en-us/library/System.Windows.Controls.ListBox(v=vs.100).aspx)

 

I've tried calls to UpdateLayout etc after updating the selected index, but without any luck.

 

It's odd... when I set the SelectedIndex in the ListBox instance, everything in the class looks good. The 'SelectedValue' looks right etc, it's just that the actual UI doesn't get updated (no blue box around the list item).


PARTNERS