[Module] ComboBoxEx Gadget (all OS)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: [Module] ComboBoxEx Gadget (all OS)

Post 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
Mindphazer
Enthusiast
Enthusiast
Posts: 340
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: [Module] ComboBoxEx Gadget (all OS)

Post 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)
Last edited by Mindphazer on Mon Mar 20, 2023 11:47 am, edited 1 time in total.
MacBook Pro 14" M1 Pro - 16 Gb - MacOS 14 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: [Module] ComboBoxEx Gadget (all OS)

Post by jak64 »

OK Mindphazer
Thank you
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] ComboBoxEx Gadget (all OS)

Post 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)
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: [Module] ComboBoxEx Gadget (all OS)

Post 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,
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] ComboBoxEx Gadget (all OS)

Post 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
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: [Module] ComboBoxEx Gadget (all OS)

Post by jak64 »

Super,

Merci Thorsten1867
User avatar
blueb
Addict
Addict
Posts: 1041
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: [Module] ComboBoxEx Gadget (all OS)

Post 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. :mrgreen:

Your work is very much appreciated.
- It was too lonely at the top.

System : PB 6.10 Beta 9 (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: [Module] ComboBoxEx Gadget (all OS)

Post 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,
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] ComboBoxEx Gadget (all OS)

Post 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;-)
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: [Module] ComboBoxEx Gadget (all OS)

Post 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...
Post Reply