Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog BMP Images
#1
In help file it says

Static bitmap bmp, jpg or gif file path. Can contain exe resource id. Displays the picture.

sb3="$my qm$\file.gif"
":10 $personal$\file.bmp"

Now im my dialog it is static bitmap 10.
so i changed info to

sb10="$my qm$\windows_xp_logo.gif"

than in styles for that bitmap in dialog editor i got
Function Dialog2
Trigger F4     Help - how to add the trigger to the macro
Code:
Copy      Help
,case STN_CLICKED<<16|10
,":10 $my qm$\windows_xp_logo.bmp"


why will it no show up when i open dialog?
#2
do u have image in the path u specified?
#3
yes i do but wont show up in dialog when i run it
#4
please post whole code
#5
Function Dialog2
Trigger F4     Help - how to add the trigger to the macro
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str llg=
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 196 194 "Dialog2"
;10 Static 0x5400000E 0x0 16 10 16 16 ""
;END DIALOG
;DIALOG EDITOR: "" 0x203000A "" "" ""
str sb10="$my qm$\image8.gif"



if(!ShowDialog(llg &Dialog2 0 0 0 0 0 0 0 0)) ret
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case STN_CLICKED<<16|10
,":10 $personal$\image8.gif"
,case IDOK
,case IDCANCEL
ret 1
#6
for static bitmap controls, dialog editor inserts code like

str controls="10"
str sb10
ShowDialog x x &controls

why you don't use it?
#7
i got it work with that thanks

i dont know for some reason i was deleting the show controls :S


Forum Jump:


Users browsing this thread: 1 Guest(s)