I am using wxfreechart to generate a chart from my input dataset. The bottom axis is a DateAxis and the left axis is a NumberAxis. I was able to set scroll bar for my bottom axis. I need to set scroll bar for left axis too.. Adding it using setscrolledaxis() creates the scroll bar, but the chart becomes very unclear with no labels and all. Can anybody help me :(
Also the scrolling doesn't happen unless scroll bar is dragged using mouse.Clicking on the scroll arrows moves the scroll bar very slowly, but the chart window does not move accordingly. Any solution?
Related
I have an app similar to most with a main view that scrolls vertically. On top of that, I have a horizontal drag gesture to pull out a side menu.
The issue I am running into when trying to drag the menu open is any vertical movement at all stops the horizontal gesture from working until the vertical movement has ended. So it is very difficult to get the horizontal gesture to activate.
I have tried using .highPriorityGesture and .simultaneousGesture but neither seem to help.
Adding a minimumDistance on the Vertical gesture should fix it
DragGesture(minimumDistance: 10)
I have a rectangle popup near the NavigationList sidebar (black area on the left)
How can I trigger the Side bar resizing when I drag this rectangle? I want to be able to resize not only from the edge of the side bar, but also from this rectangle (since the sidebar may disappear) SwiftUI.
I want to resize the side bar with the rectangle drag in the same way we resize it via dragging its edge.
i am working on a Qt project and i want to make a fancy context pie right click.... menu.
like the one in the image
bellow
I am using QGraphicsItem, QGraphicsScene, QGraphicsView, and setting the background transparent by
setAttribute(Qt::WA_TranslucentBackground);
setStyleSheet("background: transparent ;border: none;");
what i want to achieve is when user hove over the circle and it is a sub-menu then a pie menu will appears but,
The problem is:
sadly mouse events will not emit unless its touching a solid pixel from my QGraphicsView, so when mouse cursor hove over a sub-menu the red pie will appear BUT as soon as i move to click on a sector from the pie it will disappear because i am no longer hovering over the orange circle.
any another good idea or solution so i can get mouse events over my transparent area (i will calculate the distance from the orange circle and if the mouse IN RANGE the pie will stay shown)
thanks.
I think you can do this :
Hover the orange one and the sub menu appear.
Keep the sub menu appear until your mouse hover nothing or hover another circle menu. When you move your mouse to sub menu -> it means you hover thing, so the sub menu will still there. If your sub menus are all same, so when you hover another circle, just move sub menu position and maybe set some property.
Make sure that your orange circle and the sub menu is overlap, so moving mouse from orange to sub menu will not trigger "hover nothing"
I have created a bar chart using google spreadsheet. I just want to ask how I can put data labels (just like in Excel) to show the value of each bar. Is there a way to do that without using a script? Thank you
If you click on the chart itself, or during creation of the chart, you will be greeted with the "Chart Editor" window. In the top of the window there will be three tabs, from left to right: Recommendations, Chart Type, Customization. Under the Customization Tab if you scroll down to the very bottom, in between the "Point Shape" drop down menu and the "Error Bars" drop down menu, there is a drop down menu named "Data Labels" simple change the default of "none" to "Value" and wha-la labels.
To get labels for both X and Y coordinates simply scroll up to the "Axis" drop down menu (this is still under the customization tab) and switch the Axis from Horizontal to Vertical, or vise versa and repeat the above steps.
I have a list control and disable the scroll bar using the following code.
InitializeFlatSB(this->m_hWnd);
FlatSB_EnableScrollBar(this->m_hWnd, SB_BOTH, ESB_DISABLE_BOTH);
The scroll bars don't disappear, they just become white, which is what I need because I want to redraw my own scroll bars on their original rectangle region. In that way, my own scroll bars won't cover the list content and I can add functionality so that the mouse wheel function will be enabled.
But now how can I get the rectangle region of the scroll bars?
As suggested in the comments, can you try to deduce the rectangle from GetWindowRect and GetClientRect? It seems to be a easy calculation to do subtractions and get a Non Client rectangle for the Vertical scroll bar and another for the Horizontal.