OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Domzinator on October 20, 2023, 02:10:20 PM

Title: textbox not updating
Post by: Domzinator on October 20, 2023, 02:10:20 PM
Hi Guys i am trying to update a textbox when the form iInitializes but this does not seem to work i cant understand why. Here is my code:


(setq txt "This is a test")
(defun c:MyCivil3D/Form1#OnInitialize (/)
(dcl-Control-SetText MyCivil3D/Form1/TextBox1 txt)
)
Title: Re: textbox not updating
Post by: Peter2 on October 30, 2023, 01:30:50 PM
Have you checked all other stuff?
- the dialogue is loaded and active?
- other controls are working fine?
- can you modify the textbox with another command after initializing?
- the textbox-control has all needed events activated?
- ....