Page 1 of 1
Set Window Class of Rev app on Windows?
Posted: Tue Dec 15, 2009 9:29 pm
by Garrett
Is there any way to set the "Windows Class" name of my rev app on Windows?
Thanks,
~Garrett
Re: Set Window Class of Rev app on Windows?
Posted: Sat Dec 19, 2009 7:16 pm
by Mark
Garrett,
From the MS site:
A window class is a set of attributes that the system uses as a template to create a window. Every window is a member of a window class. All window classes are process specific.
Can you be more specific?
If you mean the style of the window, check out the toplevel, palette, modal and modeless commands. You might also want to read about the decorations property.
Best,
Mark
Re: Set Window Class of Rev app on Windows?
Posted: Sat Dec 19, 2009 8:09 pm
by Garrett
I'm referring to it's process class name, similar to it's process ID. Where if you were seeking the process of a program on windows you would see a class name of say ##MyAppClassNameHere.
Rev made apps all have the same process class name of ##MCWinClassW and I need to be able to change that to something of my choosing in order to complete a project here. I need to use an external program I've made to interact with my Rev made app, and it requires me to use the class name of my Rev app instead of window title or process id. Unfortunately, if the class name is the same on all Rev apps, then this will conflict what I'm trying to do as my external program may use the wrong Rev made program.
Thanks,
~Garrett
Re: Set Window Class of Rev app on Windows?
Posted: Sat Dec 19, 2009 11:06 pm
by Mark
Garrett,
I don't think this is currently possible, except for the features currently already provided by RunRev (window style, decorations).
Edit: are you making an external? I think you asked in the wrong section. If you ask the question in the right place, there is a better chance to get an answer.
Best,
Mark
Re: Set Window Class of Rev app on Windows?
Posted: Sun Dec 20, 2009 4:59 am
by Garrett
Thanks Mark.
No, I couldn't even come close to making an external for Rev. What I was making is menu bar that stretches across the top length of my desktop. Each menu would have items to launch. Basically, a replica of an old program called "AppBar" by Mike Perham. I believe he orginally started his on Windows 3.x and finished off his last version on Windows 95. To this day his program still runs, even on Windows 7 64bit.
Here's his old page for his program where you can see screenshots of his appbar.
http://www.cs.cornell.edu/mperham/appbar/
But I've been so hell bent on making a more modern version that it's taking me a few years to get this far. It's always one thing or another that blocks me or sets me back
The problem I was having recreating this in Rev is the "appbar" mode where the desktop and windows are bound outside of your app's dimensions. So if my menu bar sits at the top of the screen and say you maximize notepad, it does not cover my menu bar like it doesn't cover the task bar below. Rev itself does not have the means to incorporate this ability, but I do have another little programming language that I use that is capable of providing this ability, as well, it can pass this ability on to other windows made in whatever programming language. All that is needed is the windows class name of the window that I want to work with. I can right now do this as I want, but the problem is that all Rev made apps use the same windows class name, which means my program may inadvertently pick the wrong window and turn it into an appbar on the desktop.
I have two other languages that I use that are capable of managing the appbar work also and may be able to work with the Rev window using it's process id, but they may not.. Have to look into them further.