I am trying do a textbox with win32API with this code in rpg maker
#___________________________________________________________________________ini =
Win32API.new('kernel32', 'GetPrivateProfileString','PPPPLP', 'L')
@title = "\0" * 256
ini.call('Game', 'Title', '', @title, 256, '.\\Game.ini')
@title.delete!("\0")
# Getel hwnd from rgss player
@hwnd =
Win32API.new('user32', 'FindWindowA', 'PP', 'L').call('RGSS Player', @title)
@create_window =
Win32API.new('user32','CreateWindowEx','lpplllllllll','l')
# Build textbox#style =
WS_CHILD|
WS_CLIPCHILDREN|
WS_VSCROLL|
ES_MULTILINEstyle =
0x40000000|
0x02000000|
0x00200000|
0x0004x, y, w, h = 100, 100, 160, 120
@script_window = @create_
window.call(0, 'Edit', '', style, x, y, w,h, @hwnd, 0, 0, 0)
#___________________________________________________________________________i want create the window edit as child of parent window (rgss player). With that code i get create de window as chlid but it appear behind of the parent window. If you put de mouse over edit window it blink, shown by an instant and sets again behind the parent window (the edit window work but it is behind the parent window).
How i get that my child window set over the parent window and dont blink or get behind again?