Recent

Author Topic: TDialog GetData(<recordob>); - what is the Format for ?  (Read 2660 times)

paule32

  • Full Member
  • ***
  • Posts: 235
TDialog GetData(<recordob>); - what is the Format for ?
« on: April 03, 2024, 11:17:01 pm »
Hello,
I have this TDialog.GetData record, to get/set the fields on a dialog form.

Code: Pascal  [Select][+][-]
  1. TParameterData = record
  2.   startPrime: String[250];
  3.   endPrime  : String[250];
  4.   indexPrime: Char;
  5.   forceStart: Char;
  6. end;
  7.  

- I have two PInputLine
- I have two PCheckBoxes
- I have three PButton

- I can read the first input line content
- I can read the second input line content
- I can read the first check-box state true/false (when I use Boolean as type)

- I can *not* read the second check-box state, it will be always False

So, how can I get/set field data from TDialog's ?

paule32

  • Full Member
  • ***
  • Posts: 235
Re: TDialog GetData(<recordob>); - what is the Format for ?
« Reply #1 on: April 07, 2024, 10:47:03 am »
okay.
I fiddle it out.
Either, you (me) sub class the parent class, and react/access the events and values by this derivated class, or you access the field values directly.
The values can be differ:

PStaticText => .Text^ := 'foo';
PInoutLine => .data^ := 'bar';
PCheckBoxes => .value := <true> or <false>;
...

 

TinyPortal © 2005-2018