[Solved] Progress bar / dialog box behavior

Creating a macro - Writing a Script - Using the API

[Solved] Progress bar / dialog box behavior

Postby Herb40 » Mon Mar 27, 2017 8:06 pm

In several of my applications, I use two progress bars (PBs) within their associated dialog boxes (DBs). At the present time, I use no other DBs. One PB/DB is for the "main" program, and represents progress through the functions the program must complete. The other PB/DB is for sub-functions called from the main program. The sub-function DB/PB is created and closed multiple times as the main program calls various sub-functions. I also change the title of the main DB as work progresses. All of this works just fine.

But the appearance of the DBs changes over time, without any code in my program. I suppose that the OO is trying to tell me something with these changes in the display, but I haven't been able to find an explanation for this behavior. For example, the text in the title of the main DB is frequently dimmed.

The sub-function DB sometimes has a thin, red line around it.

The appearance of the red line is not objectionable, but I would rather that the text in the main DB not be dimmed. Is there a mechanism for controlling this? Thanks for your help.
Last edited by Herb40 on Mon Mar 27, 2017 10:56 pm, edited 1 time in total.
OpenOffice 4.1.3 on Windows 10
Posts: 134
Joined: Thu May 08, 2014 3:35 am

Re: Progress bar / dialog box behavior

Postby JeJe » Mon Mar 27, 2017 10:03 pm

The appearance of text in the titlebar of a Window changes depending on whether it has the focus or not. If you show a dialog modally using the execute statement it will have the focus until it closes. You can show a dialog non-modally as well - without it taking the focus.

https://forum.openoffice.org/en/forum/v ... =20&t=5815
Openoffice 4.1.2
Windows 8
Posts: 299
Joined: Wed Mar 09, 2016 2:40 pm

Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 3 guests