widget

Modifying the Android seekbar widget to operate vertically

I'm trying to get a vertical seekbar going with the emulator, but I'm sort of stuck. I can get the seekbar to display the way I want it to, and I can get the progress to do what I want, and I can modify the onTouchEvent to get the thumb to go vertically instead of horizontally. What I can't do is get the thumb to move outside of the de...

How do you change the default widget for all Django date fields in a ModelForm?

Given a set of typical models: # Application A from django.db import models class TypicalModelA(models.Model): the_date = models.DateField() # Application B from django.db import models class TypicalModelB(models.Model): another_date = models.DateField() ... How might one change the default widget for all DateFields to a cu...

How do you modify the default widget for all builtin form fields of a certain type in Django?

This is a follow-up on How do you change the default widget for all Django date fields in a ModelForm?. Suppose you have a very large number of models (e.g. A-ZZZ) that is growing with the input of other developers that are beyond your control, and you want to change the way all date fields are entered (i.e. by using jQueryUI). What's t...

How can I add a page to a Gtk Notebook widget at runtime?

I have the following code : require "gtk2" # adds a page to the notebook with the given label def create_page(nb,label="untitled") # create a textview tx = Gtk::TextView.new # append it nb.append_page(tx,Gtk::Label.new(label)) end Gtk.init window = Gtk::Window.new window.set_default_size(800,600) window.signal_connect...

API or widget to preview songs

Hi, does anyone have experience with any APIs/Widgets for previewing music? We're displaying a list of artists and would love to have a little flash widget to preview a song. Amazon MP3 has a flash widget you can build (specify search terms for), but are there any others you'd recommend? Ideally, there'd be a more programmable API. ...

Wordpress widget creation

%wordpress I've created to tool to turn php functions into Wordpress widgets. I use the register_sidebar_widget function but it seems like wp_register_sidebar_widget would give me more options. Does anyone know if that is legal? P.S. I also generate widgets in the new 2.8 format. ...

Is it possible to create dynamically pluggable GWT widgets/portlets in separate war files?

Is it possible to create widgets / portlets in GWT that can be dynamically loaded and added to a GWT web application, and where the GWT widgets can reside in a separate war files? To clarify my question: JSR168/JSR286 compliant portals make it possible to create portlets in separate projects (war files) and to dynamically load these int...

Ensure javascript badge / widget html is not changed

One of my clients wants to distribute a javascript widget that people can put on their websites. However he wants to ensure that the backlink is left intact (for SEO purposes and part of the price of using the widget). So the javascript he's going to distribute might look like this: <script id="my-script" src="http://example.com/widget-...

Persistent Dashboard Widget Preferences

I'm building a Dashboard Widget and I'm attempting to store preferences that persist across "sessions" (i.e., a user closing the widget and opening it again). I've tried: function setEmail(event) { var preferenceKey = "email"; var preferenceValue = $F("email"); widget.setPreferenceForKey(preferenceValue, preferenceKey); } function get...

Javascript Widget Affecting Style of the Page it is embedded in

I'm currently developing a widget that can be embedded within a page. However, when embedded, it affects the style (font, text, layout, etc.) of the page it is embedded in. I wonder how Clearspring and other widget frameworks encapsulate their widgets so as not to affect the embedding page. Thanks. ...

Flex/Flash "popup balloon" control?

I'm looking for a Flash/Flex component which will create a "popup" editing balloon, similar to, for example, iCal or Google calendar: Does such a thing exist? ...

JFileChooser on OS X

JFileChooser looks nothing like the native widget. I seem to remember reading some hack to get it look like the native widget but searching for it know i can't seem to find it again i came across posts that suggest using java.awt.FileChooser but that class does not seem to be in the distribution. How can i make JFileChooser make look lik...

how can I add a QMenu and QMenuItems to a window from Qt Designer

Is there any reason why a QMenu cannot be added from the Qt Designer? I find it weird that you can add other widget types but not this. ...

How do get a "nice" scale-widget in SWT under Gnome?

Hi, I would need a scale-widget in SWT that looks like the following example: http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/Scales.htm If I run this example under Ubuntu (Gnome) the scale looks like this: http:// book.javanb.com/swt-the-standard-widget-toolkit/ch10lev1sec2.html But actually I would prefer to have these steps besid...

Is there a AJAX or JSON interface to retrieve the stackoverflow.com userId for a given username?

I'm trying to develop a stackoverflow.com widget for Mac OS X and I'd like to show the flair for a given username. The different possibilities described in User Flair are all expecting the ID of a user but I'd like to let the user enter a username, instead. Is there any way to retrieve the userID for a given username? Better yet, is t...

Qt: How to subclass a widget to add more elements to it

I'm trying to make a subclass of QTableView that has an embedded QLineEdit at the top for filtering the results as-you-type. I need my table to have the same API as a normal QTableView, so I want to subclass it rather than subclassing QWidget and adding a QLineEdit and QTableView to it. I thought I could just reimplement paintEvent(QPai...

tcl/tk widget combobox loses focus

The tcl/tk widget iwidgets::combobox with a terrible flaw: when the list goes away, the focus goes away from the gui so you can't type in entry boxes unless you move the mouse out of the gui and back in. This problem has been noted in other places, but I have not seen any solution. a. is there a way to re-gain focus before exiting the...

Multiple Dashboard widget instances don't survive widget update. Any way to prevent this?

I've written a Mac OS X Dashboard to show the StackOverflow flair of yourself and other people. My problem is that whenever I update that widget to a new version, all previous instances are removed and a single new instance is created on the Dashboard. So if you previously followed the flair of 4 people you'll have to recreate the widge...

Where are Dashboard Widget preferences actually saved?

This is a followup question to my other widget-related question. I'd like to check what's actually written into the preferences of the widget. Where is that data actually stored? ...

Is it possible to create new widget instances from within a Dashboard widget?

This is a followup to this question. It seems to be impossible to to simply keep already configured dashboard widget instances. An alternative way would be to recreate previous instances. Is it possible to create new Dashboard widget instances from within another widget? I couldn't find anything about this topic, yet. ...