Page 2 of 2
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Mon Mar 20, 2023 12:53 am
by jak64
Hello Mindphazer,
I modified my code but I have a compilation error when creating the gadget (Incorrect number of parameters).
Looking in the pbi, I saw the line:
Code: Select all
ComboBoxEx::Gadget(#ComboEx, 120, 19, 90, 20, 80, "", ComboBoxEx::#Editable, #Window)
What does the 5th number (80) and the double quotes correspond to?
In my program I have:
Code: Select all
ComboBoxEx::Gadget(#ComboDisplayDirectories,XDisplay,YDisplay,LDisplay,HDisplay)
THANKS
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Mon Mar 20, 2023 11:40 am
by Mindphazer
80 = MaxListHeigh --> c'est la hauteur maximale du gadget
the quote corresponds to the content, but i don't really know what it is. You should leave it blank (double quote)
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Mon Mar 20, 2023 11:43 am
by jak64
OK Mindphazer
Thank you
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Mon Mar 20, 2023 12:42 pm
by Thorsten1867
Code: Select all
ComboBoxEx::Gadget(GNum.i, X.i, Y.i, Width.i, Height.i, maxListHeight.i, Content.s="", Flags.i=#False, WindowNum.i=#PB_Default)
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Mon Mar 20, 2023 1:01 pm
by jak64
Hello Thorsten1867,
Thank you for your answer.
I am French and despite googe translation, I do not always understand.
I saw this line but, unless I am mistaken, I did not find, in the pbi, the explanation of the parameters, among others:
1) maxListHeight.i
2) Content.s=""
3) Flags.i=#False,
4) WindowNum.i=#PB_Default)
Best regards,
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Mon Mar 20, 2023 1:21 pm
by Thorsten1867
maxListHeight: Hauteur maximale de la liste de sélection avant l'utilisation d'une barre de défilement.
Content: Le texte qui s'affiche avant que quelque chose ne soit sélectionné.
Flags: #Borderless / #Editable / #UpperCase / #LowerCase / #Image / #AutoResize / #Left / #Right / #Center / #MultiSelect / #Style_RoundThumb / #Style_Win11
WindowNum: Numéro ou ID de la fenêtre supérieure
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Mon Mar 20, 2023 1:24 pm
by jak64
Super,
Merci Thorsten1867
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Mon Mar 20, 2023 2:00 pm
by blueb
@Thorsten1867
It's nice to see you back on the PB forums Thorsten.
I've gotten a lot of use from the many things you have posted.. in fact, I've even given you your own directory in my code samples.
Your work is very much appreciated.
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Mon Mar 20, 2023 4:18 pm
by jak64
Hello Thorsten1867,
I think there is an error, I published several game programs but on the French forum and two or three on the English forum
Cordially,
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Mon Mar 20, 2023 7:34 pm
by Thorsten1867
jak64 wrote: Mon Mar 20, 2023 4:18 pm
I think there is an error, I published several game programs but on the French forum and two or three on the English forum
A bit too little information to find a bug;-)
Re: [Module] ComboBoxEx Gadget (all OS)
Posted: Tue Mar 21, 2023 10:35 am
by jak64
Hello Thorsten1867,
In fact, I believed that the message which was addressed to you by blueb was for me.
That's why I answered that there was an error.
It was me who was wrong...