mrhx software Switch to Russian
Welcome, Guest
  • Now is Wednesday, 2024-11-27, 08:10
  • Use RSS to get the latest news.
  • Do you want to register or login?
     
    Forum ( NOT DONE )
    • Page 1 of 1
    • 1
    Send data to form controls
    BasicScienceDate: Saturday, 2008-04-26, 03:05 | Message # 1
    Group: Users
    Messages: 3
    Status: Offline
    Visg nicely creates FreeBasic code to generate Windows and Controls. It is not clear to me, however, how to send data to those controls from within a FreeBasic program. For example, how to send a string at run time from a FreeBasic program to a ListBox on the Window.

    Thanks,

    BasicScience

     
    mrhxDate: Monday, 2008-04-28, 20:52 | Message # 2
    Admin
    Group: Administrators
    Messages: 10
    Status: Offline
    For FreeBASIC 0.18:
    Code

    SendDlgItemMessage hwnd, IDC_LIST1, LB_ADDSTRING, 0, cast(lparam, strptr("123"))


    hwnd = handle of the parent window,
    IDC_LIST1 = integer identifier of the listbox,
    "123" = string which will be added into the list.


    mrhx.ucoz.com
     
    • Page 1 of 1
    • 1
    Search:
  • Do you like new design?
    [ Results · Polls archive ]
    Total of answers: 116

    Friends
    · ProTools
    · Free file hosting

     © 2007-2008 Alexander G. Karpov a.k.a. mrhx