|
-
Oct 30th, 2000, 03:47 PM
#1
I am in the process of making a custom button, and in the resize event, I only want to perform a redraw when in design time. If the button is running in the compiled program, I want it to ignore the command. Is there any way to distinguish between design time and run time in a control?
Thanks,
Jordan
-
Oct 30th, 2000, 03:53 PM
#2
Frenzied Member
hmm, sounds stupid but can't you just comment out the sub before compiling it and decomment it when using in runtime eviroment?
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 30th, 2000, 04:01 PM
#3
Yes, but I was just wondering if there was any way to distinguish between design time and runtime in a control so that I don't have to manually comment and decomment every time.
-
Oct 30th, 2000, 04:19 PM
#4
transcendental analytic
Code:
If UserControl.Ambient.UserMode then
'Runtime code
else
'Designtime code
end if
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 30th, 2000, 04:53 PM
#5
They don't call em guru's for nothing. Thanks Kedaman.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|