Regarding:  136: # 581 Add item data capability to combo box

             (entered by Mark Miesfeld on 2014-01-30 -> 2014-01-30)
***TODO: [doc+test]

I have always been flakey at providing test cases, but I see what Mark has
done here.  It echoes what he did with the ooDialog list class.
He has added two methods (setItemData and getItemData) which allow you to
associate an object with each item in the list of a comboBox control.
Here is a small test script demonstrating it by associating a 'valueBox' (a
made up demonstration object) with each item and saying it's value when the
item is selected.
Maybe it will help someone less flakey to provide a test case and add the
methods to the documentation.

dlg = .comboitemdatadlg~new
dlg~execute
exit

::requires "ooDialog.cls"

::CLASS comboitemdatadlg subclass userdialog
::method init
  self~init:super /*(a.)*/      /* we call the Super Class (userdialog)
 */
  width=300 ; height=200        /* Set the Width and height of dialog
 */
  success=self~createCenter(width,height,'Combo Item Data Dialog')

  if \success then do
    self~initCode=1
    return
  end

::method defineDialog


 
self~createComboBox(100,10,10,self~SizeX-20,self~sizeY-40,'options','combinations')

 self~createPushButton(IDCANCEL,self~sizeX-120,self~sizeY-20,50,15,,'Cancel')

::method initDialog
  cb = self~newComboBox(100)
  if \cb~isNil
  then do
     idx = cb~add('First')
     cb~setItemData(idx,.valueBox~new('One'))
     idx = cb~add('Second')
     cb~setItemData(idx,.valueBox~new('Two'))
     idx = cb~add('Third')
     cb~setItemData(idx,.valueBox~new('Three'))
  end /* DO */

  self~connectComboBoxEvent(100, "SELCHANGE", "onSelChange")

::method onSelChange                                               unguarded
use arg info, hwnd, id, notifyCode, CB
  idx = CB~selectedIndex
  say idx': ['cb~selected'] ['cb~getItemData(idx)']'
RETURN 0



::CLASS valueBox                                                   private
::method init
  expose value
  use arg value
::method string
  expose value
  RETURN  'a valueBox containing "'value'"'

On Thu, 2 Feb 2023 at 16:23, Rony G. Flatscher <[email protected]>
wrote:

