Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dlgupdate issue

Status
Not open for further replies.

TestBacha

Technical User
May 21, 2005
16
GB
Hi to All!!!

I'm trying to use the dlgupdate cmd, but at compiling the script says that it's an invalid string and an invalid token.
I tried with this

(the proc with the DlgBox)
blah, blah
bitmap 1 5 5 280 70 "PROG.BMP"

other procs
blah, blah...

then the proc with the BMP to refresh
blah, blah
bitmap 1 5 5 280 70 "OKPROG.BMP"
dlgupdate 0 1
endproc

But it doesn't work, Do you have an idea about where I'm wrong??

Edu Melendez
 
If you want to replace the bitmap within a dialog, the best way to do so is to use a string variable in the declaration of the dialog, then update that string variable and issue a dlgupdate command to repaint the dialog. Here is an example that uses a couple Windows bitmaps I copied to my ASPECT directory:

proc main
s0 = "rivets.bmp"
; Display a dialog box and a bitmap. You must have a
; bitmap named "cars.bmp" in your script directory.
dialogbox 0 0 0 100 50 11 "Bitmap Example"
bitmap 1 5 5 90 40 s0
enddialog
pause 5 ; Pause to show off dialog.
s0 = "thatch.bmp"
dlgupdate 0 1
pause 5
dlgdestroy 0 CANCEL ; Destroy the dialog box.
endproc

 

Thanks Knob!!

It's working now.
I put the procs inside the dialogbox instead of call the dlgupdate after them. (doing it in this way doesn't work).

Rgds
EM

Edu Melendez
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top