FORUM DE DISCUSSION SUR LE LANGAGE PANORAMIC
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
FORUM DE DISCUSSION SUR LE LANGAGE PANORAMIC

Développement d'applications avec le langage Panoramic
 
AccueilAccueil  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  MembresMembres  Connexion  
Derniers sujets
» Gestion d'un système client-serveur.
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar Klaus Ven 17 Mai 2024 - 14:02

» item_index(résolu)
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar jjn4 Mar 14 Mai 2024 - 19:38

» Bataille terrestre
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar jjn4 Lun 13 Mai 2024 - 15:01

» SineCube
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar Marc Sam 11 Mai 2024 - 12:38

» Editeur EliP 6 : Le Tiny éditeur avec 25 onglets de travail
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar Marc Sam 11 Mai 2024 - 12:22

» Philharmusique
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar jjn4 Ven 10 Mai 2024 - 13:58

» PANORAMIC V 1
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar papydall Jeu 9 Mai 2024 - 3:22

» select intégrés [résolu]
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar jjn4 Mer 8 Mai 2024 - 17:00

» number_mouse_up
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar jjn4 Mer 8 Mai 2024 - 11:59

» Aide de PANORAMIC
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar jjn4 Mer 8 Mai 2024 - 11:16

» trop de fichiers en cours
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar lepetitmarocain Mer 8 Mai 2024 - 10:43

» Je teste PANORAMIC V 1 beta 1
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar papydall Mer 8 Mai 2024 - 4:17

» bouton dans autre form que 0(résolu)
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar leclode Lun 6 Mai 2024 - 13:59

» KGF_dll - nouvelles versions
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar Klaus Lun 6 Mai 2024 - 11:41

» @Jack
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Emptypar Jack Mar 30 Avr 2024 - 20:40

Navigation
 Portail
 Index
 Membres
 Profil
 FAQ
 Rechercher
Rechercher
 
 

Résultats par :
 
Rechercher Recherche avancée
Mai 2024
LunMarMerJeuVenSamDim
  12345
6789101112
13141516171819
20212223242526
2728293031  
CalendrierCalendrier
-45%
Le deal à ne pas rater :
PC Portable LG Gram 17″ Intel Evo Core i7 32 Go /1 To
1099.99 € 1999.99 €
Voir le deal

 

 2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect

Aller en bas 
3 participants
AuteurMessage
Klaus

Klaus


Nombre de messages : 12301
Age : 75
Localisation : Ile de France
Date d'inscription : 29/12/2009

2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Empty
MessageSujet: 2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect   2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect EmptyLun 1 Avr 2013 - 11:34

Nouvelle version:
KGF.dll V2.09 du 1er 1vril 2013

Nouveauté:
nouvelle fonction ClickSetLinkRect:
DLL: res% = dll_call6("ClickSetLinkRect",hnd_button%,typ%,x%,y%,w%,h%)
KGF_SUB.bas: ClickSetLinkRect(btn%,typ%,x%,y%,w%,h%)


Cette fonction permet de surveiller l'entrée et la sortie du curseur de souris, non pas par rapport à un objet Panoramic, mais par rapport à une zone rectangulaire à l'intérieur d'un objet Panoramic ! Ceci peut être utilisé pour surveiller un PICTURE comme si c'était un objet Panoramic normal, en surveillant le rectangle contenant le picture dans la form ou le container dans lequel il se trouve !

La doc est à jour.

Modules modifiés:
KGF.dll
KGF_SUB.bas
KGF.chm, KGF.doc, KGF.pdf


Et voici une démo avec un list et un picture:


Code:
' test_mouse_over_ter.bas

label mouse_enter_memo, mouse_exit_memo
label mouse_enter_rect, mouse_exit_rect

dim dll$ : dll$ = "KGF.dll"
dim langage$ : langage$ = "FR"
' dim langage$ : langage$ = "EN"

KGF_initialize(dll$)

memo 1 : top 1,10 : left 1,10
  width 1,300 : height 1,300
if langage$="FR
  item_add 1,"Déplacez le curseur"
  item_add 1,"à l'aide de la souris."
  item_add 1,"Les objets vont"
  item_add 1,"changer d'aspect"
else
  item_add 1,"Hoover the cursor"
  item_add 1,"over the objects"
  item_add 1,"and they will"
  item_add 1,"change their aspect"
end_if
picture 2 : top 2,10 : left 2,350
  width 2,200 : height 2,400

edit 101 : top 101,320 : width 101,60 : left 101,10 : ' hide 101
button 201 :hide 201 : on_click 201,mouse_enter_memo
button 301 :hide 301 : on_click 301,mouse_exit_memo

edit 102 : top 102,320 : width 102,60 : left 102,80: ' hide 102
button 202 :hide 202 : on_click 202,mouse_enter_rect
button 302 :hide 302 : on_click 302,mouse_exit_rect


' ClickSetHook(1,101)
' ClickSetLink(201,5)
' ClickSetLink(301,6)
DefineMouseOver(1,201,101,5)
DefineMouseOver(1,301,101,6)

'  ClickSetHook(0,102)
'  ClickSetLinkRect(202,5,left(2),top(2),width(2),height(2))
'  ClickSetLinkRect(302,6,left(2),top(2),width(2),height(2))
DefineMouseOverRect(0,202,102,5,left(2),top(2),width(2),height(2))
DefineMouseOverRect(0,302,102,6,left(2),top(2),width(2),height(2))

end

