NOOB ALERT
I am making a simple GTK application, and as it's my first time using a UI toolkit, I'm a bit confused. No matter what I do, I can't seem to make the menu's (icon::menu) contents to appear when the status icon is right clicked. Instead, I just get a blank menu:
I genuinely do not know what could be going wrong here, I looked everywhere for examples and such and I can't figure out what is wrong with my code. Any help would be greatly appreciated. Thanks!
Also, apologies for the lack of detail in my question, I'm completely lost and I don't know where to even start debugging.
Related
I have a Xamarin.Forms page that loads fine. If I click a button on the page that causes the Content to be changed, the whole UI shifts a little bit. I am assuming this is happening due the equivalent of a ForceLayout happening when I change the Content page. It is a fairly complex page, with a couple RelativeLayouts inside a StackLayout.
After this happens once, it never happens again, interestingly enough. So I am thinking if I do a ForceLayout somewhere, or even just reset the Content twice on load it might fix it for me. The trouble is I don't know where to make that happen. If I try it in the constructor it does not help. Any ideas?
Found my answer. I just set the content a second time in the Appearing event. Problem goes away. I love Xamarin but the layouts in forms feel like quite a hack sometimes, particularly RelativeLayouts.
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.
Is there a way to make a frameless window with shoes on Windows?
I searched a lot and couldn't find anything that helps me.
The only thing i found was someone saying he could make it with the win32api years ago, but my research in that results in nothing.
edit
It looks like that it is possible with SetWindowLong from the win32api, but i cant figure out how exactly. Any ideas?
There is no way to do this in Shoes that I'm aware of, you'd have to get straight tot he win32 api which would mean modifying the C-code of shoes3.
For shoes4 there is an open issue for the wished behavior.
RBLPopover is a Popover made by the Guys from Github that aims to mimimc NSPopover but fixes some of it's flaws, like canBecomeKeyWindow. It is part of the Rebel Framework they currently hosting on GitHub. I decided to use this Popover for my Statusbar Application and ran now into a problem. NSPopover is able to resize it's size dynamically and animated if it's shown and you use setContentSize. Then it will automatically resize animated to the newly given size. However, RBLPopover is not doing that. After 8 hours on looking into RBLPopover's Code I was not able to fix this, one reason will be lag of knowledge on my Part on how Views work internally in Detail.
The Code for RBLPopover can be found here:
https://github.com/github/Rebel/blob/master/Rebel/RBLPopover.m
Can someone give me a hint on how to fix this? I don't ask for code, just some advice/concept on how to achieve this. Is there some Method that is missing in it's parent class? I don't believe that showRelativeToRect:ofView:preferredEdge: is the right method to change. I believe that something more fundamental is missing but I don't get it.
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.