Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wx-c control name
#1
According to window.bi , the function wxWindow_getname(window as ptr) return a pointer to the name of the window.

How can i get name (the string value)?

Best regards,

Nicolae
Reply
#2
pass it through wxString_mb_str and assign that to a zstring, here's an example:

Code:
dim as zstring ptr myzstr
dim as string mystr
myzstr = wxString_mb_str( wxWindow_GetName( somewidgetname ) )
mystr = *myzstr

hope this helps Wink

[edit] ps, what do you need it for? the widget name isn't really used for anything...
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#3
thanks a lot!
It works!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)