How to do click on the drawn shape - haxe

how to click on a drawn figure so that after clicking it disappears, so far it has turned out to click on the entire playing area.
if (FlxG.mouse.pressed)
{
remove(circle);
}

You're only checking if the mouse is being pressed, you should first check if the mouse is overlapping the sprite and only get the click when that's true.
An example https://gamefromscratch.com/haxeflixel-tutorial-mouse-input/

Related

Excel arrow buttons to scroll through TABS don't work

I have a workbook in which the 2 little left and right arrows at the bottom left which we use to move through tabs are not working. I can still right-click and choose the tab I want to go to, but I'm baffled as to why the arrows themselves no longer work. And the left arrow is always greyed out even if I've navigated to the rightmost tab. And if I do navigate to the rightmost tab, I don't see the tab name at the bottom of my screen; it remains hidden behind the scroll bar. The right arrow is always dark/black and seems like it should be working. Any idea why that might happen?
Try using ctrl + Pageup or Pagedown, hopefully that helps you until someone can answer or assist on the real issue.
I just had the same issue and I resolved it by clicking the vertical 3 dots on the far right and then sliding it to the far right and then clicked on the "+" just to the left of it which added a new sheet and then clicked on the horizonal "..." I then deleted that new sheet that I added and voila, now I can scroll left and right using the left and right arrows.
enter image description here

Powerpoint: Change grid that drawings are aligned to/Move objects freely

I try to highlight a bar graph (exported from Excel) by adding an arrow at the tip and the bottom of a specific bar but it drives me nuts, that the grid at which Powerpoint orients itself results in the arrow not being exactly in the middle of the bar. Moving the whole bar graph doesn't bring a solution to this. Can I just move the arrows freely?
Hold down the ALT key while you move the shape with the mouse; that'll temporarily disable snapping to grid.
Or right click off the slide, choose Grid & Guides and turn off Snap To Grid in the resulting dialog box.

Excel VBA IE Get Element's Coordinates For Mouse Click

Is there a way to get an IE element's mouse coordinates then command a mouse move to that coordinates on the screen to click it? I tried searching for element.getAttribute but so far couldn't find what I need.
I simply need the mouse to move/point to an object and click it. I'm needing to do it this way without using element.click

Motif: How to move Scroll Bar automatically without user intervention

I have a scrolled window in my application, in which I have created a drawing area widget. In the drawing area, I have placed multiple images. When the user enters information about an image in a search box, the appropriate image gets highlighted.
My problem is how do I get the application to scroll automatically to the highlighted Image box without the user using the scroll bar. The scrolledwindow should automatically move the view region, to display the region where the highlighted Image is present.
The scrolling policy used on the scrolled window is XmAUTOMATIC.
Any pointers would be greatly appreciated.Thanks in advance.
Try XmScrollVisible() if this does not work then you will need to:
1. Find out the size of the work area.
2. Find out the size and position of the clip window.
3. Find out the max/ min values for the horizontal scrollbar.
4. Use XmScrollBarGetValues() for the horizontal scrollbar to get its position within the max/min values.
5. Do some math magic to determine how much to move the horizontal scrollbar to get the work area to show through the clip window.
6. Call XmScrollBarSetValues() with Notify = True.
7. Repeat for the Vertical scrollbar.
HTH

How remove focus to the list box?

I am having a lisbox where I had set it's property "Selection" to "None".This lisbox is being used in a propertysheet.When I navigate on to the page where list box control is present,here initially when I click on the listbox no selection is happening,this is excepted result.But my only concern is in the lisbox page itself when I use "tab" usually the rectangular dotted line is coming on the Back,Next and Cancel buttons(this is expected),but at the same time after playing with tab around on those buttons,if I had a mouse click on the list box I am getting a rectangular selection on the Item's in the listbox(this is not expected),No selection has to occur.
I even set the "Tab shot" property of the list box to FALSE.
Can anyone please let me know how can I avoid that rectangular selection on the listbox items,even after using "tab" and having a mouse click on the lisbox that rectangular selection should not happen.
Must be a glitch... If you want to prohibit selections on your listbox without disabling it, what happens if you try
void CMyPropertyPage::OnSelchangeList()
{
m_list.SetCurSel(-1)
}

Resources