WebGadget überlagert ComboBoxGadget?

Anfängerfragen zum Programmieren mit PureBasic.
Benutzeravatar
Blackskyliner
Beiträge: 532
Registriert: 28.07.2005 00:54
Wohnort: /home/Blackskyliner/

WebGadget überlagert ComboBoxGadget?

Beitrag von Blackskyliner »

Wenn ich meine combobox anzeigen will also so wie beim IE bei den links da sind die hinter dem webfenster.... kann ich das irgendwie ändern?

Code: Alles auswählen

  
If OpenWindow(#Window_0, 241, 240, 600, 300,  #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar , "New window ( 0 )")
    If CreateGadgetList(WindowID())
      ComboBoxGadget(#URL, 0, 5, 560, 20, #PB_ComboBox_Editable)
      WebGadget(#WEB, 0, 25, 600, 275, "about:blank")
      ButtonGadget(#GOTO, 560, 5, 40, 20, "Goto")
      
    EndIf

  Repeat ; Start of the event loop
  
  Event = WaitWindowEvent() ; This line waits until an event is received from Windows
  
  WindowID = EventWindowID() ; The Window where the event is generated, can be used in the gadget procedures
  
  GadgetID = EventGadgetID() ; Is it a gadget event?
  
  EventType = EventType() ; The event type
  
  ;You can place code here, and use the result as parameters for the procedures
  
  If Event = #PB_EventGadget
    
    If GadgetID = #GOTO
      SetGadgetText(#WEB,GetGadgetText(#URL))
      URL.s = GetGadgetText(#WEB)
      AddGadgetItem(#URL,0,URL)
    EndIf
    ;If GadgetID = #WEB
      
    ;EndIf 
    
  EndIf
  
  Until Event = #PB_Event_CloseWindow ; End of the event loop

EndIf
Benutzeravatar
Batze
Beiträge: 1492
Registriert: 03.06.2005 21:58
Wohnort: Berlin
Kontaktdaten:

Beitrag von Batze »

Das Gadget ist nicht dahinter, du musst beim ComboBoxGadget nur als Height einen Großen Wert nemen z.b:

Code: Alles auswählen

#ComboBoxGadget(#URL, 0, 5, 560, 200, #PB_ComboBox_Editable) 
Hier sind meine Codes (aber die Seite geht gerade nicht):
http://www.basicpure.de.vu
Benutzeravatar
Blackskyliner
Beiträge: 532
Registriert: 28.07.2005 00:54
Wohnort: /home/Blackskyliner/

Beitrag von Blackskyliner »

ohh.... Ups :oops: Danke!
Antworten