Hi,
If you made the Sapien Tech comment header in each Powershell 2.0 script use the new multiline comment format:-
<#
blah blah
yadda yadda
#>
Then we would instantly be able to fold it and gain more code space on the screen whilst retaining it in the script.
Regards,
Stuart
Search found 45 matches
- Fri Jul 29, 2011 7:28 pm
- Forum: PrimalForms
- Topic: Sapien Technologies Comment Header
- Replies: 0
- Views: 2305
- Tue Jul 26, 2011 8:45 am
- Forum: PrimalForms
- Topic: calling a click event
- Replies: 2
- Views: 2645
calling a click event
Hi Boyds4, Try:- $button1_Click={ $a = "Test" $textbox1.Text = $a $form1.Refresh() sleep -Seconds 2 if ( $a -match "Test") { &$button2_Click } } $button2_Click={ $textbox1.Text = "..from button2_click!" } Use the & to "call" the desired scriptblock. Pa...
- Mon Jul 25, 2011 10:25 am
- Forum: PrimalForms
- Topic: Variables not being passed from functions
- Replies: 6
- Views: 3816
Variables not being passed from functions
For free Powershell e-Books try:- http://powershell.com/cs/blogs/ebook/ and http://rkeithhill.wordpress.com/2009/03/08/effective-windows-powershell-the-free-ebook/ and http://Sapien.Com/Downloads Where I think you should be able to find a copy of the finest (bar one) Powershell 1.0 book -> TFM. I'm ...
- Mon Jul 25, 2011 7:53 am
- Forum: PrimalForms
- Topic: Variables not being passed from functions
- Replies: 6
- Views: 3816
Variables not being passed from functions
Hi Boyds4, function trythis { $script:msg = "try this" } function showmsg { trythis $msg = $msg + " now" write-host "$msg" } showmsg Check out information on "variable scope" and the "return" keyword. I recommend the Keith Hill "Effective Powers...
- Sat Jul 23, 2011 11:54 pm
- Forum: PrimalForms
- Topic: Feature Request: Dynamic Panels
- Replies: 3
- Views: 2913
Feature Request: Dynamic Panels
+1 for this very good idea. I always seem to be wrestling with panel content and position. Being able the save a layout template would improve productivity.
Stuart
Stuart
- Fri Jul 22, 2011 6:50 pm
- Forum: PrimalForms
- Topic: Output pane issue.
- Replies: 1
- Views: 1550
Output pane issue.
Hi,
Running latest version on W7 Enterprise as Admin.
Whenever I try to change the 'Output' pane from docked to 'Autohide' I get this:
I can choose ignore and carry on regardless but it would be nice if it didn't happen. PrimalForms 2009 didn't do this. Advice appreciated.
Thanks,
Stuart
Running latest version on W7 Enterprise as Admin.
Whenever I try to change the 'Output' pane from docked to 'Autohide' I get this:
I can choose ignore and carry on regardless but it would be nice if it didn't happen. PrimalForms 2009 didn't do this. Advice appreciated.
Thanks,
Stuart
- Fri Jul 22, 2011 6:44 pm
- Forum: PrimalForms
- Topic: Primal Forms 2011 Customisation Options
- Replies: 14
- Views: 7518
Primal Forms 2011 Customisation Options
Eventually got to the bottom of this. My default Powershell console had a screen height buffer of 1000. As soon as I changed it to 200 the problem vanished.
Regards,
Stuart
Regards,
Stuart
- Wed Jun 01, 2011 9:07 pm
- Forum: PrimalForms
- Topic: Primal Forms 2011 Customisation Options
- Replies: 14
- Views: 7518
Primal Forms 2011 Customisation Options
David,
As requested:
Regards,
Stuart
As requested:
Regards,
Stuart
- Wed Jun 01, 2011 10:59 am
- Forum: PrimalForms
- Topic: Primal Forms 2011 Customisation Options
- Replies: 14
- Views: 7518
Primal Forms 2011 Customisation Options
Microsoft Windows 7 Enterprise.
Version 6.1.7600 (Build 7600).
I have two laptops:-
A Lenovo T400 for work which is the machine this problem is happening on.
A 2011 Macbook Pro running W7 Ultimate in Parallels. I've not tried changing the editor background on that machine yet.
Regards,
Stuart
Version 6.1.7600 (Build 7600).
I have two laptops:-
A Lenovo T400 for work which is the machine this problem is happening on.
A 2011 Macbook Pro running W7 Ultimate in Parallels. I've not tried changing the editor background on that machine yet.
Regards,
Stuart
- Wed Jun 01, 2011 9:43 am
- Forum: PrimalForms
- Topic: Primal Forms 2011 Customisation Options
- Replies: 14
- Views: 7518
Primal Forms 2011 Customisation Options
Thanks for the speedy response. Regarding the console background colour being changed, I appreciate your point about it not being connected. It certainly seemed to be connected on this machine. The console background colour defaulted to blue the moment I changed the editor background to black. As it...