Author Topic: dcl_PictureBox_LoadPictureFile not OnInitialize?  (Read 3477 times)

0 Members and 1 Guest are viewing this topic.

Amsterdammed

  • Guest
dcl_PictureBox_LoadPictureFile not OnInitialize?
« on: October 24, 2007, 10:44:58 AM »
Hello everybody,

i try to open out of an dockable form a modal form with a bigger preview of a wmf. The form is showing but i can't get the picture loaded on initialize. If i add a button to the form that loads the picture, it works fine. But to make it nice, i don't want to have the user to click that button to get the preview.

Thanks in advance

Bernd


velasquez

  • Newt
  • Posts: 195
Re: dcl_PictureBox_LoadPictureFile not OnInitialize?
« Reply #1 on: October 31, 2008, 12:25:36 PM »
Hello 
Use dcl_PictureBox_LoadPictureFile inside of the event of OnPaint of PictureBox 
 
Example (defun c:TubosBG_OnPaint (nHasFocus /)   
                (dcl_PictureBox_LoadPictureFile...)
            )
This should work.

Velasquez