Jump to content

Screen Full Windows, error.


Yue
 Share

Recommended Posts

Your code is probably overwriting the menu code. 

I doubt this is a problem with Leadwerks but your code. Maybe repost in a relevant board and include your code? 

Instead of setting the context, just use get and assign to a variable 

Link to comment
Share on other sites

8 hours ago, Angelwolf said:

Your code is probably overwriting the menu code. 

I doubt this is a problem with Leadwerks but your code. Maybe repost in a relevant board and include your code? 

Instead of setting the context, just use get and assign to a variable 

window = Window:Create(title,0,0,1920,1080,Window.Fullscreen)


--Create the graphics context
context=Context:Create(window,0)
context:SetScale(1920,1080) -- Not Problem Full Screen, error Gui not visible.

 

 

 

Link to comment
Share on other sites

Other sample.

 

local window = Window:Create("App",0,0,800,600)
local context = Context:Create(window)
context:SetScale(800,600) -- Quit line, show Gui. Fix Scren Full problem.
-- Not Set Scale Context, problem full screen.


local gui = GUI:Create(context)
local base = gui:GetBase()
base:SetScript("Scripts/GUI/Panel.lua")

x=20
y=20
local sep=30

widget = Widget:Label("Default",x,y,300,20,base)
y=y+sep

widget = Widget:Label("Left with border",x,y,300,20,base)
widget:SetStyle(LABEL_BORDER)
y=y+sep

widget = Widget:Label("Center with border",x,y,300,20,base)
widget:SetStyle(LABEL_BORDER + LABEL_CENTER)
y=y+sep

widget = Widget:Label("Right with border",x,y,300,20,base)
widget:SetStyle(LABEL_BORDER + LABEL_RIGHT)
y=y+sep

widget = Widget:Label("Center with border and vertical align",x,y,300,80,base)
widget:SetStyle(LABEL_BORDER + LABEL_CENTER + LABEL_MIDDLE)
y=y+90

widget = Widget:Label("Sometimes a label just has too much text to fit in its space. When this happens, just use the worwrap option!",x,y,300,80,base)
widget:SetStyle(LABEL_BORDER + LABEL_WRAP)
y=y+sep

while true do
        if window:Closed() then return end
        if window:KeyHit(Key.Escape) then return end
        
        while EventQueue:Peek() do
                local event = EventQueue:Wait()
                if event.id == Event.WidgetAction then
                        System:Print("WidgetAction")
                elseif event.id == Event.WidgetSelect then
                        System:Print("WidgetSelect")
                end             
        end
        
        context:Sync()
end


 

 

 

Link to comment
Share on other sites

the problem is definitely here.

I will expose my case.

My computer has a gtx 1050 graphics card, this card lacks a vga port like the one the monitor has, so I get a vga to hdmi adapter. 

A few years ago the problem is that although the vga monitor was connected through the hdmi converter, I do not recognize the resolutions when starting the computer, as it appears in the minimum resolution, what I had to do was disconnect the converter and connect it again. With this I had two options or two groups of resolutions to select in the nvidia panel.  One category of HD, and another of PC.

With the passing of time the updates of the controller nvidia became evident, and to turn off the computer, it was not necessary to reconnect the converter to turn it on, recognized the last configuration saved previously. 

Today I updated again the controller nvidia, the surprise was that in hd only recognizes me about three screen resociones and in the pc several, and leadwerks works well in full screen mode.

Now, if I disconnect the converter and connect it, new screen resolutions appear in the HD category and at this point Leadwerks is damaged in full screen mode. 

Anybody have any idea why this happens?

Translated with www.DeepL.com/Translator

image.thumb.png.c05431ca124f6bba4cc3e9706cecd213.png

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...