The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DT_SetTextColor problem
#1
there seems to be a bug in DT_SetTextColor if u put a static text on top of another control the static control background takes the background of the dialog.
In general i am getting strange behavior from static text controls.
example
Function Dialog6
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages


;BEGIN DIALOG
;0 "" 0x90CB0AC8 0x0 0 0 223 135 "Dialog"
;3 Static 0x54000081 0x20 24 62 46 12 "Text1"
;4 Static 0x50000101 0x100020 78 28 48 13 "Text2"
;5 msctls_progress32 0x54030000 0x0 56 28 100 13 ""
;6 ListBox 0x54230101 0x200 0 44 96 48 ""
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2030407 "" "" "" ""
if(!ShowDialog("Dialog6" &Dialog6)) ret
ret
;messages
sel message
,case WM_INITDIALOG
,/DT_SetBackgroundColor2(hDlg 0 0xFFFFFF)
,DT_SetTextColor(hDlg 0x0000FF "4")
,DT_SetTextColor(hDlg 0xFF0000 "3")
,case WM_CTLCOLORSTATIC    
,sel GetWinId(lParam)
,,case 3
,,SetBkMode wParam TRANSPARENT
,,ret GetStockObject(NULL_BRUSH) ;;transparent brush
,sel GetWinId(lParam)
,,case 4
,,SetBkMode wParam TRANSPARENT
,,ret GetStockObject(NULL_BRUSH) ;;transparent brush            
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


Attached Files Image(s)
   


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)