Amchart - maps. Url click only if certain zoom level - amcharts4

Based on the zooming to countries map how can I have a url property field available ONLY after the user clicks on a particular country? (so a 2nd click fires the url or after a certain zoom level).
https://www.amcharts.com/demos-v4/zooming-to-countries-map-v4/
This function was working in v.3, there is an example here
https://www.amcharts.com/docs/v3/tutorials/map-zoom-first-click-marker-go-specific-url-next-click/
Also, how can have hover color affect only some countries?

Related

Is there any way in SwiftUI to identify in a ListView which row is currently at a given position of a view

I wanted to provide a zooming effect to the images displayed in a ListView. Each time the list scrolls up & the item reaches top of my visible area. I want to zoom the image a little.

dynamically update color scheme of many available + refresh views in swiftui

How can I refresh a SwiftUI View dynamically while showing the user a list of color schemes to choose from? eg the user sees a list with 5 different themes each with its own button+UILabel, then presses one of them and the View refreshes with the UI elements refreshing to using that color scheme selected.
How can I force the View to redraw using the new color scheme?
Is there a way to define such Color scheme via an extension to swiftUI Color, so that I can continue to use eg a .foregroundColor(Color.primary) and yet the color actually used, to be in the dynamically chosen current theme, ie. use the Color.primary for the currently selected theme?
Thank you

icCube Reporting Drilldown - Changing Axis and Title on selection events

When activating a drilldown behaviour in the widget's navigation panel i'm trying to understand how to change the title and the axis label based on some complex logic.
I would like to write some articulated function that changes some part of the graph (title, category labels) by a custom logic.

How to determine when at the bottom / end of a QListView?

I'm using a QListView which wraps a very simple list model. I would like to try implementing something similar to the "infinite scroll" seen in some web pages.
Currently the model is updated by a method which adds at most 100 items (they're taken from an external web API which takes at most 100 items per call). My goal: when the user moves to the last element of the list view (in my case, by scrolling down) I would like to start a call to get up to 100 more items, and so on.
To simplify in this example:
Populate the list with 100 items
View scrolled down (by user) to the bottom
Other 100 items fetched.
Is there anything in QListView that tells me when I'm at the end of the visible view?
QListView is a subclass of QAbstractScrollArea, so one way of finding out if the vertical scroll bar's position is at one of its extremes is to:
Get the QScrollBar object used by QListView by calling verticalScrollBar().
Connect the sliderMoved(int value) signal of the scroll bar to a slot of your choice.
In the slot, fetch the min/max values of the scroll bar and compare them to the value given in the signal.

Owner drawing a checkbox List View

I have created a List view control with View = Icon / List, with LVS_EX_CHECKBOXES enabled.
And the checkboxes overlap with the items text, so I am wondering how could I create a owner drawn list view with checkboxes ?
I have seen that one has to process LVN_ITEMCHANGED notitication to test if an item has been checked.
How does this apply when the checkbox itself gets owner drawn, how do I approach this problem.
How Do I manage the events, the checkbox checking and unchecking while drawing my own, do I have to implement the checking routines myself or do I get something from the window? A message or something? While drawing my own checkbox how do I differentiate between a click on the item and a click on the checkbox, do I have to check the coordinates of the cursor when the click occured? how do I do this.
THis is with view= icon, it shows ok with view=list