PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Mouseover Organizer Control in windev
Mouseover Organizer Control in windev
Iniciado por guest, 25,ene. 2015 09:41 - 6 respuestas
Publicado el 25,enero 2015 - 09:41
Hi,

When mouse over any Organizer Event in windev,
it will always show the START to END TIME and Category text..

How do i change the text within as i want to show more details ?

Regards,

PETER ZHOU
Publicado el 25,enero 2015 - 20:30
Hi Peter,

If you look at the organizer example then you can see that it is all adjustable. You have to do it all by programming witch is a lot more work but then you get control you need

For instance showing the name of the employee etc.

Regards
Allard
Publicado el 26,enero 2015 - 09:16
YES..it's in the WINDEV Organizer example that i saw the mouse over where it's showing the start to end time with the title..but i dont know where to modify the code.

Regards,

PETER ZHOU
Publicado el 26,enero 2015 - 14:11
Hi Peter,

I suppose it's equal to the planner control.
You can fill the planner control by code and then fill the MyAppointment.Tooltip variable with any value you want. If you fill the control via a linked file or query, I think you can change the inividual items by code after filling the control.
Publicado el 28,enero 2015 - 08:17
Hi Stefan,

>You can fill the planner control by code and then fill the MyAppointment.Tooltip variable with any value you want.

That's what i though...but i cannot fill any .tooltip used in the coding of this example
i am not sure how it can show the message when mouse over.

Regards,

PETER ZHOU
Publicado el 28,enero 2015 - 08:46
Hello Peter

Here is the portion of code that i use to load an agenda reading data from a MySql Database.
I hope it will be of some help to you.

sSql is string
dsMyAgenda is Data Source
bRes is boolean
bDati is boolean
MioAppto is Appointment


EDT_Medico=COMBO_Medici.COL_Cognome+" "+COMBO_Medici.COL_Nome

OrganizerDeleteAll(ORG_Organizer1)

IW_InternalWindow1..Visible=True
SWITCH COMBO_TipoAgenda
CASE 1
sSql="SELECT * FROM appuntamenti WHERE app_fisio="+COMBO_Medici.COL_Id
CASE 2
sSql="SELECT * FROM appuntamenti WHERE app_medico="+COMBO_Medici.COL_Id
CASE 3
sSql="SELECT * FROM appuntamenti WHERE app_strumento="+COMBO_Medici.COL_Id

OTHER CASE

END

bRes=HExecuteSQLQuery(dsMyAgenda,hQueryDefault,sSql)
IF bRes THEN
bDati=HReadFirst (dsMyAgenda)
IF bDati THEN
WHILE NOT HOut (dsMyAgenda)
IF dsMyAgenda.app_id_paz > 0
HReadSeek (pazienti,paz_id,dsMyAgenda.app_id_paz)
gnIdPaziente=dsMyAgenda.app_id_paz
MioAppto..Title=pazienti.paz_cognome+" "+pazienti.paz_nome
ELSE
gnIdPaziente=0
MioAppto..Title=""
END
MioAppto..ID=dsMyAgenda.app_id
MioAppto..StartDate=dsMyAgenda.app_Startdate
MioAppto..EndDate=dsMyAgenda.app_Enddate
MioAppto..Content=dsMyAgenda.app_des
SWITCH COMBO_TipoAgenda
CASE 1
MioAppto..Author=dsMyAgenda.app_fisio
CASE 2
MioAppto..Author=dsMyAgenda.app_medico
CASE 3
MioAppto..Author=dsMyAgenda.app_strumento
END
MioAppto..Guest=dsMyAgenda.app_id_paz
MioAppto..Category=dsMyAgenda.app_categ
MioAppto..ToolTip="Id App.to: "+dsMyAgenda.app_id+CR+dsMyAgenda.app_des+CR+CR
MioAppto..ToolTip+="Inizio Ore: "+TimeToString(MioAppto..StartDate..Time,"HH:MM")+CR+CR+"Durata: "+dsMyAgenda.app_durata+" minuti"
//hreadseek (CategAppti,categ_id,dsmyagenda.app_categ)
//if hfound (CategAppti) THEN
SWITCH dsMyAgenda.app_Categ
CASE 5
MioAppto..BrushColor=YellowToolhelp
CASE 8
MioAppto..BrushColor=PastelYellow
CASE 9
MioAppto.BrushColor=LightRed
END
OrganizerAddAppointment(ORG_Organizer1,MioAppto)
HReadNext (dsMyAgenda)
END
END
END
Publicado el 28,enero 2015 - 10:27
Peter,

every appointment is in fact an internal window . You can include this window in the project and then customize whatever you need.
Add icons, change colors based on specific needs.

This window gets your appointment variable and therefore also some kind of ID (dsMyAgenda.app_id). With this ID you can write code as a lookup for some specific checks.
Be aware of the fact that this code is run for every appointment when it is is redrawn. When you add too much code it will slow down your window.