Does anyone have an idea what to do about it?
Refresh menu
Refresh menu
When I use a menu I find that by dragging the mouse over a menu item it is selected (white) but when I select another menu item the previous one stays selected. By dragging the mouse over all the menu items I get an ugly white/gray menybar. I thought it might be a Windows "feature". It is the same with the PureBasic editor and others. Is it just a fact of life? Is it my PC only? I run Windows XP Home Edition. But if I look at IE 6.0 for example this is not happening. So it can be changed.
Does anyone have an idea what to do about it?
Does anyone have an idea what to do about it?
Are you running a custom Theme for XP?
Run this code and see if the result is "0" or "1".
My guess is it will return "0" for you.
Run this code and see if the result is "0" or "1".
Code: Select all
#SPI_GETFLATMENU = $1022
SystemParametersInfo_(#SPI_GETFLATMENU, 0, @myBool, 0)
MessageRequester("Info", Str(myBool))What goes around comes around.
PB 5.21 LTS (x86) - Windows 8.1
PB 5.21 LTS (x86) - Windows 8.1
Here is still a BUG (also if I work with the XP Theme).
-> The first menu backgound box is not refreshing if i move to another menu item.
Here are also the code
Open a menu and then move to a second one.
The first menu background is not refreshing.
-> The first menu backgound box is not refreshing if i move to another menu item.
Here are also the code
Code: Select all
#SPI_GETFLATMENU = $1022
SystemParametersInfo_(#SPI_GETFLATMENU, 0, @myBool, 0)
MessageRequester("Info", Str(myBool))
InitSprite()
WindowID = OpenWindow(PB_ANY, 0, 0, 300, 200, #PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered, "Bug in menu refresh routine")
If OpenWindowedScreen(WindowID, 0, 0, 300, 200,0,0,0) <> 0
If CreateMenu(0, WindowID )
MenuTitle("One")
MenuItem(PB_ANY, "111")
MenuTitle("Two")
MenuItem(PB_ANY, "222")
MenuTitle("Three")
MenuItem(PB_ANY, "333")
MenuTitle("Four")
MenuItem(PB_ANY, "444")
MenuTitle("Settings")
OpenSubMenu("SubMenu1")
MenuItem( PB_ANY, "Sub_Menu1")
CloseSubMenu()
MenuTitle("Help")
MenuItem(PB_ANY, "About...")
EndIf
EndIf
Repeat
FlipBuffers()
ClearScreen(0,0,0)
event = WaitWindowEvent()
Delay(10)
Until event = #PB_EventCloseWindow
The first menu background is not refreshing.
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...



