PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → repositional notes
repositional notes
Iniciado por guest, 19,oct. 2016 11:38 - 2 respuestas
Publicado el 19,octubre 2016 - 11:38
Hi All

I have a use for these type of notes and would like to know if there is a demo app. I cannot find one but perhaps I am missing it.

Thanks
Noel
Publicado el 19,octubre 2016 - 13:41
Hi Noel,

in fact, there are two repositional note controls! Imho the repositional note control for developers is unusable, the process "closing repos. note control" is missing, so it will always come up with the text contents you've had last time. I believe in a correction of that - never give up ...

To a certain extent usable is the AAF repositionable control, you have just to take care of deleting the menu.note file if there's no open repos. note with text content.

// Open the window (main menue named MENU)
// read and display the post-its
IF fFileExist(MyINIFileDirectory+"\menu.wdnote") THEN
WinEdLoad(menu,MyINIFileDirectory+"\menu.wdnote")
END

// close the window
// Save Repositionable Notes to menu.wdnote
WinEdSaveNote(MyINIFileDirectory+"\menu.wdnote",menu)

// make a new repos. note (button)
AAFExecute(menu,aafRepositionableNote)

// minimize all repos notes (button)
ix is int = 1
ResControl is string
ResControl = EnumControl(menu, ix)
WHILE ResControl <> ""
IF Left(ResControl,7) = "My note" THEN
{ResControl, indControl}..Minimized = True
END
ix++
ResControl = EnumControl(menu, ix)
END


// show all repos. notes (button)
ix is int = 1
ResControl is string
ResControl = EnumControl(menu, ix)
WHILE ResControl <> ""
IF Left(ResControl,7) = "My note" THEN
{ResControl, indControl}..Minimized = False
END
ix++
ResControl = EnumControl(menu, ix)
END


Downside is: you cannot choose the default font name / font size / font color of the AAF repos. note.
Publicado el 19,octubre 2016 - 14:01
Hi Guenter

Will take your suggestion and leave it up to the user to do it.
If in WD2? there will be a close function then I will look at it again.

Thanks
Noel