Menu issue with ComboBox
Hi, I used MaxGUI for a app and Im having an issue with the dropdown menu on combo boxes, they are hard to select or stay selected and just dissappear, sometimes I can select an item fine, not sure whats going on, is it a known issue? Thanks.
Hey lavalamp, Welcome to the forums!
Can you post your code or parts of it that can be run for reference so your issue can be easily checked out?
btw, we use markdown on post/comments so here is the blitzmax code template format for this forum. cheers.
Thanks for welcome! Only discovered BlitzMax was now open source and I can refresh my apps. Interestingly if I complie it under Windows this issue is not there, only under MacOS. Wondering if I have implemented this all wrong now...
For Local Check:TObjects = EachIn R_List Select EventSource() Case Check.H If EventData() > -1 SetGadgetText(Check.H , Int(GadgetItemText(TGadget(EventSource()), EventData()))) Else SetGadgetText(Check.H , Int( GadgetText(TGadget(EventSource())) + " [user text]")) EndIf Check.Update() End Select Next
Thanks RonTek, I will try those, but I think I know whats going on, when you click the combobox, the menu comes up OK, but when I go to select an item Im moving off the object and loses focus. Not sure how I would stop this...
I see. If you can post a complete short runnable example of the above code it would be better to check for this particular issue, might be an isolated case or perhaps a bug with MaxGui.
GFK didn't resolve the issue. Briefly thought it had.
Turns out in MacOS High Serria it works, but in Catalina, it doesn't, then tried example code and this worked fine, so its my code.
Im using a loop to go through a list to locate which gadget has been clicked in which object, is this not the approach I should use?
For Local Check:TRecipe = EachIn Recipe_List Select EventSource() Case Check.Remove_Step Action = No_Action Dialogue_Box("Alert" , "Are you sure you want to delete Step "+(Check.ID-1) + " " + Check.Task_Type +"?") If Action = OK DebugLog "Deleting object " +Check.ID +"..." FreeGadget(Check.Panel) ListRemove(Recipe_List, Check) Number_of_Tasks:-1 DebugLog "Deleted Step." + (Number_of_Tasks-1) +" Left." Refresh_Recipe(True) Exit End If
I Rem'd this out , made no difference, the pull down menu behaves badly under MacOS, you have to click the arrow then slide to the left to maintain the menu, moving diagonally down to a item causes the menu to disappear.
I'm going to have to write my own pop up I guess.
Newer issues should be expected since MaxGUI is not updated anymore, at least on the original repo version and Apple constantly updates their software. Perhaps you should try the NG updated version:
I have not tried it with vanilla version, but it should work as well.
Reply To Topic (minimum 10 characters)
Please log in to reply