how come this pgm includes itself: and other ??

Everything else that doesn't fall into one of the other PB categories.
vmars
New User
New User
Posts: 5
Joined: Sun Jun 21, 2009 2:32 am

how come this pgm includes itself: and other ??

Post by vmars »

****0622
I get this error from code below:
1) line33: CreateWindowEx_() is not a function(of not available in demo version1), macro, array or linked list. Somehow I lost this file.

2) newFile: line 0: 'includefile' too deeply nected (over 128 inclusions), probably ad endless recursivity.

Viaual Controls ??s:
3) In Euphoria, I am used to using a control named wxScrolledWindow, where I can load Controls(lets say 'Button's or 'Tab's) into the wxScrolledWindow. What would be the equivalent Control in pb?
Also, in the Objects viewer, I see panel1 is the child of 'new window'. And 1st_Tab1 is the child of Panel1, and Panel2 is the child of Tab1, and on downward. .

4) And, how did I get a Tab1 as child of new window, no panel involved?

Open Files??s:
5) When I go to OpenFile in pb, it opens the dialog ar 'My documents', how can I get it to open here: 'C:\Program Files\PureBasic\Projects'

6) And how come this pgm includes itself: IncludeFile "vm02.pb"

7) a) I am confused about file extensions: Save from pbvd creates a *.pbv,
b) "Create source" creates a *.pb file?
c) input to pb is a pb file , or a pbv file?
d) Output from pb is what?

Thanks!

Below are *.pb and *.pbv

Code: Select all

*
; PureBasic Visual Designer v3.95 build 1485 (PB4Code)

IncludeFile "vm02.pb"

Open_Window_0()

Repeat ; Start of the event loop
  
  Event = WaitWindowEvent() ; This line waits until an event is received from Windows
  
  WindowID = EventWindow() ; The Window where the event is generated, can be used in the gadget procedures
  
  GadgetID = EventGadget() ; 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_Event_Gadget
    
    If GadgetID = #ScrollArea_0
      
    ElseIf GadgetID = #Editor_0
      
    ElseIf GadgetID = #Container_0
      
    ElseIf GadgetID = #Panel_0
      
    ElseIf GadgetID = #Panel_1
      
    ElseIf GadgetID = #Panel_2
      
    ElseIf GadgetID = #Button_1
      
    ElseIf GadgetID = #Button_2
      
    ElseIf GadgetID = #Panel_3
      
    ElseIf GadgetID = #Panel_4
      
    ElseIf GadgetID = #Gadget_11
      
    EndIf
    
  EndIf
  
Until Event = #PB_Event_CloseWindow ; End of the event loop

End
;
*
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Well, I don't use visual designers so I can't comment on those problems related to such.

However...

1) The demo version of Purebasic does not allow the use of API functions. CreateWindowEx_() is an api function. (All functions with trailing underscore's are calls to api functions).

3) You're probably talking about a ScrollAreaGadget.

5) It should start at the current folder - or the last folder from which a PB source file was loaded.

7) Purebasic source files generally have .pb or .pbi extensions. The other extensions you mention are, I think, internal files for the visual designer - I wouldn't mess with them! :)
I may look like a mule, but I'm not a complete ass.
Post Reply