After creating a standard combo box, I noticed that when you highlight an item, the highlight is restricted to the width of the item text. How do you make the highlight span the full width of the gadget (as pretty much any other app does)?
ComboBox item width
BlitzMax Forums/BlitzMax GUI Programming/ComboBox item width Probably a bug in the implementation you are using. Is this the normal Windows version of MaxGUI?
Yeah, it's the Windows version of MaxGui. I'm using LogicGui to build my code but I also tried the CreateComboBox example in the help docs and it behaves in exactly the same way.
I'm not sure how to do it either. The ComboBox tutorial from Assari shows the problem :
SuperStrict Local MyWindow:TGadget=CreateWindow("ComboBox Example", 200,200,320,240) Local ComboBox:TGadget=CreateComboBox(10,10,200,100,MyWindow) For Local i:Int=1000 To 1050 AddGadgetItem ComboBox,i Next Local s:String Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End Case EVENT_GADGETACTION s=GadgetItemText(ComboBox,SelectedGadgetItem(ComboBox)) SetStatusText MyWindow, "index="+SelectedGadgetItem(ComboBox) + ":item=" + s End Select Forever
Probably a bug in the implementation you are using. Is this the normal Windows version of MaxGUI?
It looks as though this is Windows's decision - if you import an XP manifest file, the highlighting spans the entire row. Try using the new Windows module (MaxGUI.Win32MaxGUIEx) available via SVN.
Thanks for the info, but TBH it seems a bit of a faf so I'll just put up with it for the moment as it's really only a cosmetic issue anyway.