Happy Birthday Gift!!

Developed or developing a new product in PureBasic? Tell the world about it.
newart
User
User
Posts: 34
Joined: Sat Feb 12, 2005 1:59 am
Location: Russia, SPb

Happy Birthday Gift!!

Post by newart »

I make gift for Happy Birthday of my girlfriend - Alexandra aka VitaminC =)

http://www.n-discovery.spb.ru/pc/vitagift_eng.rar (750kb)

Others my gift & intro on purebasic: http://www.n-discovery.spb.ru/pc.php

Image

Image
Last edited by newart on Mon Feb 13, 2006 9:46 pm, edited 1 time in total.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Ehehehe

Happy birthday!

Nice program! Funky graphics!!!
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Post by Comtois »

Bon anniversaire VitaminC :P
Please correct my english
http://purebasic.developpez.com/
newart
User
User
Posts: 34
Joined: Sat Feb 12, 2005 1:59 am
Location: Russia, SPb

Post by newart »

Somebody knows why after start Gift the window becomes not active and the cursor disappears?
It can be avoided?
Here a source code:

Code: Select all

If OpenWindow(0,0,0,#scrw,#scrh,#PB_Window_ScreenCentered, title$) = 0
   MessageBox_ (0,"Could not open Window", title$, #MB_ICONINFORMATION|#MB_OK): End                                                                                     
EndIf
                          
If OpenWindowedScreen(WindowID(),0,0,#scrw,#scrh,0,0,0) = 0
   MessageBox_ (0,"Could not open 800x600x"+Str(#scrd)+"screen", title$, #MB_ICONINFORMATION|#MB_OK) : End                                                                                     
EndIf
          
  
SetFrameRate(#frate) 
 
Gosub loadsprite

PlayModule(0) 
ModuleVolume(0,100)


Repeat
FlipBuffers():ExamineKeyboard():ExamineMouse()

Event = WindowEvent()         
If Event=#PB_Event_CloseWindow: fade = 1: EndIf                                     
ETC...
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Post by Comtois »

for the cursor dont use ExamineMouse()
if you need mouse

Code: Select all

 Event = WindowEvent()
       
 If Event = #WM_LBUTTONDOWN
 Debug "Down"
ElseIf Event = #WM_LBUTTONUP 
Debug "Up"
endif
Please correct my english
http://purebasic.developpez.com/
newart
User
User
Posts: 34
Joined: Sat Feb 12, 2005 1:59 am
Location: Russia, SPb

Post by newart »

Comtois wrote:for the cursor dont use ExamineMouse()
if you need mouse
Big thanks!! :lol:

But the window on former loses focus. :cry:
newart
User
User
Posts: 34
Joined: Sat Feb 12, 2005 1:59 am
Location: Russia, SPb

Post by newart »

Really nobody knows in what the reason (window lost focus)?
:cry:
Post Reply