child window

Blitz3D Forums/Blitz3D Beginners Area/child window

Fernhout(Posted 2007) [#1]
Maybe is this not the right topic here.
I am working on a program that need to open a child window.
How does it works in Blitz3D so i can draw in that child window.
My program is setup to work as a window. I am now on a point that i need the child window to make settings for the program. Color settings, font settings and file location.


Kev(Posted 2007) [#2]
You could use winblitz3d, this enables direct access to the windows api for creating windows\gadgets. Color requester, font requester and file requester are all available.

kev


Fernhout(Posted 2007) [#3]
Thats my problem i want to do it by using the API call directly. So i do not have to use another DLL. Only the DLL that is already in the system.


ingenium(Posted 2007) [#4]
I am now on a point that i need the child window to make settings for the program. Color settings, font settings and file location.



Instead of a child window... create a 2d quad.


Fernhout(Posted 2007) [#5]
What i want to do is actualy opening the color windows that is the same as in paint.
Is there a API call dor in the DLL files and how do i do that.


b32(Posted 2007) [#6]
You could get a color dialog using ChooseColorA in comdlg32.dll. However, you need to pass a struct to it, i mean a set of parameters via bank, so it might not be easy.
Here is how you do this in VB:
http://vbnet.mvps.org/index.html?code/comdlg/choosecolor.htm


Fernhout(Posted 2007) [#7]
Thanks for the tip.I look at the file and try to find out how to pass the struct. Come back later if i find the solution.