JavaFX 2.0 custom Window frame buttons - window

I want to add a button to my applications window frame. At the moment I have the regular windows look: "minimize, maximize and close". I were thinking that I should make a whole new window frame with my own buttons, but what I really need is just an additional button that has the functionality of "Log out". Kinda like Skype: http://cloud.addictivetips.com/wp-content/uploads/2011/08/Compact-View.jpg
I have been searching the web for some pointers and hints, but I've gotten no longer.
So if anybody has any comments or code that would help me, it would be greatly appreciated!

The JavaFX Ensemble Sample application demonstrates custom buttons for "minimize, maximize and close", you can get it's source code here.

Related

undock/move Component Tray in Windows Forms Designer

Working with 16:9 screens, I always have an empty space to my right in Forms Designer.
On the other hand, this Component Tray is always overlapping the forms.
Is there a way to undock or move it to fill that wasted space?
I haven't found any other questions regarding this.
Thank you in advance and please excuse my bad english.
Edited: obviously I know I can drag its edge to fold the thing down.
Finally I created my own Add-In to dock that ComponentTray to the right as well as sorting its components alphabetically.
If you, like me, want to use your wide screen in all its glory, please post a comment below and gladly I'll give you all details.
After the testing phase, I'll upload the thing to VS Gallery.
EDIT: Here's the link to the VS extension. Feel free to use and enjoy it.
https://visualstudiogallery.msdn.microsoft.com/f426bc54-af1e-4d7c-9870-94c001f5215d
Best wishes.

Controlling the unity ui slider via script

I have a simple question: how does one go about controlling the UI Slider in Unity via code? I can control a GUI slider quite easily, but I'd prefer to work with the UI slider that can be assigned in the hierarchy.
I have a few scripts that control volume and audio timeline scrubbing (moving the slider to a certain point in an audio track) that work great, but I want to assign these scripts to a Unity UI slider.
I think I am missing something pretty easy, but have spent too much time trying to get this right. Any help would be greatly appreciated!
Have you had a look at the Tutorial for Sliders yet? And the Scripting API?
http://docs.unity3d.com/ScriptReference/UI.Slider.html
http://unity3d.com/learn/tutorials/modules/beginner/ui/ui-slider
The Slider has a OnValueChange eventHandler and there you can for example directly drag in your AudioListener (attached to the main Camera) or the script you want to call.
To add more calls just press the + ;)
Good Luck, hope that helps.

How to animate basiceditfield in blackberry?

In my j2me blackberry application, I want to open editfield to enter text when user clicks on search icon. I have search icon added at the top right corner, when user clicks on it, I want to open basiceditfield with animating from right to left. I want Animation should be like default search on main screen in blackberry. How to do this? Is it possible?
You can do almost anything with the Blackberry Ui, if you understand it and are prepared to put the time in. But what you see when you press the magnifying glass is something that someone has spent a lot of time doing. There is API for doing anything like that (at least not one I have found). So if you are not experienced doing BlackBerry Ui, as I suspect is the case here, then I would suggest that replicating what the BB engineers have done with the animation from the search icon on the Home screen to the search screen, is too difficult to justify.
A lot of these sorts of things are, in my opinion, just gloss. They do not make the application any easier to use, just make it look flash. Personally, I would spend your time on making sure your application works well, rather than making it look flashy.
I do recommend using the screen transition animations as a way of moving from one screen to another. These are fairly easy to use and when used correctly, provide a good visual clue to your user regarding the flow through your application. I also suggest you spend some time making sure your assets (icons etc.) look good, on all the various sizes of BB that you are developing for.

How to create custom onscreen keyboards?

Im about to start creating a custom onscreen keyboard for my WP7 app. An out of the box SIP will not work since they can't be customized or built from scratch with .NET.
Ideally the keyboard would activate like a SIP. Specifically, appear when the textbox receives focus. Docking to the bottom of the screen would be nice, too.
Any ideas where I could find samples of this?
Also, do you have any recommendations or lessons learned you could share?
I think you'll be making this sample ;)
The challenge with letting textbox take focus is likely going to be the built in SIP is going to appear. ReadOnly is an option, but you'll either lose or need to find a way to retain/mimic the cursor if that visual queue is important to you.

Is there an easy way to recreate the WinForms layout experience at runtime for user positioning of controls

When laying out a WinForm in Visual Studio you get the ability to resize and align your controls very easily with drag handles and border alignment hints.
I'd like to do the same with a runtime control to enable the user to position an image on a page.
For example, if the user has a photo and they want to place it as a background on the desktop I'd like the control to help them move and size the photo thumbnail in a mini desktop visual.
I can do all of this, but my real question is, does anyone know of a way to inherit from the standard WinForms layout editor so that I can choose to use the nice docking, alignment hints and control resizing without coding it all again?
Thanks in advance
Ryan
I don't know about easy, but you can host the actual winforms designer in your own applications without too many problems.. See here.

Resources