11-09-2007, 01:34 AM
isit possible to encrypt a dialog
ty
ty
How to encrypt a dialog
|
11-09-2007, 01:34 AM
isit possible to encrypt a dialog
ty
11-09-2007, 02:13 AM
If you encrypt a macro that contains a dialog definition, the dialog will not work, because dialog functions cannot decrypt it to take the dialog definition. You can either place the dialog definition in a nonencrypted macro, or store the dialog definition in a variable and use flag 2 with ShowDialog.
Example: str dd= ;BEGIN DIALOG ;0 "" 0x10C80A44 0x100 0 0 109 50 "Form" ;3 Edit 0x54030080 0x200 6 8 96 14 "" ;1 Button 0x54030001 0x4 4 32 48 14 "OK" ;2 Button 0x54030000 0x4 56 32 48 14 "Cancel" ;END DIALOG ;DIALOG EDITOR: "" 0x2010507 "*" "" str controls = "3" str e3 if(!ShowDialog(dd 0 &controls 0 2)) ret out e3 So the Answer is yes, as long as you do it the right way, but you may have some restrictions.
Taking on Quick Macros one day at a time
11-15-2007, 10:49 PM
iv bin trying this way and it worked for one of my dialogues but is realy tricky to do on my second one
11-15-2007, 10:57 PM
if(!ShowDialog(dd &Dialog2 &controls)) ret
change where it says Dialog2 to the name of your dialog function |
« Next Oldest | Next Newest »
|