Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog function and display variable problem
#1
Hello, Gintaras~

Now I'm confusing dialog... I understand normal dialog to display variable but I don't in Smart Dialog

for example, I get variables from function() and display variable like

Elapsed time HH : MM : SS

bla bla bla...

Code:
Copy      Help
function# A B C
str dd =
Begin Dialog
0....
3 TEXT ....
4 TEXT ....
....
End Dialog

str controls = "3 4 ..."
str A B C
A =
B =
C =
if(!Show.....

I understand this but in Smart Dialog
case WM_INITDIALOG
??????

I don't understand...

again, Thanks Gintaras in advance...
#2
Function Dialog162
Code:
Copy      Help
\Dialog_Editor
function# A B C

str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;3 Edit 0x54030080 0x200 8 8 96 12 ""
;4 Edit 0x54030080 0x200 8 28 96 13 ""
;5 Edit 0x54030080 0x200 8 48 96 12 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040202 "*" "" "" ""

str controls = "3 4 5"
str e3 e4 e5
e3=A; e4=B; e5=C
if(!ShowDialog(dd 0 &controls)) ret
example 2
Function Dialog163
Code:
Copy      Help
\Dialog_Editor
function# A B C

str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;3 Button 0x54032000 0x0 8 8 48 14 "Click me"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040202 "*" "" "" ""

if(!ShowDialog(dd &sub.DlgProc 0)) ret


#sub DlgProc v
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,mes F"A={A}[]B={B}[]C={C}"
,
,case IDOK
,case IDCANCEL
ret 1
#3
Very Very Thank you Gintaras~~!!!


Forum Jump:


Users browsing this thread: 1 Guest(s)