mouse_enter_memo:
  color 1,255,230,230
  font_color 1,0,0,255
  if langage$="FR"
    caption 0,"Entrée mémo "+time$+" ("+trim$(text$(101))+") ("+trim$(text$(102))+")"
  else
    caption 0,"Enter mémo "+time$+" ("+trim$(text$(101))+") ("+trim$(text$(102))+")"
  end_if
  return

mouse_exit_memo:
  color 1,255,255,255
  font_color 1,0,0,0
  if langage$="FR"
    caption 0,"Sortie mémo "+time$+" ("+trim$(text$(101))+") ("+trim$(text$(102))+")"
  else
    caption 0,"Exit mémo "+time$+" ("+trim$(text$(101))+") ("+trim$(text$(102))+")"
  end_if
  return

mouse_enter_rect:
  if langage$="FR"
    caption 0,"Entrée picture "+time$+" ("+trim$(text$(101))+") ("+trim$(text$(102))+")"
  else
    caption 0,"Enter picture "+time$+" ("+trim$(text$(101))+") ("+trim$(text$(102))+")"
  end_if
  return

mouse_exit_rect:
  if langage$="FR"
    caption 0,"Sortie picture "+time$+" ("+trim$(text$(101))+") ("+trim$(text$(102))+")"
  else
    caption 0,"Exit picture "+time$+" ("+trim$(text$(101))+") ("+trim$(text$(102))+")"
  end_if
  return


' DefineMouseOver:
' P1 = le numéro d'objet à surveiller
' P2 = le numéro du bouton fictif qui sert de relais/déclencheur (çà c'est pas encore trop dur à comprendre Laughing )
' P3 = la variable de retour pour l'objet dans lequel se trouve la souris
' P4 = la variable de retour du type d'évènement en cours
sub DefineMouseOver(obj%,btn%,edt%,act%)
  ClickSetHook(obj%,edt%)
  ClickSetLink(btn%,act%)
end_sub

' DefineMouseOverRect:
' P1 = le numéro d'objet à surveiller
' P2 = le numéro du bouton fictif qui sert de relais/déclencheur (çà c'est pas encore trop dur à comprendre Laughing )
' P3 = la variable de retour pour l'objet dans lequel se trouve la souris
' P4 = la variable de retour du type d'évènement en cours
sub DefineMouseOverRect(obj%,btn%,edt%,act%,x%,y%,w%,h%)
  ClickSetHook(obj%,edt%)
  ClickSetLinkRect(btn%,act%,x%,y%,w%,h%)
end_sub

#INCLUDE "KGF_SUB.bas"


Attention: ceci n'est PAS un poisson d'avril !
Revenir en haut Aller en bas
http://klauspanoramic.comxa.com/index.html
Jicehel

Jicehel


Nombre de messages : 5947
Age : 51
Localisation : 77500
Date d'inscription : 18/04/2011

2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Empty
MessageSujet: Re: 2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect   2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect EmptyLun 1 Avr 2013 - 11:47

Excellent, j'aurais pu m'en servir dans mon menu. Là, je l'avais fait à l'ancienne Wink
(Ne pas chercher à utiliser le menu, je n'ai programmer que le 6 pour quitter. Je suis un gros fainéant et je ne prends pas de temps pour le faire, mais j'avancerais plus tard Wink sans doute ... Smile )
(J'ai viré le code par ce que je pense que je suis hors sujet là quand même ...)


Dernière édition par Jicehel le Lun 1 Avr 2013 - 13:55, édité 1 fois
Revenir en haut Aller en bas
Yannick




Nombre de messages : 8611
Age : 53
Localisation : Bretagne
Date d'inscription : 15/02/2010

2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Empty
MessageSujet: re   2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect EmptyLun 1 Avr 2013 - 13:15

Es tu sûr d'avoir mis en ligne KGF.dll....
Je vois toujours 29/03/2013 9h... dans la colonne Modified...


Edit : Les autres sont bien datés du 01/04/2013


Dernière édition par ygeronimi le Lun 1 Avr 2013 - 13:21, édité 1 fois
Revenir en haut Aller en bas
Klaus

Klaus


Nombre de messages : 12301
Age : 75
Localisation : Ile de France
Date d'inscription : 29/12/2009

2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Empty
MessageSujet: Re: 2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect   2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect EmptyLun 1 Avr 2013 - 13:20

Quand tu as raison, tu as raison ! Mais voilà qui est corrigé...
Revenir en haut Aller en bas
http://klauspanoramic.comxa.com/index.html
Yannick




Nombre de messages : 8611
Age : 53
Localisation : Bretagne
Date d'inscription : 15/02/2010

2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Empty
MessageSujet: re   2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect EmptyLun 1 Avr 2013 - 13:22

Merci Klaus !

Voilà qui va simplifier le schmilbilibililick... Laughing
Revenir en haut Aller en bas
Contenu sponsorisé





2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Empty
MessageSujet: Re: 2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect   2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect Empty

Revenir en haut Aller en bas
 
2.09 du 1er Avril 2013 - nouvelle fonction SetClickLinkRect
Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» 2.20 du 26 avril 2013: correction de SerachStringList
» 2.21 du 26 avril 2013: correction de SerachStringList
» 2.19 du 24 avril 2013: amélioration de SearchStringList
» 2.22 du 27 avril 2013: correction dans SearchStringList
» 2.23 du 28 avril 2013: correction bug dans SearchStringList

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
FORUM DE DISCUSSION SUR LE LANGAGE PANORAMIC :: Activité des sites créés par les Panoramiciens. :: Le site de Klaus-
Sauter vers: