:?: ComboBox

Windows specific forum
brossden
New User
New User
Posts: 2
Joined: Sun May 25, 2003 7:29 am

:?: ComboBox

Post by brossden »

The Command : AddGadgetItem(#Gadget_X,-1, "XXXXXXX") is not Ok
Wht is the god command please.

Sorry for my english, i am french !!!!


A+

Denis :?:
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Re: :?: ComboBox

Post by Num3 »

brossden wrote:The Command : AddGadgetItem(#Gadget_X,-1, "XXXXXXX") is not Ok
Wht is the god command please.

Sorry for my english, i am french !!!!


A+

Denis :?:
Try:

Code: Select all


Dim meses.s(13)

meses(0)="Janeiro"
meses(1)="Fevereiro"
meses(2)= "Março"
meses(3)= "Abril"
meses(4)= "Maio"
meses(5)= "Junho"
meses(6)= "Julho"
meses(7)= "Agosto"
meses(8)= "Setembro"
meses(9)= "Outubro"
meses(10)= "Novembro"
meses(11)= "Dezembro"
meses(12)= "Todos"

;window open code here

      ComboBoxGadget(1,  110, 70, 185, 120) ;<-Don't forget to add 120 pixels or the combo won't show the lines 
      For a  = 0 To 12
        AddGadgetItem(1,   - 1, meses(a))
      Next
Works fine here with 3.70
brossden
New User
New User
Posts: 2
Joined: Sun May 25, 2003 7:29 am

Post by brossden »

:oops:

Thank you very much !
Denis
Enthusiast
Enthusiast
Posts: 779
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Post by Denis »

Salut brossden,

see you on the french forum ?



A+

Denis
A+
Denis
Post Reply