06-25-2007, 05:04 PM
i want a slider for setting a dialogs transparency *.
how do i set initial 255 steps for the trackbar32 ?
currently its 0-100.
or do i misunderstand the concept ?
TransDialog2
*
the real idea is to attach later on toolbars to all open windows with extra window option
buttons (rollup, taskmin, move to desk n, transslider).
related topics:
Scrollbar, trackbar (slider)
opacity
thanks
how do i set initial 255 steps for the trackbar32 ?
currently its 0-100.
or do i misunderstand the concept ?
TransDialog2
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("TransDialog2" &TransDialog2)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 361 290 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 msctls_trackbar32 0x54030000 0x0 10 8 88 14 ""
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_HSCROLL
,,int sl(id(3 hDlg))
,,sel GetDlgCtrlID(lParam)
,,,case 3
,,,,out GetTrackbarInfo(sl)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
*
the real idea is to attach later on toolbars to all open windows with extra window option
buttons (rollup, taskmin, move to desk n, transslider).
related topics:
Scrollbar, trackbar (slider)
opacity
thanks