Author Topic: Dynamic expending dialog  (Read 8824 times)

erezpaz

  • Jr. Member
  • **
  • Posts: 70
Dynamic expending dialog
« on: June 22, 2017, 06:26:33 am »
Hi

I want to create dynamic messages using the dynamic dialog. Is there a way to make it grow and expand depending of the amount of test going iside it?
I don't want to cut the text if there are too much words in the message.

Thanks

JTaylor

  • Pundit
  • *****
  • Posts: 1914
    • Data & Stuff Inc.
Re: Dynamic expending dialog
« Reply #1 on: June 22, 2017, 06:46:12 am »
Sure.   DialogControlSet() request # 17 may be of interest regarding Control size and perhaps WinPlace() for the overall Dialog.

Jim

td

  • Tech Support
  • *****
  • Posts: 4293
    • WinBatch
Re: Dynamic expending dialog
« Reply #2 on: June 22, 2017, 06:53:01 am »
The other and perhaps simpler option is to use a scrollable control like a "MultiLinebox" control to contain the text.  However, resizing the dialog and the control displaying the text probably gives a better user experience unless it gets too big.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade