Quantcast
Viewing all articles
Browse latest Browse all 3737

Activating a window

In my program, I open a “daughter window” alongside the main window, to show progress as data is entered. After I open that daughter window, I reactivate the main window to continue collecting data entry. At that point in my program, I pass the focus to a specific text field on the main window. That field appears to have the focus but unless I click on the window somewhere, it doesn’t come to the front and allow data entry.

In Christian’s MonkeyBread routine “ActivateWindowMBS” the same thing happens - he notes that “… some windows may not come to the front unless they are clicked on.” That appears to be my problem. Is there a workaround for this or must I have the user click on the window to get going with data entry again?

In trying things out, I have determined that if I CLOSE the daughter window the main window works as I want - but I want the daughter window to remain in place and receive updates as data entry progresses. The main window contains data I don’t want to lose when the daughter window is triggered.

While this is not an earth-shaking issue, I wondered if there is a way around this limitation. I keep trying different things but so far no luck.

I forgot to mention - MacOS Sonoma 14.6.1, MacStudio M2 Max

6 posts - 5 participants

Read full topic


Viewing all articles
Browse latest Browse all 3737

Trending Articles