Search found 104 matches

by halo
Fri Nov 17, 2006 5:40 pm
Forum: Coding Questions
Topic: What parameters does PB use internally to create windows?
Replies: 27
Views: 6644

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.
by halo
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 ...
by halo
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 ...
by halo
Thu Nov 16, 2006 10:24 pm
Forum: Coding Questions
Topic: What parameters does PB use internally to create windows?
Replies: 27
Views: 6644

The point is to make a window with a full-size titlebar, "X" close button, but no icon on the top-left. This can be used for a custom messagebox, an options window, or whatever else you want. As demonstrated, it works perfectly in PureBasic, and I am trying to figure out why it doesn't work in ...
by halo
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 ...
by halo
Sat Sep 10, 2005 3:18 pm
Forum: Coding Questions
Topic: Handling menus through API
Replies: 4
Views: 1810

Sonofa! That's not in API-Guide 3.7!

Okay, so CreateMenu_(VOID).

I don't see a parameter for hwnd, so how do I attach this to the window?

Ooohhhh....Setmenu(). Another command missing from API-Guide.

Time to uninstall API-Guide.
by halo
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 ...
by halo
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?
by halo
Fri Sep 09, 2005 3:05 am
Forum: Coding Questions
Topic: Horizontal scrollbar in resizable window?
Replies: 2
Views: 1189

i figured it out
by halo
Fri Sep 09, 2005 2:59 am
Forum: Coding Questions
Topic: Horizontal scrollbar in resizable window?
Replies: 2
Views: 1189

I am creating the window with these flags:
#PB_Window_SystemMenu+#PB_Window_MinimizeGadget+#PB_Window_MaximizeGadget+#PB_Window_SizeGadget
by halo
Fri Sep 09, 2005 2:57 am
Forum: Coding Questions
Topic: Controlling window callback causing crazy crashes? Crap!!!
Replies: 4
Views: 1470

I am stoopid.
by halo
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.")
by halo
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?
by halo
Thu Sep 01, 2005 8:56 pm
Forum: General Discussion
Topic: Correct filepath?
Replies: 11
Views: 4046

Here it is. Write this one down somewhere:

Global *POINTER_GetLongPathName

lib=OpenLibrary(#PB_ANY,"kernel32.dll")
*POINTER_GetLongPathName=IsFunction(lib,"GetLongPathNameA")

Procedure GetLongPathName_(file$,temp,size)
ProcedureReturn CallFunctionFast(*POINTER_GetLongPathName,file$,temp,size ...
by halo
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