If I use TRANSPARENT with DIALOG the displayed text of REDEFINED SAY is cutted:
- Code: Select all Expand view
- function DialogFromResource1()
local oDlg
LOCAL cText
cText := "*** Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ***"
DEFINE DIALOG oDlg NAME "DIALOG1" COLOR NIL,RGB(239,239,231) TRANSPARENT
REDEFINE SAY PROMPT cText ID 500 OF oDlg
ACTIVATE DIALOG oDlg
return nil
without TRANSPARENT the whole text is displayed:
- Code: Select all Expand view
- function DialogFromResource2()
local oDlg
LOCAL cText
cText := "*** Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ***"
DEFINE DIALOG oDlg NAME "DIALOG1" COLOR NIL,RGB(239,239,231)
REDEFINE SAY PROMPT cText ID 500 OF oDlg
ACTIVATE DIALOG oDlg
return nil
The resource file:
- Code: Select all Expand view
- DIALOG1 DIALOGEX DISCARDABLE 44, 23, 400, 107
STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
FONT 8, "MS Sans Serif"
{
CONTROL "", 500, "Static", WS_GROUP, 8, 18, 388, 68
}
How can this bug fixed?