Gustavo,
Include a Button to the Function.
The Position is calculated to the Right- / Bottom-corner :
@ nHeight - 40, nWidth - 45 BUTTON "&OK" SIZE 40,30 OF oBar1 PIXEL ;
FONT oFont1 ;
ACTION oBar1:End()In case You don*t want a extra Button, You can use the ACTION of the Info.bmp :
( It would be great, Daniel could add TOOLTIPS to the Image )
@ 10, 20 TITLEIMG OF oBar1 BITMAP c_path + "\Bitmaps\Info.bmp" SIZE 45, 45 ANIMA LEVEL 255 ;
ACTION
oBar1:End() // can have a Action !!!
Just give You a Idea. Using a Logo as Background and NO extra Bmp.
The Painter :
You can change everything :
Fonts and Text, Backgrounds, Sizes, Message-Bmp, Shadow- Size / Position / Color .....
Switch BMP On / Off, to show just the Background and Text.
Empty Textlines are not used inside the Message.
Any Changes from the Folder, shows the Result inside the Painter.
The Window-message is updated, after closing the Painter.
Message-Top/Left is fixed to the left upper Corner.
Calculated Top-textlinepositions from given distance (nTextT) and Fonthight (nFontH1 and nFontH2)
Local nTop1 := 2 * nTextT + nFontH1 // Top of 1. Textline uses Hight of Headline-font
Local nTop2 := 3 * nTextT + 2 * nFontH2 // Top of 2. Textline
Local nTop3 := 4 * nTextT + 3 * nFontH2 // Top of 3. Textline
Local nTop4 := 5 * nTextT + 4 * nFontH2 // Top of 4. Textline
Local nTop5 := 6 * nTextT + 5 * nFontH2 // Top of 5. Textline
Change the Text and define a Dialog-size for the Dialog-preview :
Best Regards
Uwe