Posts: 88
Threads: 33
Joined: Feb 2007
Why is there a difference in control displays when running them through QM and as an exe ?
Eg - Animation object is transparent in QM and non-trans in exe (see images)
SetWinStyle han ACS_CENTER|ACS_TRANSPARENT 1
Also, the treeview and listview controls do not inherit windows style when run through exe. However, from QM all controls display perfectly.
??
Posts: 12,092
Threads: 142
Joined: Dec 2002
Here works well in exe too.
Posts: 12,092
Threads: 142
Joined: Dec 2002
Example.
Function DlgAnim
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("DlgAnim" &DlgAnim)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 250 250 "Dialog"
;3 SysAnimate32 0x54000000 0x0 0 0 96 48 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2020002 "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,int han=id(3 hDlg)
,SetWinStyle han ACS_TRANSPARENT 1
,SendMessage han ACM_OPEN 0 "C:\WINDOWS\clock.avi"
,int from=0 ;;beginning
,int to=-1 ;;end
,int repeat=-1 ;;indefinitely
,SendMessage han ACM_PLAY repeat to<<16|from
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
You need QM 2.2.0, or declare the constants etc.
Posts: 12,092
Threads: 142
Joined: Dec 2002
I guess you have QM 2.2.0 and create exe without manifest. You can use default manifest $qm$\default.exe.manifest
Posts: 88
Threads: 33
Joined: Feb 2007
Yup...it was the manifest.
Thx, G