Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. How get handle of Qwidget Child with vb.net ?
Forum Updated to NodeBB v4.3 + New Features

How get handle of Qwidget Child with vb.net ?

Scheduled Pinned Locked Moved Language Bindings
9 Posts 2 Posters 6.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    javadi_31456
    wrote on 22 Aug 2012, 05:32 last edited by
    #1

    hi
    I really need help

    i can't read text of Qwidget class

    and can't sendmessage to press button on this class

    but in other application no problem .

    please help me .
    tnx

    my sample vb code to get text of rich textbox of word pad in windows :

    @
    Dim hwnd As Integer = FindWindow(Nothing, "Document - WordPad")
    Dim hwndchild As Integer = FindWindowEx(hwnd, 0, "RICHEDIT50W", vbNullString)
    Dim TextLen As Integer = SendMessage(hwndchild, WM_GETTEXTLENGTH, 0, 0) + 200
    Dim Buffer As String = New String(" "c, TextLen)
    SendMessageByString(hwndchild, WM_GETTEXT, TextLen, Buffer)
    @

    ghorany.com/quran.htm:mention in the Book Mary when she withdrew from her people to an eastern place,"How can I have a son"she said"when no man has...

    1 Reply Last reply
    0
    • J Offline
      J Offline
      javadi_31456
      wrote on 22 Aug 2012, 05:35 last edited by
      #2

      i can get handle of Qwidget Object
      but i thinking I cant access to child of parent.

      ghorany.com/quran.htm:mention in the Book Mary when she withdrew from her people to an eastern place,"How can I have a son"she said"when no man has...

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on 22 Aug 2012, 09:08 last edited by
        #3

        You will not be able to do this.
        Qt does not use windows controls for their widgets, they use custom implementations and don't use real windows for all widgets. This way needs much less windows resources.

        What can be done is using the accessibility support.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • J Offline
          J Offline
          javadi_31456
          wrote on 22 Aug 2012, 09:31 last edited by
          #4

          Thanks for the answer
          What is your proposed solution?
          Tell us more
          My information is low
          can I access to them handle and command to this controls in .NET And Vb?

          ghorany.com/quran.htm:mention in the Book Mary when she withdrew from her people to an eastern place,"How can I have a son"she said"when no man has...

          1 Reply Last reply
          0
          • G Offline
            G Offline
            giesbert
            wrote on 22 Aug 2012, 10:42 last edited by
            #5

            The only option I know is use MS Accessibility support. How to use that, I don't know, ask google.
            Why do you want to access Qt widgets from VB.net?

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply
            0
            • J Offline
              J Offline
              javadi_31456
              wrote on 22 Aug 2012, 11:04 last edited by
              #6

              use MS Accessibility support??
              what is this?
              please Tell us more :)
              example ,sample code ,...
              i work on a project that
              when command receive to my application ,similar Robot run and Doing This command .

              ghorany.com/quran.htm:mention in the Book Mary when she withdrew from her people to an eastern place,"How can I have a son"she said"when no man has...

              1 Reply Last reply
              0
              • G Offline
                G Offline
                giesbert
                wrote on 22 Aug 2012, 11:32 last edited by
                #7

                Do you read what others write?
                I said, I only know it works, ask google.

                But you will not send messages to Qt widget, that does not work with standard windows messages.

                Nokia Certified Qt Specialist.
                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  javadi_31456
                  wrote on 22 Aug 2012, 11:54 last edited by
                  #8

                  i very searched but not found related this subject.... :(

                  ghorany.com/quran.htm:mention in the Book Mary when she withdrew from her people to an eastern place,"How can I have a son"she said"when no man has...

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giesbert
                    wrote on 22 Aug 2012, 12:32 last edited by
                    #9

                    Hi,

                    ther very first HIT from google:

                    http://en.wikipedia.org/wiki/Microsoft_Active_Accessibility

                    that describes what MS Accessibility is.
                    I don't know what you want to do.
                    I don't know why you want to do that.

                    You can't send windows messages to Qt widgets. You wanted to access the widgets, that is possible via MSAA, the only way I know on windows (if you do not have Qt for that).

                    Nokia Certified Qt Specialist.
                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                    1 Reply Last reply
                    0

                    9/9

                    22 Aug 2012, 12:32

                    • Login

                    • Login or register to search.
                    9 out of 9
                    • First post
                      9/9
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved