Author Topic: Modal Dialog Form with click button method  (Read 4685 times)

0 Members and 1 Guest are viewing this topic.

cadplayer

  • Bull Frog
  • Posts: 390
  • Autocad Civil3d, OpenDCL.Runtime, LISP, .NET (C#)
Modal Dialog Form with click button method
« on: November 23, 2012, 07:07:26 AM »
Hi!

I have a "Modal dialog form" an installed a click button. If I push the button my code ask for example "How many copy of layouts wish you". Than I must type in a number, but I canīt do this before I close the form. Is there any solutions, that I can type a number in Acad command rad and have open my dialog form at the same time?

Regards Dirk
« Last Edit: November 23, 2012, 08:56:48 AM by cadplayer »

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Modal Dialog Form with click button method
« Reply #1 on: November 23, 2012, 04:32:26 PM »

Not with a modal form. It must be hidden or closed before you can continue.

Have you considered adding a textbox to the form to use for your user input ??

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

cadplayer

  • Bull Frog
  • Posts: 390
  • Autocad Civil3d, OpenDCL.Runtime, LISP, .NET (C#)
Re: Modal Dialog Form with click button method
« Reply #2 on: November 26, 2012, 07:11:34 AM »
Thanks that was a way for the solution.

Another question is if itīs possible a textbox in the form can control (read) value from a variable. I mean if a variable have a textstring "hello world" it should read in texbox an display them as Hello world

[edit]

dcl_Control_SetText ... I was looking for
« Last Edit: November 27, 2012, 02:39:43 AM by cadplayer »