Slide Image

Started by dsm_dude · 2015-08-27 18:34 UTC · 7 replies · SMF topic #2303

I've gone through the tutorials and started venturing off on my own.

I have a slide image I want to use, but for the life of me I cant get the slide image to show when then dcl comes up.

I placed a slide view, dbl clicked it and then when to slide view > SlideImage > load
which gives me this:
(dcl-SlideView-Load HelloWorld/Form1/SlideView1 Filename [as String] {ImageName [as String]})

My slide file is called test.sld

I keep getting an OpenDCL Runtime Error:
Error: NIL value not allowed
Function: dcl-slidview-load
Argument: 0
Hi, argument 0 is always the control entity.
The used variable is nil.
Do you have a type mismatch?
Is the form already active?
Do you use the OnInitialize event?
Fred
This is what I have so far.

(command "OPENDCL")
(defun c:Hello ()
(dcl_Project_Load "HelloWorld" T)
(dcl_Form_Show HelloWorld_Form1)
(princ)
)

(dcl-SlideView-Load HelloWorld/Form1/SlideView1 Filename [as String] {ImageName [as String]})
)
You should call the dcl-SlideView-Load function from an event handler such as your form's OnInitialize event or a button's OnClicked event.
Hi, what Owen and I mean is this:

Check the Initialize event of the form in the events tab in OpenDCL Studio.
And then type code like this:


(defun c:test (/ c:HelloWorld/Form1/OnInitialize)
  (command "OPENDCL")
  (dcl_Project_Load "HelloWorld")

  (defun c:HelloWorld/Form1/OnInitialize()
    (dcl-SlideView-Load HelloWorld/Form1/SlideView1 "c:/temp/slide.sld")
  ); c:HelloWorld/Form1/OnInitialize

  (dcl_Form_Show HelloWorld/Form1)
); test


Please, check the tutorial first.
Fred
Its been a while sense I've had time to mess with this stuff.

I've decided to give it one last go. No where in the tutorials is there any information on Slide images.

Am I missing something?
author=dsm_dude link=topic=2303.msg11941#msg11941 date=1467917703 wrote:
Its been a while sense I've had time to mess with this stuff.

I've decided to give it one last go. No where in the tutorials is there any information on Slide images.

Am I missing something?


What information do you need on Slide Image?
Regards
author=dsm_dude link=topic=2303.msg11941#msg11941 date=1467917703 wrote:
I've decided to give it one last go. No where in the tutorials is there any information on Slide images.
Am I missing something?


I think Fred was referring to {2} to learn about OpenDCL forms and event handling in general, not specifically about working with slides. Once you understand how OpenDCL events work, the reference documentation about the slide functions and answers here will make more sense to you.