vbMark Posted July 20, 2005 Share Posted July 20, 2005 How do I get the Inputbox to me on top of everything when my main form is set to be on top? Thanks! Link to comment Share on other sites More sharing options...
Developers Jos Posted July 20, 2005 Developers Share Posted July 20, 2005 How do I get the Inputbox to me on top of everything when my main form is set to be on top?Thanks!<{POST_SNAPBACK}>Doesn't have that option, but you could make your own Inpubox with the Gui functions and give the gui the topmost attribute... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
vbMark Posted July 20, 2005 Author Share Posted July 20, 2005 (edited) Doesn't have that option, but you could make your own Inpubox with the Gui functions and give the gui the topmost attribute...<{POST_SNAPBACK}>Ah, cool. Thanks.How do I get an AutoIt window to stay on top? The code looks like it's only for non-AutoIt windows.WinSetOnTop ( "title", "text", flag ) Edited July 20, 2005 by vbMark Link to comment Share on other sites More sharing options...
therks Posted July 20, 2005 Share Posted July 20, 2005 Well that's not what he had in mind, but it will work... Just put the title of your window where it says title... My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
GaryFrost Posted July 20, 2005 Share Posted July 20, 2005 here's an example of making your own inputbox that's modal to the main form. expandcollapse popup#include <GuiConstants.au3> $main = GUICreate("MyGUI", 392, 322) $Button_1 = GUICtrlCreateButton("Input", 140, 190, 70, 30) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 GUISetState(@SW_DISABLE, $main) _Input() GUISetState(@SW_ENABLE, $main) GUISetState(@SW_SHOW) Case Else ;;; EndSelect WEnd Exit Func _Input() $popup = GUICreate("PopUP", 191, 85, -1, -1, $WS_DLGFRAME, $WS_EX_TOPMOST) $Input_1 = GUICtrlCreateInput("Input1", 0, 0, 180, 20) $Button_2 = GUICtrlCreateButton("OK", 60, 40, 60, 20) GUISetState() While 1 $msg2 = GUIGetMsg() Select Case $msg2 = $Button_2 ExitLoop Case Else ;;; EndSelect WEnd GUIDelete($popup) EndFunc ;==>_Input SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now