Thanks Ken!
Nevertheless, I am keen to get an answer to my question, since at the moment I am confused when using %TH.
Here is the code I have defining the bubble strings and their use with %TH
and also (at the moment) with %BH:
...
...
call ENABLE_UTF8@(1)
b1_h='Textový súbor so 7-riadkovou hlavičkou a hodnotami'//char(10)//' X,Y,DX,DY v tvare nepravouholníkovej mriežky, '//char(10)//&
&'(hodnoty X,Y nie sú zoradené vzostupne)'
b2_h='Výstupný súbor, do ktorého sa zapíšu hodnoty X,Y,DX,DY vo'//char(10)//' vzostupnom poradí doplnené hodnotami X,Y,&
& pre ktoré DX=0, DY=0,'//char(10)//'aby sa vytvorila pravouholníková mriežka bodov'
b3_h='Po zvolení vst. a výst. súboru sa kliknutím'//char(10)//'na tento gombík spustí konverzia údajov'
b4_h='Ukončenie programu'
...
...
ans=winio@('%4nl%ta%bf%fn[Courier New]Zvoľ vstupný TXT súbor:%5ta%bc[yellow]%`^?bt[&Vybrať vstupný súbor]@%th[balloon]&',&
'FILE_OPENR[Zvoľ súbor]',subor3,sb_vstup3,b1_h,1) ! NOTE: %TH is used for the first button
...
ans=winio@('%3nl%ta%bf%fn[Courier New]Zvoľ výstupný TXT súbor:%4ta%bc[yellow]%~^?bt[&Vy&brať výstupný súbor]@%bh&',&
button_grey_control,'FILE_OPENW[Zvoľ súbor]',subor4,sb_vstup4,b2_h,1) ! NOTE - %BH used for the 2nd button!!!
...
...
ans=winio@('%3nl%ta%bf%fn[Courier New]Spustenie konverzie údajov:%ta%bc[green]%~^?bt[Š&TART]@%bh&',button_grey_control,cont,b3_h,1) ! NOTE - %BH used for the 3rd button
ans=winio@('%ta%bf%fn[Courier New]Koniec programu:%ta%bc[red]%^?bt[&KONIEC]@%bh',knc,b4_h,1) ! NOTE - %BH used for the 4th button
...
...
Originally, when I used the %BH for all buttons, I made it according to ClearWin+ manual, where in Chapter HELP is described the use of %BH. At the end of this chapter, there is one sentence that: '...%th is used as an alternative to %`bh. %th provides a help bubble in the form of a
“tooltip”.'
So, now, since %BH has a problem with the black area demonstrated above, I tried to use the %TH in the SAME manner like %BH, it means I replaced all %BH commands in my 4 buttons with %TH and got the run time demonstrated above which practically says that it is impossible to use %TH more than once. Based on this information, I let the %TH command ONLY for the 1st button and the rest 3 buttons have %BH as before - and everything works as expected (no black areas appear for the buttons with %BH), the bubble helps for all buttons look nice!
What does it mean? Generally speaking, should I understand that it is required and allowed to use the %TH only ONCE within a program and all other buttons must have %BH? I am totally confused here!
Your code above is - of coarse - crystal clear, I will re-program my code to have clear understanding of the code also for later use, but - really - I would like to know why %TH can be used only once in a program (has different philosophy than %BH?) and when the %TH is used once, whether it takes over the behaviour of %BH, when both are mixed and used as in my case above?
BTW - the function ENABLE_UTF8@(1) works with %TH problem free (all special slovakian letters are displayed correctly). It indicates some internal problem with %BH.
Thanks for the answer/s to my questions and for dispersing of my confusion!
Martin