Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GUI: Proof of concept with wx-c.dll
#61
oh yeah, that'd help. :oops:
next thing to make work: wxsizer. the add() function is supposed to accept any control, but the current wrapper only accepts width & height as arguments, or if you use addwindow() or addsizer() then it'd add windows or sizers, but it'd be best if it could add buttons, textctrls, etc. any ideas? :???:
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#62
one more thing...
any way to get that menuhandler to pass arguments to subs?
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#63
Quote:The RED (on WinXP) close button works fine now...
except that I can't stop the window to be closed :x
So a messagebox with:
"Do you really want to close this application?"
is not possible...
(without the window NOT to be closed)
Cry
Reply
#64
Quote:next thing to make work: wxsizer. the add() function is supposed to accept any control, but the current wrapper only accepts width & height as arguments, or if you use addwindow() or addsizer() then it'd add windows or sizers, but it'd be best if it could add buttons, textctrls, etc. any ideas? :???:
I'm not THAT far yet with wx :oops:
Reply
#65
Quote:one more thing...
any way to get that menuhandler to pass arguments to subs?
That's easy, here an example...
Code:
SUB menuhandler (byval event as long, byval listener as long)
   dim par1 as string
   dim par2 as string
   dim par3 as string
   FunctionPointer = id(wxEvent_GetId(event))
   par1 = "parameter 1"
   par2 = "parameter 2"
   par3 = "parameter 3"
   asm
      push [par3]
      push [par2]
      push [par1]
      call [FunctionPointer]
   END asm
END SUB
here the function...
Code:
declare sub onmenu_openfile(byval Par1 as string, byval Par2 as string, byval Par3 as string)

sub onmenu_openfile (byval Par1 as string, byval Par2 as string, byval Par3 as string)

   wxMsgBox ( wx_frame, "You thought this was going to do something?", "Yeah Right!", 0, wxSize_ctor ( 150, 50 ))
   wxMsgBox ( wx_frame, par1, "Yeah Cool 1!", 0, wxSize_ctor ( 150, 50 ))
   wxMsgBox ( wx_frame, par2, "Yeah Cool 2", 0, wxSize_ctor ( 150, 50 ))
   wxMsgBox ( wx_frame, par3, "Yeah Cool 3", 0, wxSize_ctor ( 150, 50 ))

end sub
Hope this is what you ment :wink:

BTW:
Again: Can't compile the newest version of fbc :oops:
It seems Vic is breaking everything - at least for ignorant mortals like me... :o
:rotfl:
Reply
#66
yes, that was what i meant exactly, thanks. except i think you can't use byval for strings. did you try to compile that first?

i'll post a build of the latest cvs once i download it. :wink:
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#67
here ya go. i even included a rebuilt gfxlib since the old one's inkey$ broke if used with the new libfb.

Download fbc.zip
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#68
Quote:yes, that was what i meant exactly, thanks. except i think you can't use byval for strings. did you try to compile that first?
Yes It's tested, and it works.

About "byval for strings":
still waiting for my "Hardcover" FreeBASIC Manual...
Reply
#69
Quote:here ya go. i even included a rebuilt gfxlib since the old one's inkey$ broke if used with the new libfb.
This is great, thanks.

8)
Reply
#70
no problem. Smile
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)