widget

Need: javascript dropdown replacement widget

I need to address the following problem: In IE the dropdown body is what dictates the width of the dropdown. If i set dropdown width to 100px then the body will get cut off if its wider. Last time (4 months ago) i looked for a suitable widget i found the following problems Not all dropdown keyboard shortcuts supported: up/down ar...

Disable user interaction in a GWT container?

I want to disable/enable user interaction (mouse click more specificly) on many widgets like hyperlink, button, etc which are contained in a composite (flextable) there are more than one click handlers, and I don't want to bother with removing and adding listeners according to mode (interaction enabled/disabled) Any ideas would be appr...

Qt Creator (compiled with MinGW) widget integration

Hi, I'm using Qt Creator 1.3.0 on Windows XP. I'm developing custom widgets in Creator, but as many other people have found, these widgets don't get imported into the integrated Designer. However, my widgets do work when Designer is run independently of Creator. The initial problem was due to Creator being shipped as a Visual Studio b...

parse dojoAttachEvent in content returned from xhr in a custom widget?

Instead of the typical custom widget that mixes in _Templated for it's markup, I want a widget that just mixes in _Widget then does an xhrGet to fetch the markup. In addition, and this is the part that I need help with, I want dojo to parse the xhr result text for dojoAttachPoint and dojoAttachEvent in the context of the widget, hookup ...

Python Function Reference

There're tons of apps/widgets for PHP function reference and even for Ruby but I'm shocked to find there is nothing available for a popular language like Python (besides the official online documentation ofcourse). Is there really not a single handy reference widget/app available for Python? I have 'Pocket Reference' book, but a dashbo...

Android: callback for search widget opened and dismissed

I have a screen layout that is forced to be potrait mode. Because it is very complex I don't have the time right now to invest creating a separate one for landscape mode. It also doesn't make much sense for my type of application. However, for input fields it's better to provide a landscape mode, because some phones have a hardware keyb...

Android Widget Not Updating

I am trying to implement a simple widget for display on the home screen. The problem I am experiencing is that onUpdate is only being called once when I install the widget. The configuration is below. Note: I will not leave update period at 20 secs as I know that would kill battery (just testing). Configuration: `<appwidget-provider xm...

Extending GWT's Widget Class

I'm making a new class called 'Cell' which extends the GWT Widget class. The purpose of this class is to be a cell in a spreadsheet -- it therefore must be able to switch between being a GWT Label object and a GWT TextBox object. The only way that I can think of doing this is by making Cell extend Widget and include a private Widget cal...

How to implement a Button on an Android Widget

Hi I am just getting started with Android development and I have created a nice little widget that displays some info on my home screen. However, I now want to implement a Button on my widget that updates the info in my widget TextView. Can anyone advise how to go about doing this? Thanks ...

Custom scripts and styles for widgets in Symfony: position

My sample widget: class myWidget extends sfWidgetFormTextarea{ public function getJavascripts(){ return array('my_widget.js'); } public function getStylesheets(){ return array('my_widget.css'); } } Form template: <?php include_javascripts_for_form($form) ?> <?php include_stylesheets_for_form($form) ?>...

Android Layouts- Mixing dynamic with static elements

My View doesn't use an XML layout, I just reference a View subclass defined in the Action class. The app consists of an empty canvas that the user can create/interact with various 2D objects. That's the easy part, but I want an onscreen widget to appear on the right side of the screen that allows the user to select various objects to cre...

How do I change the background of an Android tab widget?

My class extends extends TabActivity TabHost mTabHost = getTabHost(); TabHost.TabSpec tab1 =mTabHost.newTabSpec("tab1"); TabHost.TabSpec tab2 =mTabHost.newTabSpec("tab2"); tab1 .setIndicator("title tab1"); tab2 .setIndicator("title tab2"); mTabHost.addTab(tab1);mTabHost.addTab(tab2); TabHost.setCurrentTab(0 or 1) Can anybody guide...

Difference between a jQuery plugin and a jQuery widget?

Can someone concisely explain the differences between jQuery plugins and jQuery UI widgets? What are the conceptual differences? Why would I choose one over the other and what pros and cons are there for each. What are the differences in the intention and concept for each? I've written both, but I'm not clear on the nitty gritty differe...

cant exchange widget in QSplitter (Qt)

I have a QSplitter with two widgets. One of them is static, the other one is supposed to change on the press of a button. But the problem is the widget does not change? I have a pointer for the widget that is changing - this->content The widget to switch to is in the pointer named widget. Here's a code snippet where I switch the widge...

python Qt: main widget scroll bar

Hello Everybody, We are trying to put scrollbar on the main widget, so if the user resizes the main window, the scrollbar appears, and let he move up and down to see child widgets that is outside the smaller window widget, allowing it to move right and left. Here is the code for the main widget with the scroll-bar.. def centralWDG(sel...

Django - custom widget with "did you mean" hints based on validation.

Hi! I have a basic model : class MyModel(models.Model): my_field = models.CharField() I have a basic form for this model : class MyFrom(forms.ModelForm): class Meta: model = MyModel And I have a function that does a basic lookup (a lot more complex in reality, regex etc. won't do) : POSSIBLE_VALUES = ['aa', 'bb', ...

Is widget animation supported in PyQt?

The new animation framework in QT4 looks incredible. I'm trying to implement some simple widget animation in PyQt4, though I'm having errors. self.button = QtGui.QPushButton ("Hello", self) self.button.setGeometry (5, 10, 100, 25) animate = QtCore.QPropertyAnimation (self.button, "geometry") animate.setDuration (10...

How to embed Javascript widget that depends on jQuery into an unknown environment

I'm developing a javascript widget that depends on jQuery. The widget may or may not be loaded onto a page that already has jQuery loaded. There are many problems that come up in this case... If the web page does not have jQuery, I must load my own jQuery. There seems to be a delicate timing issue when doing this, however. For exam...

Changing android widget setup preferences after creation?

Say my app has a widget and I use a configuration screen to do initial app widget setup and set a few preferences. I want the user to be able to change those settings by simply going into my app's settings screen and clicking an intent preference to open up the same options the user was given when the app was created. Can I use the sam...

How to create a floating scrollbar like the one on the iPhone?

Hello everyone, I'm creating a finger friendly web app and am having issues with the scrollbar. Ideally I'm trying to recreate the iPhone's implementation where the scrollbar only appears when the user scrolls the content and disappears when the scrolling stops. Anyone got any pointers? ...