Loading ...
Sorry, an error occurred while loading the content.

window name, varibles, and handel help (please!!)

Expand Messages
  • Jose Moreno
    ok, this is my problem.... my program needs to open up alot on windows, the name of each window needs to be getton from a dim statment.... so instead of doing
    Message 1 of 2 , May 1, 2002
    • 0 Attachment
      ok, this is my problem....

      my program needs to open up alot on windows, the name of each window needs
      to be getton
      from a dim statment....

      so instead of doing this

      open " " for window_popup as #sticky

      I need to be able to do somthing like this

      open " " for window_popup as #a$(n,r)

      and have the string inside of a$(n,r) be the name of the windows
      handel......
      can this be done?????

      if so, thanks, if not is there away around this?

      thanks

      Jose
    • Ken Lewis, Sr.
      Lets see if I can find the API call to change the window title after the window is opened................................................. oops, that s not
      Message 2 of 2 , May 1, 2002
      • 0 Attachment
        Lets see if I can find the API call to change the window title after the
        window is opened................................................. oops,
        that's not it....................................................... not
        that one either.........................................aha... there it is


        for LB2
        open "user.dll" for dll as #user
        calldll #user, "SetWindowText", _
        h as word, _ 'handle of window
        T$ as ptr, _ 'text for window title
        result as void
        close #user


        for LB3
        open "user32.dll" for dll as #user
        calldll #user, "SetWindowTextA", _
        h as word, _
        T$ as ptr, _
        result as void
        close #user

        HTH
        Ken




        ----- Original Message -----
        From: "Jose Moreno" <jose55@...>
        To: <libertybasic@yahoogroups.com>
        Sent: Wednesday, May 01, 2002 5:41 AM
        Subject: [libertybasic] window name, varibles, and handel help (please!!)



        > if so, thanks, if not is there away around this?
        >
        > thanks
        >
        > Jose
        >
        >
        >
        >
        > To unsubscribe from this group, send an email to:
        > libertybasic-unsubscribe@egroups.com
        >
        >
        >
        > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.