How do I remove the icon that appears in the caption bar on the window? I tried using the SETICON but the problem is PureBasic doesn't recognize ICON_SMALL or ICON_LARGE
Removing Window Icon!
Removing Window Icon!
Hi,
How do I remove the icon that appears in the caption bar on the window? I tried using the SETICON but the problem is PureBasic doesn't recognize ICON_SMALL or ICON_LARGE
How do I remove the icon that appears in the caption bar on the window? I tried using the SETICON but the problem is PureBasic doesn't recognize ICON_SMALL or ICON_LARGE
- Rook Zimbabwe
- Addict

- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
nopes. just the icon.
@Chirantha
the icon resp the empty space is the place for the Window_SystemMenu,
this little menu that let's you iconfy, close, etc. your window.
to eliminate this, you'll have to leave out the #PB_Window_SystemMenu
Flag when opening the window.
Problem is: you need the SystemMenu to have the Min/Max/Close Buttons.
@Chirantha
the icon resp the empty space is the place for the Window_SystemMenu,
this little menu that let's you iconfy, close, etc. your window.
to eliminate this, you'll have to leave out the #PB_Window_SystemMenu
Flag when opening the window.
Problem is: you need the SystemMenu to have the Min/Max/Close Buttons.
Code: Select all
OpenWindow(0, #PB_Ignore, #PB_Ignore, 240,120, "No System Menu", #PB_Window_TitleBar)
CreateGadgetList(WindowID(0))
ButtonGadget(0,224,0,16,16,"X")
TextGadget(1,16,32,160,20,"No Control-Buttons either")
Repeat
EvID = WaitWindowEvent()
EvGd = EventGadget()
If EvID = #PB_Event_Gadget
If EvGd = 0
Quit = 1
EndIf
EndIf
Until Quit = 1oh... and have a nice day.
- Fluid Byte
- Addict

- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
Not necessarilyKaeru Gaman wrote:nProblem is: you need the SystemMenu to have the Min/Max/Close Buttons.
Code: Select all
OpenWindow(0,0,0,320,240,"No Window Icon", #WS_OVERLAPPEDWINDOW | #WS_VISIBLE | 1)
SetWindowLong_(WindowID(0),#GWL_EXSTYLE,#WS_EX_DLGMODALFRAME)
HideWindow(0,0)
While WaitWindowEvent() ! #PB_Event_CloseWindow : WendWindows 10 Pro, 64-Bit / Whose Hoff is it anyway?
- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany


