Search found 18 matches

by kepu
Wed Aug 05, 2009 9:58 pm
Forum: Linux
Topic: A Debian/Ubuntu PureBasic installer
Replies: 27
Views: 17702

Debian Lenny and Mepis Linux installation

Sorry, I forgot put this earlier
Purebasic installation went nicely after this:
This will install all needed packages

Code: Select all

su -c
'apt-get install build-essential libgtk2.0-dev libgnome2-dev libgnomeprintui2.2-dev libxine-dev libsdl1.2-dev libiodbc2-dev'

:D
Happy coding
by kepu
Tue Aug 04, 2009 4:17 pm
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

three times....

Sorry , I was so stupid , ..had to ask three times..
and as I said, gosub staff was not actual main problem although it was not good programming.
Forum index says: "Just starting out? Need help? ", ..I am not pro in PB,
I will keep it on my mind next time.
by kepu
Tue Aug 04, 2009 3:47 am
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

It works...!

:D
Thanks, Demivec
That worked in Linux ,
So it seems , that at least in Linux, a imagegadget has to be refreshed in the eventloop everytime it has changed, .?
:shock:
by kepu
Tue Aug 04, 2009 1:45 am
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

cont....

I forgot to mention , the crosshair works all the time in your version and in my versions,
it actually only stuck as descriped in previous message ,when used through other sub or procedure like 'doline()'
by kepu
Tue Aug 04, 2009 1:32 am
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

changed code

Hi, Demivec.
Sorry to say, but this works exactly same way as earlier versions, it stuck same place and then like actually jump over procedure.
I try to explain more what happen:
When I click draw / line ,
the line menu does not dissappear and statusbartext does not appear,
but mouse is visible ...
by kepu
Mon Aug 03, 2009 11:40 pm
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

Ok.
I changed crosshair to procedure, works exactly same way, it does not work without imagegadget(.. in the procedure
(in Linux)
:?
by kepu
Mon Aug 03, 2009 10:06 pm
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

I can use procedures instead of those 'subs' , thus , I don't really know how it will solve this problem, because it is totally something else.
I know how to do it either way, but if you don't have pants ,choosing between running or walking does not create pants, ...already creator of Pascal says ...
by kepu
Mon Aug 03, 2009 9:44 pm
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

Maybe ..this should be in Linux section

I don't know ,
maybe this topic should be in OS specific / Linux, because it seems to be more Linux problem?
by kepu
Mon Aug 03, 2009 8:29 pm
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

Yep, that I was quessing, your example is inside the eventloop, but Case #NULL seems not to have effect if I am outside of eventloop in sub, it means program should to return to eventloop for refresh, quite heavy jumping?
So, you are actually saying that all gadget handling should happen in ...
by kepu
Mon Aug 03, 2009 7:22 pm
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

So?

Sorry, can you be more specific , "not properly process events BEFORE creating new"?
by kepu
Mon Aug 03, 2009 5:35 pm
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

WaitWindowEvent()

As you can see, I have used WaitWindowEvent() and I have tried hundred different timeouts (0 to 450), because that was my first though, ( note that crosshair code is outside of eventloop it is only inside the repeat-until loop.)
The timeouts had no effect so far, in these samples I cut to forum,I ...
by kepu
Mon Aug 03, 2009 2:46 am
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

Hi! Me again :D
If it helps ,You can replace that starting procedure in both codes with this one
then you can try them both in Windows or in Linux
because this procedure works in both in Linux and Windows


Procedure WindowMouseButton(Wnd, ButtonNr)

CompilerIf #PB_Compiler_OS = #PB_OS_Linux ...
by kepu
Mon Aug 03, 2009 2:09 am
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

api-calls''''

Hi! :)
Those procedures works fine , sorry I didn't quote codes clearly, the first code is only for windows because its first procedure and the second is only for Linux because it's first procedure, I was talking only about code after of that first procedure. ( Sorry bad idea, I just tried to cut ...
by kepu
Sun Aug 02, 2009 11:27 pm
Forum: Coding Questions
Topic: imagegadget / eventloop problem
Replies: 22
Views: 3295

imagegadget / eventloop problem

Hi!
I have a little problem with differences Windows and lLnux ,
I put these two codes to here if somebody can explain what i have done wrong
I am a newbie in Purebasic

Problem is in repeat-until loop, straight once/cycle command 'gosub crosshair' , it works in Windows fine, but in Linux it worked ...
by kepu
Thu Jul 23, 2009 6:26 pm
Forum: Feature Requests and Wishlists
Topic: WindowMouseButton()
Replies: 20
Views: 6235

..mousebutton

:D
Anyway... Thanks 'Berikco' for your code
It seams to work fine without any crashes for me in both, Linux and Vista.

..
Of course 'for newbies like me' , the code needs be update like:



OpenWindow(0, 0, 0, 300, 200,"Test", #PB_Window_SystemMenu)
;OpenWindow(0, 0, 0, 300, 200, #PB_Window ...