Message Requester
Posted: Fri Sep 01, 2006 6:44 pm
While I was looking around on the net I found a very good link on code project
wish Pure Basics was more like this one...
http://www.codeproject.com/dialog/xmessagebox.asp
Hope thats of Interest
on a side note i am messing around with a little custom message box and i have a problem with it.
it appears on the taskbar when i dont want it to and i cant see a way around it, any help please...
Thankyou in Advance
Regards
Kevin
http://www.codeproject.com/dialog/xmessagebox.asp
Hope thats of Interest
on a side note i am messing around with a little custom message box and i have a problem with it.
it appears on the taskbar when i dont want it to and i cant see a way around it, any help please...
Code: Select all
Procedure MessageBox(hwnd , Caption$, Text$, dwStyle, lpszIcon)
#MB_USERICON = $80
Protected my_messagebox.MSGBOXPARAMS
If hwnd<>0
hwnd=WindowID(hwnd)
EndIf
my_messagebox\cbSize=SizeOf(MSGBOXPARAMS)
my_messagebox\hwndOwner=hwnd ; change to windowID(#your window) if needed
my_messagebox\hInstance=0
my_messagebox\lpszText=@Text$
my_messagebox\lpszCaption=@Caption$
; lookup other dwStyles under SDK MessageBoxEx Function <<<---
my_messagebox\dwStyle=dwStyle
;{ more lpszIcon options
;IDI_APPLICATION
;IDI_ASTERISK
;IDI_ERROR
;IDI_EXCLAMATION
;IDI_HAND
;IDI_INFORMATION
;IDI_QUESTION
;IDI_WARNING
;IDI_WINLOGO
;}
my_messagebox\lpszIcon=lpszIcon
ProcedureReturn MessageBoxIndirect_(@my_messagebox)
EndProcedure
;PBMessageBoxQuit()
Result.b=MessageBox(0, "Exit Program","Exit Program Are You Sure ? "+Chr(13), #MB_YESNO | #MB_USERICON | #MB_DEFBUTTON2, #IDI_EXCLAMATION)
If Result.b=#IDYES ; Yes or #IDNO for no...
Beep_(100,50)
EndIf
End
Thankyou in Advance
Regards
Kevin