Is there any doc on how the styles work? For example, for the label gadgets, if I leave the style to 0, it will have a border around it, how do I get rid of that? I tried different styles and it still doesn't work. I checked the WB3DStyles.bb under the label styles, but any one of them will make my label pop up as another window. Any ideas? Thanks
WinBlitz3D Styles
Blitz3D Forums/Blitz3D Userlibs/WinBlitz3D Styles This may point you in the right direction.
You have to learn about Windows flags since yu're now working with the Windows GUI.
You have to learn about Windows flags since yu're now working with the Windows GUI.
;------------------------------------------ Function JTextLabel(txt$, x,y,w,h, parent, fnt, r,g,b) ;------------------------------------------ Local label, exstyle, style exstyle = WS_EX_TRANSPARENT style = WS_CHILD Or WS_VISIBLE Or ES_CENTER Or ES_READONLY label = WB3D_CreateTextArea(x+1,y+1,w,h, parent,style) WB3D_Usefont(label, fnt) WB3D_SetGadgetExtendedStyle label,exstyle WB3D_SetTextAreaColor(label,255,255,255) WB3D_SetGadgetText(label,txt$) label = WB3D_CreateTextArea(x,y,w,h, parent,style) WB3D_Usefont(label, fnt) WB3D_SetGadgetExtendedStyle label,exstyle WB3D_SetTextAreaColor(label,r,g,b) WB3D_SetGadgetText(label,txt$) Return label End Function
Nack,
Winblitz3D use standard winapi styles it also follows the correct method of using them. so for example to display a label in a window the label is a child of the parent window and requires to to define the style as so by using WS_CHILD. this way your gadgets wont popup in new windows
kev
Winblitz3D use standard winapi styles it also follows the correct method of using them. so for example to display a label in a window the label is a child of the parent window and requires to to define the style as so by using WS_CHILD. this way your gadgets wont popup in new windows
kev
Oh thanks, I forgotten that winblitz3d is wrapping of the winapi. This dll is hardcore indeed ;)