Initialize my control

Started by Stephane Fonteyne, December 08, 2009, 06:40:04 PM

Previous topic - Next topic

Stephane Fonteyne

Dear developers,

I don't find the WM_INITIALIZE message in FF3. How can I setup my trackbars to the defaults values when the program is loaded in memory? What FF3 function do I have used for setup my trackbars to move down all?

Thanks
Stephane
Stephane Fonteyne
Ba. Elektronica - ICT
GSM : +32-xxxxxxxxxx
PowerBasic Developer & Hardware Support

John Montenigro

I've been searching my SDK and other WinAPI resources, and I haven't found such a message. Are you sure it's WM_INITIALIZE and not WM_INITDIALOG???


Stephane Fonteyne

Stephane Fonteyne
Ba. Elektronica - ICT
GSM : +32-xxxxxxxxxx
PowerBasic Developer & Hardware Support

John Montenigro

Would it make sense to put your setup in the WM_CREATE of the form?

Or, in the special module FF_AppStart?

Paul Squires

Use WM_CREATE for the Form that the controls are on. WM_INITDIALOG is used when you emply the dialog functionality of Windows (which is what PB's DDT uses). FF3 uses the CreateWindowEx approach so it uses WM_CREATE.

The initial TrackBar properties can be set using FireFly's PropertyList rather than having to do it via code.
Paul Squires
PlanetSquires Software