Yes, I try to use menu anchor to create. But I think the placement setting have some problems, my sidebarmenus can not display completely in the anchor position.
As for the animate way, this part I am not really understand. Maybe I need the time to study. Do you have any recommend sources.
You could isolate which mouse button does what. This is the default behaviour where LMB is consumed by the button and does not extend the panel, any other mouse button would.
Since each entry is a separate widget, you could easily achieve this highlight effect across the line:
Oh my god, super thanks.
Let me think and try in my case!!!
But in your demo, I think it is similar to pop-up the text.
How to look like a panel expand. And then inside the panel, I just can customize my information I want to display.
There is no anchor here. I feel a menu anchor would be a bit more complicated, especially when it comes to comms, but could work. Anchor is great for context menus, this is just a collapsible panel. Seems like this method would work well enough.
Let me check, you build three user widget(wPanel, wPanelentry, wAnimatedPanelParent).
And then you build the blueprint in wPanel widget, right?
As a result, we expand the panel by this blueprint structure, right?
But I get lost in part of “We collapse the text pieces with a mouse click:”
I can not create the “on mouse button down” and “Return node”.
I used the onbuttonclick to replace the “on mouse button down” function.
I can arrive the similar result.
But next I want to let my layout change when I clicked the button.
There is a horizontal box in the bottom of my layout and the right hand side is the sidebar menu.
And then, I hope the horizontal box will scale when I chick the button to expand the sidebar menu. How can I do, must use animation?
First pics:
add the border and the panel to a horizontal box, you can use another horizontal box inside the border to house other items. Or replace the border with just a horizontal box if no background is needed. The example you have a is a bit unclear.
the wPanel is set to auto size
the horizontal box in the canvas no longer Sizes To Content (see previous posts) - the desired functionality changed since the first post request
the size box here may not be needed if you fill the border with some other content
It dictates how much space percentage-wise the widget takes in the parent container. But then again, we do not know enough about the end result, what else needs to be added, whether this needs to be fullscreen and how dynamic.
You presented a snippet only, a fragment of the menu. You normally build the interface the other way round. Big pieces first, and only then populate it with smaller panels. With this design pipeline, you may need to redo the whole thing several times.
Working on small pieces is fine providing you’ve got the grand design to work towards to.
You can use the canvas panel for roughly blocking things out first, consider looking into how anchors (not menu anchors) work. Pretty critical for design that needs to adapt to resolution.
I curious about if there is a text or button in your horizontal box, what’s the result after expanding. Will it auto scale? Instead just cover this horizontal box, right?
Btw, you just edit the mainwidget and add the blueprint of wPanelEntry, right?
Scale what? You can see the result in the animation - is this not the effect you’re after? That’s what I understood. If that’s not it, we may need more info / details.
The widget in the animation is transparent, you can see the white border is not just hiding behind the panel, it resizes accordingly.
So you don’t change the wPanel layout, right.
No, but are we even still talking about the thing you originally posted?
Ok, Let me explain my question again!
Like this pics, when I click a arrow button, it will expand the righthandside panel.
But the original bottom horizontal box will scale to moderate size.