Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/bbcode.php on line 483

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3729: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3731: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3732: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3733: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
ubercode.com • View topic - taskbar display

taskbar display

Make suggestions of things to add or change in Ubercode.

taskbar display

Postby onykage on Tue Jan 11, 2011 9:17 pm

The program should always showup on the taskbar whether it is visible or not.

For example:

In this example, the main program window will load but will not be triggered to be visible because its going to wait for "Dialog1" to hide before it will become visible because main is a parent dialog and it is modal while Dialog1 is not a parent dialog and it is modal.

Code: Select all
//modal_example.rc
#define Pushbutton1 100

Main DIALOG 405,212,240,160
CAPTION 
"Main"
FONT 8,"Microsoft Sans Serif"
STYLE WS_CAPTION|WS_SYSMENU|DS_CENTER|DS_MODALFRAME
BEGIN
END

Dialog1 DIALOG 567
,178,240,160
CAPTION 
"Dialog1"
FONT 8,"Microsoft Sans Serif"
STYLE WS_POPUP|WS_CAPTION|WS_SYSMENU|DS_CENTER|DS_MODALFRAME
BEGIN
    PUSHBUTTON     
"Pushbutton1",Pushbutton1,90,137,55,15
END

//modal_example.cls
Ubercode 1 class modalexmaple

public callback function Dialog1
(in EventId:integer ControlObj:control Key:integer out Cancel:boolean)

public callback function main(in EventId:integer ControlObj:control Key:integer out Cancel:boolean)
code
  select EventId
  case LOAD_EVENT 
=>
      call setFontsize(main, 24)
       call drawText(main, "Main Window", 0, 0, 240, 160, DRAW_CENTER)
       call load(Dialog1)
       call show(Dialog1, 1)
  case COMMAND_EVENT =>
  case CHANGE_EVENT =>
  case UNLOAD_EVENT =>
  end select
end function

public callback function Dialog1
(in EventId:integer ControlObj:control Key:integer out Cancel:boolean)
code
  select EventId
  case LOAD_EVENT 
=>
      call setFontsize(Dialog1, 24)
      call drawText(Dialog1, "Modal Window", 0, 0, 240, 160, DRAW_CENTER)
  case COMMAND_EVENT =>
      if ControlObj = Dialog1.Pushbutton1 then
           call hide
(Dialog1)
       end if
  case CHANGE_EVENT 
=>
  case UNLOAD_EVENT =>
       call halt()
  end select
end function

end class
 


I think this was a bug that I mentioned before and you asked me to recreate it for you.
onykage
Admin
 
Posts: 221
Joined: Sat Jan 03, 2009 8:28 pm
Location: Armpit USA
Programming languages: php, java, python, ubercode, easyuo, peril, cobal, pascal, ruby

Re: taskbar display

Postby ubercode on Fri Jan 14, 2011 8:19 pm

Thanks for reducing it to a reasonable size example - that is a great help. I took a quick look and first I have one question (2 really):

Are you wanting Main to be non-visible until Dialog1 is hidden?

And if so, why? I am trying to understand better what you want to happen.
ubercode
Site Owner
 
Posts: 275
Joined: Sun Jan 04, 2009 3:46 pm
Location: UK Channel Islands


Return to Language Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron