Panel buttons

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Eddy.

Panel buttons on 2 rows, is it possible ?



blaou !!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.

should work like these:

hwin=OpenWindow(0,50,50,400,250,0,"Test")
CreateGadgetList(hwin)
PanelGadget(1,0,0,190,190)
AddGadgetItem(1,-1,"Number 1")
AddGadgetItem(1,-1,"Number 2")

PanelGadget(2,200,0,210,190)
AddGadgetItem(2,-1,"Number 1")
AddGadgetItem(2,-1,"Number 2")

Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow
End


But as you see, it dont work and dont know why.

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.

Sorry, It do work, just forgot one line of code. :)

hwin=OpenWindow(0,50,50,500,250,0,"Test")
CreateGadgetList(hwin)
PanelGadget(1,0,0,190,190)
AddGadgetItem(1,-1,"Number 1")
AddGadgetItem(1,-1,"Number 2")
ClosePanelGadget() ; <---------------

PanelGadget(2,200,0,210,190)
AddGadgetItem(2,-1,"Number 1")
AddGadgetItem(2,-1,"Number 2")

Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Eddy.

thanks
I will try this code

blaou !!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Berikco.

There should be a ClosePanelGadget() after every Panelgadget()
Or your programm will chrash after using Panelgadget() 25 times
PB can nest only 25 panels deep



Regards,

Berikco

http://www.benny.zeb.be/purebasic.htm
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

The experience speaks here :).

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Berikco.

Yep, i fell in that trap a couple of times

Regards,

Berikco

http://www.benny.zeb.be/purebasic.htm
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.
Originally posted by Berikco

Yep, i fell in that trap a couple of times

Regards,

Berikco

http://www.benny.zeb.be/purebasic.htm
*lol* But very nice to know! So I dont trap in the same hole as you did. :)

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home
Post Reply