Hi guys,
This is my Template64 project for young MASM beginners, still under development.
If you select ribbon-File, you will see "Recent documents".
I need some clue about the algo and/or code of this module.
Thanks!
We'd like to see some code here, not just an .exe.
Lingo posting executables :greensml:
The size of the file tells me its not assembler
IDA64 is your friend. :smiley:
OK, so I took a chance and ran the program. It seems to be an editor?
However, writing some text, inserting an image and saving it (as a .rtf) just saves a plain text file, no image - not even rich text.
How is it a template?
Thanks sinsi,
It is still not ready for Testing, and I will ask for testing when I'm ready.
I was hoping someone might give me some help
Thank you in advance. :thumbsup:
What kind of help do you want?
If it concerns your code, then nobody can help you unless you post at least some of your damn code. We're not mind readers here, you understand.
We cannot give you any help from just your executable.
You haven't been specific at all on just what you need help with.
Work with us and you'll get some help.
Here are a couple links regarding a MRU list in an editor.
Quote from: jjAttached a little demo project; I'd like to get some feedback on the behaviour of the MRU menu.
https://masm32.com/board/index.php?msg=79557 (https://masm32.com/board/index.php?msg=79557)
Quote from: jjThe source is 125 lines short. Features:
- mru (most recently used) files (a feature I definitely miss in QEditor)
https://masm32.com/board/index.php?msg=125007 (https://masm32.com/board/index.php?msg=125007)
Have Phun. :biggrin:
No charge jj, for the referral. :tongue:
Thank you
NoCforMe,
Quoteby NoCforMe: Work with us and you'll get some help.
I tried on these 3 pages as well as my first post on this forum about "
Shortcut". Then
you and
zedd151 sent me to
JJ. He was kind enough to send me to school to learn a new language
(a dialect of Basic).
So the result of this "
Work with us and get help" is
null. I'm sorry!
From these 3 pages, only
JJ knows about MRU because he used it in his editor.
Unfortunately his MRU is for regular menu.
My MRU will be for Ribbon, which is a mixture of two parts:
MRU class plus
Ribbon class.
Biterider has a
ribbon example, but without MRU. He also has a good description of
red-black trees.
I use 3 red-black trees as a database to quickly search and highlight service words.
A ribbon is a collection of C++ classes.
Based on your nickname and the picture below, it seems that this is not your preferred language. :biggrin:
Thank you
zedd151,
Quoteby jj: Attached a new version of my simple multilingual editor. Building requires MasmBasic of 7 November 2023
Please, don't send me again back to school. :badgrin:
Sorry 'bout that. Not a lot of folks around here had done much MRU work that I know of, except jj2007. And I have no clue what a 'ribbon' is, and doubt I will ever really need to know. Sorry I could'nt find anywhere on the forum the help that you seek. But, I tried. Personally I don't have much use for an MRU, so never learned how to code for one. (It can't be that hard, though) My editors that I had created are basically modeled after qEditor, or are very similar to it. A plain old ascii text editor, without any bells and whistles. Just a tool that gets the job done. :smiley:
Perhaps if you post or attach the code you have started, someone here might be able to assist you in getting the end result you desire regarding the MRU. No one is going to write it for you, but they may offer help to finish what you have already started.
Ognil,
I have done what you asked and have attempted to tidy this thread up to TRY and keep it 'on focus' but that undoubtedly, will NOT happen, if (after a couple of posts by members actually being very specific about helping), you make a post like your last post,... in effect being Critical and making assumptions about the other members knowledge and skill etc.
QuoteI tried on these 3 pages as well as my first post on this forum about "Shortcut"
Personally, I find your initial post to be somewhat Cryptic and does Not clearly delineate exactly What you are looking for help on,... specifically. I also see NO previous reference to ... 'Shortcut' ???
Quoteonly JJ knows about MRU because he used it in his editor.
Hmmm, that's
quite a statement to suggest about the 'unknown' possible knowledge of a Lot of members, including those directly involved in this thread !!
NOT a great way to illicit help, by suggesting
no one knows, what,.. apparently you
don't either.
I'd probably be somewhat loathe to help you as well,.. after your suggestion that ONLY jj knows etc.
May I suggest if you REALLY Do need help in this matter, you could do yourself a great service and possibly avail yourself of other members knowledge by being somewhat more creative, reserved and less critical and dismissive of other members in your responses and replies.
Perhaps No one can help but I doubt you'll find out if you aren't prepared to get creative and work With those trying to help.
:smiley:
Look, a MRU (most recently-used) list isn't rocket science.
As the name suggests, it's just a list of the n most-recently-used files used by the application (where n is set by the application--the number of MRUs). So far as I know, there's no standard way to implement this (though there may be some ready-made APIs for it).
All you need to do is to maintain a list of files opened by the app, and display them for the user to select from, usually under the File menu.
There are a couple of ways to store and retrieve this information: using a configuration file (my preference), usually kept in the same folder as the application executable, or in the registry (ugh! not my preference, but some people prefer that).
The MRU list is usually limited to some small fixed number of entries. Some applications allow you to set this number (up to a limit) as an option.
That pretty much covers it. Any more questions?
MRU easy
Ribbon complicated (https://masm32.com/board/index.php?msg=73864)
Thank you Admin,
Please change your plea to not guilty because ognil always tells the truth. :biggrin:
https://masm32.com/board/index.php?topic=12267.0 (https://masm32.com/board/index.php?topic=12267.0) :thumbsup:
Fine,.. Now that you have posted a link,.. simply Writing the highlighted Word 'Shortcut' doesn't really make anything clear :smiley:
Thank you
sinsi, :thumbsup:
Biterider's example has
no MRU and use only Basic Controls - Buttons.
It uses IUICommandHandler interface -> Execute method
to send a SendMessage for each pressed button.
I use more:
- Basic Controls - Buttons
- Container Controls
- Specialized Controls -
Font ControlQuoteRibbon framework provides a specialized Font Control that exposes a wide range of font properties such as typeface name, style, point size, and effects.
The Font Control is a composite control that consists of buttons, toggle buttons, drop-down list boxes, and combo boxes, all of which are used to specify a particular font property or formatting option.
https://learn.microsoft.com/en-us/windows/win32/windowsribbon/windowsribbon-introduction (https://learn.microsoft.com/en-us/windows/win32/windowsribbon/windowsribbon-introduction)
https://learn.microsoft.com/en-us/windows/win32/uxguide/cmd-ribbons (https://learn.microsoft.com/en-us/windows/win32/uxguide/cmd-ribbons %20:smiley:) :smiley:
PS:The Font control sends
WM_NOTIFY -> EN_SELCHANGE to the main window when some of its attributes change.
The main window returns confirmation back to the Font control.
It clears the Rich Edit control, including the standard Line numbers
and overwrites it with the already modified CharFormat2 structure, but without the Line numbers.
Тhis necessitated the inclusion of a second Rich Edit control (synchronized with the first) just for the Line numbers.
Ah, so your questions are really about the ribbon, not the MRU. Now we're getting somewhere.
My suggestion is to move this to the Windows API sub-forum below this one, because that's where we deal with Windows OS user interface-specific questions like this. (I have to plead ignorance on my part; I know nothing about Windows ribbon controls. Here's a starting point (https://learn.microsoft.com/en-us/windows/win32/windowsribbon/-uiplat-windowsribbon-entry) in the Microsoft Learn document repository to read about this "framework", if that helps.)
BTW, I would also say that this is definitely not an appropriate thing for examples for n00bs. The ribbon "framework" is pretty complex stuff, not what you'd want to spring on someone just starting out coding.
Thank you NoCforMe, :badgrin:
Almost all MS programs use ribbon menus and I think it's good for young programmers to use them too.
Old programmers who don't like ribbons can use the menu button to switch to the standard menu. :biggrin:
It's not a matter of liking or not liking them; it's that they're complicated, as you yourself have discovered. Not really entry-level programming stuff.
Quoteby NoCforMe: Not really entry-level programming stuff.
It just depends on the level of the teachers.
I studied red and black trees and ribbons with C++ in university.
Quote from: ognil on October 06, 2024, 07:27:47 AMQuoteby NoCforMe: Not really entry-level programming stuff.
It just depends on the level of the teachers.
I studied red and black trees and ribbons with C++ in university.
perfect! I only studied 'yellow ribbons' and 'old oak trees'. :biggrin:
So, I'll get on the bus - forget about us, and put the blame on me..... :joking:
tie a yellow ribbon round the old oak tree (https://m.youtube.com/watch?v=PxG9XFqHSFw&pp=ygUVdG9ueSBvcmxhbmRvIGFuZCBkYXdu)
Thank you
zedd151,Quote"Put the blame on me. If I don't see a yellow ribbon round the old oak tree. Now the whole damn bus is cheering. And I can't believe I see a hundred yellow ribbons 'round the old oak tree"
How much do you have to drink to see "hundred yellow ribbons 'round the old oak tree" when there aren't actually any? :badgrin: :badgrin: The music is trivial country style.
I prefer something with a high volume of voices: https://www.youtube.com/watch?v=duFk5QKFMrg (https://www.youtube.com/watch?v=duFk5QKFMrg)
Quote from: ognil on October 06, 2024, 08:42:23 AMThank you zedd151,
Quote"Put the blame on me. If I don't see a yellow ribbon round the old oak tree. Now the whole damn bus is cheering. And I can't believe I see a hundred yellow ribbons 'round the old oak tree"
:biggrin: Glad you liked it. :tongue:
Quote from: ognil on October 06, 2024, 07:27:47 AMI studied red and black trees and ribbons with C++ in university.
For those of you wondering what the hell red-and-black trees are, here's a pretty good explanation (https://www.programiz.com/dsa/red-black-tree).
QuoteThe music is trivial country style.
Trivial 'Country Style' it may be but I'd sure be very happy to have the amount of money the Royalties for that song would have put in my bank account !! :joking:
Also: Small request, .... if you intend to Post Screen-Shots etc as 'Attachments', loaded to the server, can you please reduce their overall Pixel count and Byte size, prior to posting ??
416.66 KB, 2780 x 1478 sized images are excessive and unnecessary !! I have replaced the original image with an 800 x 425 142.9 KB version. Hopefully that is still large enough, if not I can replace it with a 1024 x 544 version.
Thanks :cool:
I use TV 55" Samsung QLED 4K, 4096 x 2160 as a monitor with Screen refresh rate: 60 Hertz,
so the picture size and quality are normal for it.
Thank you for your time and effort for the resizing.
"Ants on the back"? Now I'm really curious. Not disputing you, just curious.
electrocuted "ants on the back" of a power point (https://www.reddit.com/r/Adelaide/comments/y9c3if/electrocuted_ants_on_the_back_of_a_power_point_at/)??? quotation marks mine. Reddit via a google search
Just going with the flow of the conversation...
I don't think so.
Why does music give me goosebumps"?
It is known that listening to music can cause goosebumps and activate the reward system:
first pleasure increases and dopamine is released in the
caudate nucleus of the brain, then it reaches a peak and dopamine is released in the
nucleus accumbens, which causes goosebumps.
It has special name -
frisson, which translated from French means "trembling", "shudder".
Frisson is a pleasant feeling, and music is one of the main reasons for its occurrence.
In Russian:
QuoteОт этой песни мурашки по спине
https://www.youtube.com/watch?v=8cxcLOTPWn8 (https://www.youtube.com/watch?v=8cxcLOTPWn8)