Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialogue Icon in .exe
#1
The icon in the following dialogue displays in tact when this QM item is running.

Function tempf10
Code:
Select All      Help
str sicof.expandpath("%IconFol%\SpunalXPw.ico" 1)

str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 265 95 "Spunal-XP"
;3 Button 0x54032000 0x0 8 30 74 14 "    Data Acquisition"
;4 Button 0x54032000 0x0 97 30 75 14 "    Calibration"
;5 Button 0x54032000 0x0 185 29 74 14 "    γ-Analysis"
;6 Button 0x54032000 0x0 8 55 75 14 "    Reports"
;7 Button 0x54032000 0x0 97 55 74 14 "    Housekeeping"
;8 Edit 0x54030881 0x200 32 8 207 13 ""
;9 Edit 0x54030880 0x204 7 76 253 13 ""
;1 Button 0x54030001 0x4 185 55 75 14 "     Exit"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""


str controls = "8 9"
str e8 e9
if(!ShowDialog(dd &sub.DlgProc &controls 0 0 0 0 0 0 0 sicof)) ret


However, the dialogue icon in string variable sicof disappears, if running an .exe file, using this QM item. Any advice is mostly welcome.
#2
If expandpath does not expand path, somehow the environment variable is unavailable in exe. I guess you use SetEnvVar somewhere. Call it in exe too.
#3
Many thanks for your advice. I will make necessary corrections to my code. Best regards.


Forum Jump:


Users browsing this thread: 1 Guest(s)