[Lazarus] Radiogroup sort items

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] Radiogroup sort items

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

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Radiogroup sort items

Kjow
2011/3/18 Kjow <[hidden email]>:

> 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

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Radiogroup sort items

Mattias Gaertner
On Fri, 25 Mar 2011 10:04:53 +0100
Kjow <[hidden email]> wrote:

> 2011/3/18 Kjow <[hidden email]>:
> > 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

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Radiogroup sort items

Kjow
2011/3/25 Mattias Gaertner <[hidden email]>:
> No. You have to do it manually.

Ok, thanks.

Kjow

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

[Lazarus] trouble with Radiogroup

Héctor F. Fiandor Rosario
In reply to this post by Kjow
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
[hidden email]


--

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
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] trouble with Radiogroup

zeljko
On Wednesday 06 of April 2011 13:08:24 hector fiandor wrote:
> 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

>
> Thanks in advance,
>
> Ing. Héctor F. Fiandor Rosario
> [hidden email]
>
>
> --
>
> 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
> [hidden email]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] trouble with Radiogroup

Howard Page-Clark
In reply to this post by Héctor F. Fiandor Rosario
On 06/4/11 12:08, hector fiandor wrote:
> 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

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] trouble with Radiogroup

Héctor F. Fiandor Rosario
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
[hidden email]


--

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
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus