Skip to content

Instantly share code, notes, and snippets.

View shellscape's full-sized avatar
🌴

Andrew Powell shellscape

🌴
View GitHub Profile
<asp:textbox id="date" runat="server" />
<brew:datepicker for="date" runat="server" />
@shellscape
shellscape / gist:1219126
Created September 15, 2011 12:34
Outlines an issue with VisualStyleRenderer.GetFont / GetThemeFont whereby an actual value is never returned
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
namespace VisualStyleGetFontTest {
var _selectDate = $.datepicker._selectDate,
selectHook = function(id, dateStr){
var target = $(id),
inst = this._getInst(target[0]),
result = _selectDate.call(this, id, dateStr);
onAfterSelect && onAfterSelect(inst);
return result;
},