> CHANGES.txt for 5.0.0 has a couple of bug-fix and rfe-items that are not
> completed in all aspects in full according to the tracker information.
>
>    1. It seems that some information is incomplete: please, can the
>    authors correct/complete any wrong/incomplete tracker information as soon
>    as possible? (E.g. missing 'code' seems to be wrong.)
>
>    2. Open test or documentation: could the authors add/complete the
>    missing items as soon as possible?
>
>    3. Which of the following TODO items cannot be completed? If so, we
>    need to adjust the tracker information accordingly!
>    E.g. there are TODO items in the RFE section for/by Mark Miesfield who
>    has - very unfortunate! - long passed away. What shall we do with them?
>
>    4. Are there TODO doc or TODO test items that you think could be done
>    by RexxLA members or by lurkers of this list? If so, can you please denote
>    exactly which (bug/rfe number, whether test and/or doc is regarded to be
>    doable)?
>
> Please give feedback ASAP, the community lives from communication. We need
> to resolve these open TODO items ASAP!
>
> Here the filtered list from ooRexx 5.0.0 "doc/CHANGES.txt":
>
>             Fixes in Open Object Rexx 5.0.0
>
> The following is a list of fixes, enhancements, and other relevant changes
> to ooRexx since the 4.2.0 release.  The numbers for each item can be used to
> look up the item in the appropriate tracker in the ooRexx project on
> SourceForge, i.e. the Bugs tracker, the Feature Requests tracker, etc.
>
>
>   Bugs
>   ----
>   https://sourceforge.net/p/oorexx/bugs/nnnn
>
>    5: # 1842 linein performance issue
>              (entered by Erich on 2022-09-11 -> 25 minutes ago) ***TODO: 
> [code]
>
>    6: # 1841 charin and record I/O linein/arrayin performance
>              (entered by Erich on 2022-09-11 -> 2022-09-11) ***TODO: [code]
>
>    7: # 1840 lineout for very long lines is broken
>              (entered by Erich on 2022-09-07 -> 2022-09-18) ***TODO: [tests]
>
>    8: # 1838 Crash while attempting to resolve a routine in a library package.
>              (entered by Rick McGuire on 2022-08-11 -> 2022-08-11) ***TODO: 
> [tests]
>
>    9: # 1837 circular requires: some public classes are not visible
>              (entered by jfaucher on 2022-08-09 -> 25 minutes ago) ***TODO: 
> [doc+test]
>
>   15: # 1827 13 Sample files missing shebang
>              (entered by Per Olov Jonsson on 2022-07-05 -> 2022-07-22) 
> ***TODO: [code+test]
>
>   16: # 1825 CALL with literal name should bypass internal labels
>              (entered by Matthé van der Lee on 2021-10-02 -> 2022-06-25) 
> ***TODO: [tests]
>
>   40: # 1786 RexxPullFromQueue() returning invalid data for a null queue entry
>              (entered by Daniel Erdos on 2021-11-05 -> 2021-11-27) ***TODO: 
> [tests]
>
>   45: # 1774 Building and Testing on Windows 8
>              (entered by Per Olov Jonsson on 2021-07-13 -> 2021-12-30) 
> ***TODO: [tests]
>
>   50: # 1768 ncurses.cls doesn't build on some platforms
>              (entered by Erich on 2021-05-23 -> 2021-06-02) ***TODO: [tests]
>
>   53: # 1763 StreamSocket issues
>              (entered by Ruurd Idenburg on 2021-05-11 -> 2022-06-27) ***TODO: 
> [code+doc+test]
>
>   54: # 1762 pushing very large data hangs RexxQueue
>              (entered by Erich on 2021-05-04 -> 2021-07-07) ***TODO: 
> [code+test]
>
>   65: # 1742 Stream RECLENGTH 1 issues
>              (entered by Erich on 2021-02-05 -> 2021-02-05) ***TODO: [tests]
>
>   68: # 1734 Hang with multiple threads
>              (entered by Erich on 2020-12-19 -> 2022-06-19) ***TODO: [tests]
>
>  107: # 1656 Lineout fails (at 2nd call) when path case not matched
>              (entered by AvdP on 2019-10-09 -> 2021-01-31) ***TODO: 
> [code+test]
>
>  126: # 1625 NewRoutine() and LoadPackageFromData() raise error 13.1 on 
> tokenized Rexx code
>              (entered by Rony G. Flatscher on 2019-04-06 -> 2019-07-16) 
> ***TODO: [doc+test]
>
>  127: # 1624 .Routine~newFile(rexxc-program) raises error 13.1
>              (entered by Rony G. Flatscher on 2019-04-06 -> 2019-04-17) 
> ***TODO: [doc+test]
>
>  156: # 1582 sockgethostid() now gives 0.0.0.0
>              (entered by AvdP on 2018-12-10 -> 2018-12-10) ***TODO: [doc+test]
>
>  164: # 1570 Socket issues
>              (entered by Erich on 2018-11-05 -> 2018-11-06) ***TODO: [tests]
>
>  239: # 1447 Clean builds without compiler warnings
>              (entered by Erich on 2017-05-09 -> 2021-03-27) ***TODO: [code]
>
>  254: # 1420 Interpreter ending without message
>              (entered by Erich on 2017-01-14 -> 2018-12-14) ***TODO: [tests]
>
>  285: # 1375 Fixes for compiling 4.2.0. with clang
>              (entered by Jörg Plate on 2016-05-08 -> 2016-08-07) ***TODO: 
> [tests]
>
>  326: # 1306 UNINIT not getting called for copied objects.
>              (entered by Rick McGuire on 2014-10-15 -> 2014-10-15) ***TODO: 
> [tests]
>
>
>   Requests For Enhancement
>   ------------------------
>   https://sourceforge.net/p/oorexx/feature-requests/nnn
>
>    3: #  803 extensions to complex.cls
>              (entered by Walter on 2022-06-02 -> 2022-06-03) ***TODO: [tests]
>
>    4: #  802 Allow programmer to supply message override
>              (entered by Rony G. Flatscher on 2022-05-15 -> 33 minutes ago) 
> ***TODO: [doc]
>
>   27: #  754 'rexxc' binary (compiled/tokenized) data: please encode as plain 
> text (7-Bit-ASCII) to allow it to be read as a string (e.g. from Java 
> java.io.Reader)
>              (entered by Rony G. Flatscher on 2019-04-07 -> 2020-03-08) 
> ***TODO: [tests]
>
>  123: #  603 Add a GUARD ON/OFF capability to the MethodContext APIs.
>              (entered by Rick McGuire on 2014-07-04 -> 2018-12-07) ***TODO: 
> [tests]
>
>  136: #  581 Add item data capability to combo box
>              (entered by Mark Miesfeld on 2014-01-30 -> 2014-01-30) ***TODO: 
> [doc+test]
>
>  139: #  578 Accept string keywords instead of requiring numeric value in 
> image related methods
>              (entered by Mark Miesfeld on 2013-12-28 -> 2013-12-28) ***TODO: 
> [doc]
>
>  141: #  576 Add support for the 'split button'
>              (entered by Mark Miesfeld on 2013-12-25 -> 2013-12-25) ***TODO: 
> [code+doc+test]
>
>  147: #  569 Allow direct creation of dialog control windows.
>              (entered by Mark Miesfeld on 2013-12-21 -> 2013-12-21) ***TODO: 
> [code+doc+test]
>
>  150: #  552 Add the ToolBar control to ooDialog
>              (entered by Mark Miesfeld on 2013-09-12 -> 2013-09-21) ***TODO: 
> [code+doc+test]
>
>  152: #  550 Add the ReBar dialog control to ooDialog
>              (entered by Mark Miesfeld on 2013-08-30 -> 2013-09-21) ***TODO: 
> [doc+test]
>
>  154: #  544 Allow the registration of user defined SQL functions and 
> aggregates
>              (entered by Mark Miesfeld on 2013-05-08 -> 2013-05-19) ***TODO: 
> [doc]
>
>  155: #  543 Add access to sqlite3_load_extension in ooSQLite
>              (entered by Mark Miesfeld on 2013-04-28 -> 2013-05-19) ***TODO: 
> [doc]
>
>  157: #  541 Allow registration of user defined collations in ooSQLite
>              (entered by Staffan Tylen on 2013-04-26 -> 2013-05-19) ***TODO: 
> [doc]
>
>  165: #  353 Embedded Database
>              (entered by Anonymous on 2009-05-01 -> 2012-12-21) ***TODO: [doc]
>
>
>   Documentation Bugs
>   ------------------
>   https://sourceforge.net/p/oorexx/documentation/nnn
>
> ... no TODO items ...
>
>   Patches
>   -------
>   https://sourceforge.net/p/oorexx/patches/nnn
>
> ... no TODO items ...
>
> ---rony
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to