Maui Picker popup width and item clipping on Mac Catalyst - maui

On Mac Catalyst the Maui Picker control is implemented as a swiftui-style picker in a popup. Item labels that are longer that about 18 characters (on my non-retina mac) are right-clipped and have an ellipsis appended.
Is there a way to increase the width of the popup so that longer text items can be displayed? Or to disable the label clipping? Or some other way to display longer item labels?

By viewing the source code of PickerHandler in the Mac Catalyst part of Maui, you can see:
var frame = new RectangleF(0, paddingTitle, 269, pickerHeight);
The source code sets the width of the control to 269. You can refer to the source code to customize the Picker control to change the width. For customizing controls in Maui, you can refer to the official document: Create a custom control using handlers

Related

Show titlebar separator when hovering? (macOS)

I'm creating an NSWindow with title bar (.titled) or tool bar and I tried to adopt a new look for macOS Big Sur.
For example, the titlebar effect of TextEdit is perfect:
As you can see above, when I hover above the title bar, the titlebar's separator shows with transition. Then the separator disappeared after the mouse left.
I found NSTitlebarSeparatorStyle in Apple Documentation:
The automatic style doesn't provide an auto changing separator.
So how can I achieve this? Any good advise? :)
The .automatic style does provide the separator hover effect, but only when the window's content view consumes the full size of the window, that is, the .fullSizeContentView style mask.
So to have the effect you want, you will need to add .fullSizeContentView to your window's style mask:
window.styleMask.insert(.fullSizeContentView)

Possible to have editor window tabs dynamically resize to fit into view

Just to clarify, this question has nothing to do with tabs inside a document. This is about editor tabs (like browser tabs) in Visual Studio Code. When I have more open than the window will show the extras disappear from view. Is there a way to have them automatically resized so they all fit into view the way a web browser would do it?
Should do it:
// Controls the sizing of editor tabs.
// - `fit`: Always keep tabs large enough to show the full editor label.
// - `shrink`: Allow tabs to get smaller when the available space is not enough to show all tabs
at once.
"workbench.editor.tabSizing": "shrink",

Setting Button's Size in TinyMCE 4

I'm new with TinyMCE and trying to set the size of some of the buttons in the editor to small and some others' to medium, in TinyMCE 4.
I know about this property toolbar_items_size but this sets all the button's size small or medium. Instead, I'm trying to set the size property of the buttons in editor.buttons[] manually after the buttons get registered with the editor but before the theme gets initialized since the theme uses Factory.create() to create buttons & that sets class btn-<size> to the button, which sets its size.
I've looked into TinyMCE's code too but have not able to figure out a way to do so. Also, I've observed that all the editor's events get fired after the theme gets initialized, like BeforeSetContent,..etc.
I'm using modern theme.
Is there some way to achieve this?
Thanks.
TinyMCE simply does not support what you are trying to do - the buttons on the toolbar(s) are a uniform size. You can pick that uniform size (as you reference) but you can't mix buttons of different sizes on the toolbar.

Custom Controll like Dock menu of Mac os in ios

I want to create a custom controll like Dock of Mac os.
in which i want to display all items horizantally with shadow, and on select to the perticular item display focusing Dot like DOck in mac os and display perticular view corresponding to perticular selected item with genie effect or popup like view.
simple view is displayed in image above.
any help will be appericiated.
Thanks.
This tutorial from Nichchenakolla meets all your requirement, there is just no focusing dot but you can easily add that as you are free to provide any image there.

iPhone Development - Keyboard does not automatically adjust when taking input using TextField placed in a TableView

I just downloaded 2.2.1 and i've seen that my input view does not adjust itself when an input field (NSTextField) is selected. Earlier the view was adjusting itself w.r.t keyboard.
I was using 2.1. How can i achieve the same effect?
This was a bug, which has been fixed by Apple.