Discussion forum about PANORAMIC language

Mac, Windows & Android application development with PANORAMIC language
 
HomeFAQSearchRegisterMemberlistUsergroupsLog in
Latest topics
» Hello world.
by Mon Jun 19, 2017 1:37 am

» Biomorphes de PICKOVER
by Sun Jun 18, 2017 2:33 am

» In less than 10 lines of code
by Fri Jun 16, 2017 5:03 am

» Effect Dopler
by Fri Jun 16, 2017 3:29 am

» SuperEllipse
by Wed Jun 14, 2017 4:01 am

» Plants
by Wed Jun 14, 2017 3:38 am

» Mira's attractor
by Wed Jun 14, 2017 3:30 am

» Triangle of Sierpinski
by Wed Jun 14, 2017 3:22 am

» Esthétique polaire
by Wed Jun 14, 2017 3:16 am

» Butterfly effect : Lorenz equations
by Wed Jun 14, 2017 3:08 am

» Collision detection
by Tue Jun 13, 2017 5:09 am

» The Bees Laline Paull Epub Books
by Mon Oct 10, 2016 8:58 pm

» PANORAMIC for Mac OSX 10 is available
by Tue Aug 09, 2016 6:08 pm

» ide
by Sat Jul 16, 2016 12:27 am

» Can I change the program icon/logo in my application ?
by Thu Jul 07, 2016 3:32 am

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Share | 
 

 to write or draw with the mouse

View previous topic View next topic Go down 
AuthorMessage
bignono

avatar

Number of posts : 11
Age : 60
Localisation : Champigny-sur-Marne, 94500, France
Registration date : 2013-03-12

PostSubject: to write or draw with the mouse   Sat Mar 16, 2013 10:11 am

Bonjour à tous, Amis de langue anglaise,
Voici un petit code qui vous montre comment écrire ou dessiner avec la souris! J'espère que cette astuce vous sera utile.
Je suis français et j'utilise le traducteur en ligne babylon, donc veuillez m'excuser si la traduction est mauvaise. Néanmoins, j'espère que vous aurez compris mon message.
A bientôt.

Hello everyone, Friends of English language, Very Happy
Here a small code which shows you how to write or draw with the mouse! I hope that this tip will be useful for you.
I am French and I use the translator online babylon, therefore want to excuse me if the translation is bad. Nevertheless, I hope that you will have understood my message.
So long. Wink Wink Wink
Code:
dim xd,yd,xf,yf
label  write
timer 99:timer_interval 99,1:on_timer 99,write
end

write:
timer_off 99:if mouse_left_down(0)=0 then timer_on 99:return
xd=mouse_x_left_down(0):yd=mouse_y_left_down(0)
while mouse_left_up(0)=0
    xf=mouse_x_position(0):yf=mouse_y_position(0)
    2d_line xd,yd,xf,yf:xd=xf:yd=yf
end_while
timer_on 99
return
Back to top Go down
View user profile
bignono

avatar

Number of posts : 11
Age : 60
Localisation : Champigny-sur-Marne, 94500, France
Registration date : 2013-03-12

PostSubject: Re: to write or draw with the mouse   Sat Mar 16, 2013 10:21 am

If you do not understand the code, or if you have questions, do not hesitate. This forum is there for that!
You can also come to take part on the French forum which is more active. There will be certainly always somebody to answer you.
Back to top Go down
View user profile
 
to write or draw with the mouse
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Charley Chau Birthday Prize Draw
» Need to do a simple Left Click in a text box
» FREE Gift Basket draw!! ($400.00 value) *CANADA ONLY
» How to write in excel
» Unable to perform Actions on Mouse over Elements in Selenium WebDriver

Permissions in this forum:You cannot reply to topics in this forum
Discussion forum about PANORAMIC language :: Panoramic for Windows :: Source code (snippets)-
Jump to: