Hi all,
As I want to add a statusbar to show the x,y coordinates of an image on a panel/dialog.
But I find panel not include the function of SetStatusBar that I found in frame and I dun want to change the structure of it from dialog to frame.
Is there any other appropriate method to show the instant coordinates?
Thanks!
Brs,
Kanis
1 2077
Hi all,
As I want to add a statusbar to show the x,y coordinates of an image on a panel/dialog.
But I find panel not include the function of SetStatusBar that I found in frame and I dun want to change the structure of it from dialog to frame.
Is there any other appropriate method to show the instant coordinates?
Thanks!
Brs,
Kanis
Panels don't own status bars, frames do: - #Boa:Frame:Frame1
-
-
import wx
-
-
def create(parent):
-
return Frame1(parent)
-
-
[wxID_FRAME1, wxID_FRAME1STATUSBAR1,
-
] = [wx.NewId() for _init_ctrls in range(2)]
-
-
[wxID_FRAME1MENU1ITEMS0] = [wx.NewId() for _init_coll_menu1_Items in range(1)]
-
-
class Frame1(wx.Frame):
-
def _init_coll_menuBar1_Menus(self, parent):
-
# generated method, don't edit
-
-
parent.Append(menu=self.menu1, title='Menus0')
-
-
def _init_coll_menu1_Items(self, parent):
-
# generated method, don't edit
-
-
parent.Append(help='', id=wxID_FRAME1MENU1ITEMS0, kind=wx.ITEM_NORMAL, text='Items0')
-
self.Bind(wx.EVT_MENU, self.OnMenu1Items0Menu, id=wxID_FRAME1MENU1ITEMS0)
-
-
def _init_utils(self):
-
# generated method, don't edit
-
self.menu1 = wx.Menu(title='')
-
-
self.menuBar1 = wx.MenuBar()
-
-
self._init_coll_menu1_Items(self.menu1)
-
self._init_coll_menuBar1_Menus(self.menuBar1)
-
-
def _init_ctrls(self, prnt):
-
# generated method, don't edit
-
wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt, pos=wx.Point(110, 110),
-
size=wx.Size(400, 250), style=wx.DEFAULT_FRAME_STYLE, title='Frame1')
-
self._init_utils()
-
self.SetClientSize(wx.Size(392, 223))
-
self.SetMenuBar(self.menuBar1)
-
-
self.statusBar1 = wx.StatusBar(id=wxID_FRAME1STATUSBAR1, name='statusBar1', parent=self,
-
style=0)
-
self.statusBar1.SetStatusText('')
-
self.SetStatusBar(self.statusBar1)
-
-
def __init__(self, parent):
-
self._init_ctrls(parent)
-
-
def OnMenu1Items0Menu(self, event):
-
event.Skip()
-
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Tonya |
last post by:
Hi,
Does anyone know how i can add controls to a progress bar.
I have searched the internet but could not find any
examples.
what i want to...
|
by: Job Lot |
last post by:
In my custom status bar control I have a status bar panel which is added to
status bar when control is initialized
Private m_StatusBarPanel As...
|
by: Oleg Medyanik |
last post by:
Hi,
faced the following problem.. (NET 1.1)
Steps to reproduce -
1.Create New Windows Forms Application
2. Add StatusBar and set ShowPanels =...
|
by: Ahmet |
last post by:
In my application, I have statusbar on which i show icons.
On some cases, I have to change icon of my statusbar to show
different messages on...
|
by: TonyM |
last post by:
Hi all,
I have an application with a few different Windows forms. I am trying to
update a statusbar panel's text that is in the main form, from...
|
by: Nicolas |
last post by:
When I resize (Enlarge) the form while the progress bar is running the
rectangle drawing is not going to the end of the rectangle?
I got a form...
|
by: EricJ |
last post by:
Hi
I'm having trouble getting icons from an imagelist in a statusbar panel.
if i load the icons directly it works
Dim ico As new ...
|
by: Geoff |
last post by:
I would like to have a status bar which has a few panels,
one of which I want to display a different .gif under
different conditions. I have added...
|
by: Fred Morrison |
last post by:
OK, the direct method of setting the background color on a text-only (no
panels) statusbar control seems to fail:
Me.StatusBar1.Text =...
|
by: Anony |
last post by:
Hi All,
I have two icons:
Private micoIcon1 As New
System.Drawing.Icon(System.IO.Path.Combine(Application.StartupPath,
"Icon1.ico"))
Private...
|
by: concettolabs |
last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
|
by: teenabhardwaj |
last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
| |