Menu

#79 CLASS HRadioGroup

v1.0_(example)
open
nobody
None
1
2024-02-21
2024-02-18
sygecom
No

Please,
Add METHOD getvaue() in HRadioGroup

METHOD GetValue() INLINE ::nValue

Discussion

  • Alexander S.Kresin

    There is :Value() method in HRadioGroup() for this purpose.

    Regards, Alexander

     
  • sygecom

    sygecom - 2024-02-21

    There is no
    \source\winapi\hradio.prg
    CLASS HRadioGroup INHERIT HObject

    CLASS VAR oGroupCurrent
    DATA aButtons
    DATA nValue INIT 1
    DATA bSetGet
    DATA oHGroup

    METHOD New( vari, bSetGet )
    METHOD NewRg( oWndParent, nId, nStyle, vari, bSetGet, nLeft, nTop, nWidth, nHeight, ;
    cCaption, oFont, bInit, bSize, tcolor, bColor )
    METHOD EndGroup( nSelected )
    METHOD Value( nValue ) SETGET
    METHOD Refresh() INLINE iif( ::bSetGet != Nil, ::Value := Eval(::bSetGet ), .T. )

    ENDCLASS

     
  • Alexander S.Kresin

    Sorry, I didn't understand. What exactly is absent?
    The ::Value() method is there, It should be used to get the value of radiogroup, it returns the ::nValue

     
  • sygecom

    sygecom - 2024-02-21

    Now I get it, I still have an old version of Hwgui that previously had GETVALUE().
    But with your tip I understood and I will solve it here.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.