Is there a known implementation for an address bar in Gtk3? I'm looking for something like in iPhone and Android e-mail clients, where the already given addresses are converted into buttons.
Edit:
I'm currently developing for gtk-3.4. The GtkLinkButton suggested by mike below seems promising, but is there a way to add it to a GtkEditable so it could be deleted with e.g the backspace button, or for text to be inserted before/after it?
When posting about gtk3 in particular you should list what version your using because there's depreciated code as you change versions. The newest stable version is 3.4.
I think what your looking for is GtkLinkButton.
Official gtk+-3.4 manual
Related
Is it possible to display multiple buttons/actions in a toast or snackbar using the .Net Maui Community Toolkit? If so, can you provide an example please? if not, is there another way to achieve this.
I have looked at all the documentation I can find but have not been able to find a way
Unfortunately this is not possible. On Android it uses the platform implementation as this concept is actually something that comes from Android. And on Android you cannot have more than 1 button on it. On other platforms we draw our own SnackBar/Toast, but to make sure it is consistent across platforms, we only allow 1 button to be on there.
I have implemented Google-Cast in my iOS application. It already casts content just fine but the whole UI is in English, even when my device language is set to something else. The library is supposed to have support for lots of languages but I cannot seem to make it work. I cannot access any of the components to change its text value.
I have tried to access the components through UI inspector but I don't think that the library is prepared to be modified like this.
Also tried to change UserDefaults to change the value for key "AppleLanguages".
If there is anything else I could try or you come up with ideas/solutions, please, feel free to help me out since I have ran out of ideas.
This is a known issue and we are working towards fixing this. We are targeting to release a fix in v4.4.2 release. Right now we do not have an ETA.
You can follow this bug for more updates: https://issuetracker.google.com/132135605
I have to develop an application for Nokia Asha 501. I am using Nokia SDK 1.1 and the library S40-asha2013 from the ${SDK_HOME}/plugins/lwuit/lib.
I am trying to figure it out the UIID stuff from all the examples I am studying, but I couldn't find a source that would list all the UIID values for the components. For example I could change the background color of a normal TextField only if I set the UIID to "Label"
Ex:
textField.setUIID("Label");
Or to make for example a green button you have to set the UIID like this:
saveBtn.setUIID("ButtonGreen");
Which let's be honest do not makes any sense. So my question is does anyway know where I can find some documentation or listing related to this "mysterious" UIID. Or at least does anyone know where or if I can find the sources to Nokia Asha Lwuit because I only found this https://java.net/projects/lwuit/sources/svn/show but doesn't seem to be the same library (the version for my lwuit is 1.1.2).
With source code available I could look myself in the code and check for all UIID's.
Edit:
As a piece of advice if you want to really ease your life and understand how style and look is handled in LWUIT the resource editor tool is very valuable. Only after I opened the Nokia Asha default resource in Resource Editor I actually understood what happens there and what is the thing with UIID's.
I had also the experience that some styles seem to be "hardcoded", like the background of a text field. I had a suprising effect with an alert. When I set styles in resource editor they get ignored.
I also did not found the latest Nokia sources.
You get a list of all used UUIDs when you open the lwuit-jar file with a zip program, for example 7.zip, andd extract the file asha2013_themes. You can then open this file with the resource editor.
You can try to ask in the Nokia developer forum:
http://developer.nokia.com/Community/Discussion/forumdisplay.php/324-Mobile-Java-UI-and-User-Experience
In a programming scenario, I needed to check if my GWT textbox was focused or not. I ended up adding a boolean and a pair of Focus & BlurHandler to manually keep the focus state which makes me wonder why is there no such method that returns if a focusable component is focused in gwt?
Because there wasn't any cross-browser way of doing it until a few years ago (Firefox 3, Safari 4, to point at the last players in the game having added support document.activeElement).
GWT still officially supports [1] Safari 3 (I believe Safari 2 support has been deprecated) and maybe even Firefox 2 (no DevMode plugin, but that doesn't mean the browser isn't supported: Opera is supported but has no DevMode either), so it's not possible to provide such a feature that would work in all supported browsers.
Last, but not least, I think no one ever filed a request for enhancement in the issue tracker (I couldn't find any at least); and as you said, you can already do it today using FocusHandler/BlurHandler (which works cross-browser).
[1] http://code.google.com/webtoolkit/doc/latest/FAQ_GettingStarted.html#What_browsers_does_GWT_support? I believe that page is a bit out of date, as it still lists Firefox 1.0, whose support (user.agent=gecko, vs. gecko1_8) has been removed in GWT 2.1.0, and doesn't list IE9, whose support has been added in GWT 2.3.0, and last but not least, I believe only the latest version of Opera is supported, whereas the list talks about Opera 9.
To find which widget has focus, I don't know whether you have solution already. As a novice to GWT , I propose my solution to share:
Declare private field in the object, like 'focusedWidget'
Create focus handler for the widget, here's class TextBox. In OnFocus block, just assign the widget to 'focusedWidget'. You can add this kind of event to every widget that can be focused. ![step 2][2]
That's all. Every widget you tied the focus event will set itself to 'focusedWidget' everytime it is focused. We can then use 'focusedWidget' to determind which current widget is focused. ![step 3][3]
I test it in JUnit, it works!
see image of snippet here
Hope that help.
Take CATransition as an example.
Why does Google return those results and not learn that I actually need the iOS reference library and is there a way to make it return the proper results for me?
It usually works by adding the ios keyword in the search query, but it's annoying. I generally return to the search results and click the link from the iOS Reference Library, or do another query with ios at the end and this brings me to the needed page, but I would expect the search engine to learn that I am not interested in the Mac OS X Reference.
It's probably too much to expect a search engine to tailor its results to your behavior, too many people use the same computers often without logging out of their Google account for it to be reliable.
However there is a quick fix, just make a slight change in the address bar once you're in the OSX reference.
http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/CATransition_class/Introduction/Introduction.html
Can be switched to
http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Reference/CATransition_class/Introduction/Introduction.html
Works for me every time.
Add site:developer.apple.com/library/ios to your Google queries. Or do the search in Xcode's documentation browser.