WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor version 6.X
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Change Title of Dialog in Call Back Procedure


Question:

I was just playing around with WB Dialogs and Callbacks.

1. My dialog is called "A", and initially

ACaption = 'Play Flash Movie'

Is ACaption a variable or a constant, as what I'd like to do is once a new flash file is selected and played, change ACaption to

StrCat("Now Playing ",cFlash)

2. I know I can re-initialize/re-size the control, but I would like to proportionally re-size the Dialog [OH for dialog.refresh()]

Is any of this possible without resorting to two dialog/callback routines in the same script?

Answer:

How to change the title of a dialog in a dialog call back prodecure
;D_Handle is the handle that is the first parameter of the DialogCallBackProcedure

title="Desired Dialog Title"

dll=Strcat(DirWindows(1),"user32.dll")

DllCall(dll,long:"SetWindowTextA",long:D_Handle,lpstr:title)

Article ID:   W15904
File Created: 2004:03:30:15:41:40
Last Updated: 2004:03:30:15:41:40