Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-03

Radiogroup sort items

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kjow

Hi all,

is it possible to sort radiogroup's items at runtime? At designtime there is the button on radiogroup -> items -> sort, but at runtime I can't find it. (Of course, without doing it manually with a sorting algorithm)

Thanks,
Kjow

Reply by email

Kjow
to Kjow

2011/3/18 Kjow :

Show quoted text 10 lines
Hi all, is it possible to sort radiogroup's items at runtime? At designtime there is the button on radiogroup -> items -> sort, but at runtime I can't find it. (Of course, without doing it manually with a sorting algorithm) Thanks, Kjow

No way?

Kjow

Reply by email

Mattias Gaertner
to Kjow
Show quoted text 13 lines
2011/3/18 Kjow : > Hi all, > > is it possible to sort radiogroup's items at runtime? At designtime > there is the button on radiogroup -> items -> sort, but at runtime I > can't find it. (Of course, without doing it manually with a sorting > algorithm) > > Thanks, > Kjow > No way?

No. You have to do it manually.

Mattias

Reply by email

hector fiandor
to Kjow: is it possible to sort radiogroup's items at runtime? At designtime there is the button…

hello:

i have a medical app. with TDbf were it is used a lot of RadioGroups and CheckBox. When call Insert for a new patient, all this RadioGroups and CheckBox appears "Cheched" as default, but it is preferred to appear as "unchecked" and lets the doctors to check or not when filling the form.

if this is possible, i will appreciate any help to do it.

Thanks in advance,

Ing. H?ctor F. Fiandor Rosario

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/

Reply by email

zeljko
to hector fiandor
hector fiandor wrote 8 lines
hello: i have a medical app. with TDbf were it is used a lot of RadioGroups and CheckBox. When call Insert for a new patient, all this RadioGroups and CheckBox appears "Cheched" as default, but it is preferred to appear as "unchecked" and lets the doctors to check or not when filling the form. if this is possible, i will appreciate any help to do it.

How can anybody help you without code ? If you think it's lazarus problem then please open an issue about it and attach project example which triggers your problem.

zeljko

Show quoted text 21 lines
Thanks in advance, Ing. H?ctor F. Fiandor Rosario -- Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Howard Page-Clark
to hector fiandor: hello: i have a medical app. with TDbf were it is used a lot of RadioGroups and CheckBox.…
hector fiandor wrote 8 lines
hello: i have a medical app. with TDbf were it is used a lot of RadioGroups and CheckBox. When call Insert for a new patient, all this RadioGroups and CheckBox appears "Cheched" as default, but it is preferred to appear as "unchecked" and lets the doctors to check or not when filling the form. if this is possible, i will appreciate any help to do it.

Have you have set ItemIndex to your preferred value in the Object Inspector (or in initialization code)?
Do you still find display defaults differ from what you have set?

H

Reply by email

hector fiandor
to Howard Page-Clark

Dear Mr. Howard and Zeljko:

thanks for your kindly answer.

Really, my probles is with the DBCheckBox.

I have a form with a PageControl with 9 tabSheets for the control of patients.
in many of this tabSheets i have used DBCheckBox

When i have a new patient, i need to "insert" a new set of TabSheets. I press the "+" in the navigator bar, and all the CheckBoxes linked to the fields of the new record appear as "checked". The operator who is intoruducing the data (generally an especialist) need to "unckeck" the CheckBoxes that no apply to the new record (that are the more quantity compared with the CheckBoxes that apply) before "post".

In the ObjectInspector i have setted the "Valuecheched" as "true" and the "ValueUnckecked" as "false", and for the "old r prior" records it pretty works.

Really, i dont know if this if sufficient. With the DBRadioGrour there are no problesm, because the defalut can be setted by the ItemIndex=-1.

thanks again and awainting yours comments

Ing. H?ctor F. Fiandor Rosario

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/

Reply by email