Well, this looks like they have done all the work for you already:
http://www.codeproject.com/dialog/xmessagebox.asp
Alternatively, it might be easier just to create a messagebox from a window, using the style I just showed you.
Search found 104 matches
- Fri Nov 17, 2006 5:40 pm
- Forum: Coding Questions
- Topic: What parameters does PB use internally to create windows?
- Replies: 27
- Views: 6644
- Fri Nov 17, 2006 6:18 am
- Forum: Coding Questions
- Topic: What parameters does PB use internally to create windows?
- Replies: 27
- Views: 6644
Thank you! That was what I needed. I traced the BlitzMax window class back and found that it was actively loading the default exe icon. I commented that out and the setting took effect.
I searched for the answer to this for a long time. The PB forum is one of the best places to find people who know ...
I searched for the answer to this for a long time. The PB forum is one of the best places to find people who know ...
- Fri Nov 17, 2006 1:03 am
- Forum: Coding Questions
- Topic: What parameters does PB use internally to create windows?
- Replies: 27
- Views: 6644
Why don't ask on blitzmax forum? Sounds more logic to me.
I am, but they don't have any idea why it doesn't work. I am guessing that PB windows have an owner-drawn caption, or have some setting they are created with that allows what I want, because it obviously isn't just a matter of window style ...
I am, but they don't have any idea why it doesn't work. I am guessing that PB windows have an owner-drawn caption, or have some setting they are created with that allows what I want, because it obviously isn't just a matter of window style ...
- Thu Nov 16, 2006 10:24 pm
- Forum: Coding Questions
- Topic: What parameters does PB use internally to create windows?
- Replies: 27
- Views: 6644
- Thu Nov 16, 2006 8:57 pm
- Forum: Coding Questions
- Topic: What parameters does PB use internally to create windows?
- Replies: 27
- Views: 6644
What parameters does PB use internally to create windows?
I am attempting to create a window with no titlebar icon in BlitzMax, like this. This is a window, not an actual messagebox dialog:
http://www.codeproject.com/cs/miscctrl/MessageBoxChk/MessageBoxChk.gif
Apparently it can be done in PureBasic with the following code:
OpenWindow(0, 0, 0, 240, 100 ...
http://www.codeproject.com/cs/miscctrl/MessageBoxChk/MessageBoxChk.gif
Apparently it can be done in PureBasic with the following code:
OpenWindow(0, 0, 0, 240, 100 ...
- Sat Sep 10, 2005 3:18 pm
- Forum: Coding Questions
- Topic: Handling menus through API
- Replies: 4
- Views: 1810
- Sat Sep 10, 2005 6:53 am
- Forum: Coding Questions
- Topic: Handling menus through API
- Replies: 4
- Views: 1810
Handling menus through API
I would like to add menus to my windows using the API commands, instead of PureBasic commands. API lets you insert menus anywhere, and you can remove menu items.
I found some examples that modify and add to existing menus. I don't know how to create the window menu to start with. Getmenu_() only ...
I found some examples that modify and add to existing menus. I don't know how to create the window menu to start with. Getmenu_() only ...
- Sat Sep 10, 2005 2:41 am
- Forum: General Discussion
- Topic: Beat the flicker with SendMessage_(hwnd,#WM_SETREDRAW,0,0)?
- Replies: 2
- Views: 1545
Beat the flicker with SendMessage_(hwnd,#WM_SETREDRAW,0,0)?
I am trying this in my resizing callback code:
SendMessage_(hwnd,#WM_SETREDRAW,0,0)
;Resize stuff here
SendMessage_(hwnd,#WM_SETREDRAW,1,0)
Now I need to redraw the window. How do I do this?
SendMessage_(hwnd,#WM_SETREDRAW,0,0)
;Resize stuff here
SendMessage_(hwnd,#WM_SETREDRAW,1,0)
Now I need to redraw the window. How do I do this?
- Fri Sep 09, 2005 3:05 am
- Forum: Coding Questions
- Topic: Horizontal scrollbar in resizable window?
- Replies: 2
- Views: 1189
- Fri Sep 09, 2005 2:59 am
- Forum: Coding Questions
- Topic: Horizontal scrollbar in resizable window?
- Replies: 2
- Views: 1189
- Fri Sep 09, 2005 2:57 am
- Forum: Coding Questions
- Topic: Controlling window callback causing crazy crashes? Crap!!!
- Replies: 4
- Views: 1470
- Fri Sep 09, 2005 1:33 am
- Forum: Coding Questions
- Topic: Controlling window callback causing crazy crashes? Crap!!!
- Replies: 4
- Views: 1470
Controlling window callback causing crazy crashes? Crap!!!
This crashes on the MessageRequester() command.
Procedure cb(WindowID, Message, wParam, lParam)
Result = #PB_ProcessPureBasicEvents
;
; you code here
;
ProcedureReturn Result
EndProcedure
OpenWindow(0,200,200,400,300,0,"")
SetWindowCallback(@cb)
MessageRequester("","Hello.")
Procedure cb(WindowID, Message, wParam, lParam)
Result = #PB_ProcessPureBasicEvents
;
; you code here
;
ProcedureReturn Result
EndProcedure
OpenWindow(0,200,200,400,300,0,"")
SetWindowCallback(@cb)
MessageRequester("","Hello.")
- Thu Sep 08, 2005 9:27 pm
- Forum: Coding Questions
- Topic: Horizontal scrollbar in resizable window?
- Replies: 2
- Views: 1189
Horizontal scrollbar in resizable window?
How do I get rid of the horizontal scrollbar that appears when I create a resizable window with minimize and maximize buttons?
- Thu Sep 01, 2005 8:56 pm
- Forum: General Discussion
- Topic: Correct filepath?
- Replies: 11
- Views: 4046
- Thu Sep 01, 2005 8:45 pm
- Forum: General Discussion
- Topic: Correct filepath?
- Replies: 11
- Views: 4046
Using BlitzPlus, I was able to get it with the WinAPI command GetLongPathName (kernel32). This command is not in PureBasic's API libs. How can I add it?
Here is the MS page:
http://msdn.microsoft.com/library/defau ... thname.asp
Here is the MS page:
http://msdn.microsoft.com/library/defau ... thname.asp