Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 1 Jahr, 7 Monaten
Letzter Beitrag:
vor 1 Jahr, 7 Monaten
Beteiligte Autoren:
Noel Tanti, GuenterP

repositional notes

Startbeitrag von Noel Tanti am 19.10.2016 09: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

Antworten:

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.

von GuenterP - am 19.10.2016 11:41
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

von Noel Tanti - am 19.10.2016 12:01
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.