Author Topic: textbox not updating  (Read 1238 times)

Domzinator

  • Member
  • *
  • Posts: 2
textbox not updating
« 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:

Code: [Select]
(setq txt "This is a test")
(defun c:MyCivil3D/Form1#OnInitialize (/)
(dcl-Control-SetText MyCivil3D/Form1/TextBox1 txt)
)

Peter2

  • Sr. Member
  • ****
  • Posts: 479
Re: textbox not updating
« Reply #1 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?
- ....
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10